The officially official Devuan Forum!

You are not logged in.

#151 Installation » [SOLVED] Daedalus netinstall partitioning » 2024-03-22 18:12:40

nahkhiirmees
Replies: 17

But maybe there is something that i don't completely understand about that partitioning phase.
I can make encrypted / - partition. And also another encrypted partition and make a "physical volume for lvm" inside that device.

But if i try to make VG and LV's inside that second encrypted partitition, i get complaints about /-partition and can't get past the partitioning phase.

Used Daedalus netinstall.

I tried to make /home and swap as logical volumes inside a encrypted volume group with Daedalus netinstall's partitioning tool. Couldn't get out of that partitioning phase because of complaints about / -partition.
Bug or a feature? Or something else?

#152 Re: Installation » [SOLVED] Fujitsu Lifebook U728 + Devuan 4 » 2024-03-22 18:02:42

Found these links:

https://dev1galaxy.org/viewtopic.php?id=4039
https://dev1galaxy.org/viewtopic.php?id=2856

maybe those will be helpful some day. Before that i would like to make lvm, sudo and some other packages work. It seems that i have to install something called libsystemd so that i can install lvm2.https://pkginfo.devuan.org/cgi-bin/pack … =2.03.22-1

Although, if i remember correctly, i'll may have to update initrd in order to enable /home on a logical volume.
I wonder if there is going to be problems with that updated initrd when shim or SB is enabled?

Today i'm not in the mood for writing an initscript to enable lvm after initrd is done.
Edit. i think i saw some lvm-related scripts under /etc/init.d inside virtual machine i made. I installed Chimaera on that vm.

#153 Re: Installation » [SOLVED] Fujitsu Lifebook U728 + Devuan 4 » 2024-03-19 20:08:59

One thing i noticed with Daedalus: the manual partition tool was getting my way when trying to do things. How about giving an option to jump into a shell and giving the necessary commands by hand? In the partition menu i mean. To accompany those automatic and manual modes.

This week i found the "jump to a shell"-item in Daedalus's installation menu smile
But maybe there is something that i don't completely understand about that partitioning phase.
I can make encrypted / - partition. And also another encrypted partition and make a "physical volume for lvm" inside that device.

But if i try to make VG and LV's inside that second encrypted partitition, i get complaints about /-partition and can't get past the partitioning phase.

Used Daedalus netinstall.

#154 Re: Installation » [SOLVED] Fujitsu Lifebook U728 + Devuan 4 » 2024-03-19 19:58:19

Planning to figure out what mokutil can and cannot do.

It seems that i have to sign vmlinuz and initrd if i want to boot Devuan when SB is enabled.  It would be nice if i could sign more than just those. Just in case.

I have also heard about something called EFI-Stub. Can i bypass loading anything from EFI partition with that?

But one step at a time...

#155 Re: Installation » Live cd unable to boot with secure boot enabled » 2024-03-19 19:41:29

After some experiments it became clear to me that when secureboot is on, it verifies the signatures on removable media too. For some reason i thought that when SB is on it just refuses to boot from that kind of media.

#156 Re: Hardware & System Configuration » [SOLVED] Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21) » 2024-03-18 18:01:13

Either there were no /dev/dsp in my Chimaera install or "chmod o+rw /dev/dsp" as root didn't help. Not quite sure anymore which one was the case. Should document better.

#157 Re: Installation » [SOLVED] Fujitsu Lifebook U728 + Devuan 4 » 2024-03-18 17:54:01

So, chain-loading from UEFI with GRUB, is it possible or not?

Answering to myself: that would be a no, because https://www.gnu.org/software/grub/manua … t-and-shim .
Although i can load grub's configfile from another partition.

Also, should there be signed .efi-files inside that Daedalus install disk?

I'll run "ls -laR $daedalus_boot_dir | grep efi | less" soon. I know that latest Ubuntu server install disk boots,   and Daedalus install disk won't, when secureboot is enabled.
This time it looks like "su -" works without problems. Haven't tried any sudo stuff yet.
Would like to find out if i can boot into Daedalus when SB is on.

It would be also nice if i can make SB protect the cntents of Daedalus's /boot somehow. If possible.
I heard rumours about somethings called mokmanager and mokutil...

#158 Re: Installation » [SOLVED] Fujitsu Lifebook U728 + Devuan 4 » 2024-03-17 22:48:03

Made a working /boot and /boot/EFI for Ubuntu. Also made additional partitions and installed Daedalus into one of them.
Tried to chain-boot from Ubuntu's /boot to Daedalus's /boot with:

menuentry chain {
insmod chain
set root=(hd0, part_x)
chainloader +1
}

as grub.cfg in /boot/EFI/ubuntu . Got some EFI-related complaints from GRUB. I hope i got the partition number right in "set root"-line. I mean that part_x should be the /boot of Daedalus.

Also i tried to boot straight into /boot partition of Daedalus with super grub disk. That worked.
So, chain-loading from UEFI with GRUB, is it possible or not?

Also, should there be signed .efi-files inside that Daedalus install disk? I'm starting to think that maybe using that Ubuntu-disk wasn't absolutely necessary step...

#159 Re: Installation » [SOLVED] Fujitsu Lifebook U728 + Devuan 4 » 2024-03-17 21:18:28

Looks like i can boot Ubuntu install disk when secureboot is turned on. Let's see if can make a working /boot - partition with it.

#160 Re: Hardware & System Configuration » [SOLVED] Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21) » 2024-03-17 21:04:03

Tried to boot Fujitsu with devuan live. It worked. And after that, tried youtube. I got sounds out of my hardware. So the silence may be a problem with configuration after all.

#162 Re: Installation » [SOLVED] Fujitsu Lifebook U728 + Devuan 4 » 2024-02-24 21:15:11

Some day i have to re-install that Devuan. Getting tired with that "super grub disk 2 method". That disk is getting scratched and external dvd will outlive its usefulness some day.

May of last year, i had w10 install disk that was ancient enough to co-operate with D4. I may have misplaced it somewhere. So Ubuntu install disk may be needed.
There is some highly mysterious dark magic going on with that laptop and its firmware.
W10 install disk seemed to fix some of that weirdness.

#163 Re: Off-topic » secure memory wiper » 2023-12-04 21:41:36

https://en.wikipedia.org/wiki/Gutmann_method#Criticism not fully convinced that Guttman's method has additional value over DoD's 7-times-wipe.

And if you don't trust DoD's method, there's always a sledgehammer and gas-welding-equipment. Much quicker than Guttmann, at least.

#164 Re: Installation » Live cd unable to boot with secure boot enabled » 2023-12-04 21:30:29

I think that booting from usb stick or optical disc is not supposed to work when secureboot is active.

#165 Re: Installation » in a way related to installation or at least Devuan » 2023-11-30 22:43:31

chris2be8 wrote:

Run alias
On my system the last line of output is

alias ls='ls --color=auto'

When running as normal user, inside that vm, the output of alias was empty. Also no .bashrc under ~.
Did run dpkg -l inside and outside of vm, there were of course some differences. But not yet any clue, which missing or installed pkgs are the problem.

I guess i can create yet another vm and try to do something differently during install or during "install/remove packages after install"-phase. Like just install docker.io and docker-compose but remove nothing. (Avahi is considered a security risk and for me it's not absolutely necesssary to run cups inside or outside of vm and so on...)

On the other hand it would be useful to find out what i did wrong.

#166 Re: Devuan » Virtualbox 7.0... » 2023-11-30 17:32:40

From the VirtialBox User Manual i found this:"Delayed writing through the host OS cache is less secure. When the guest OS writes data,
it considers the data written even though it has not yet arrived on a physical disk". That may explain the missing files and wrong content.
But i still think vbox could warn end-users about that, on the "Settings->Storage"-section.

I mean , sometimes vbox warns about wrong chipset or dislay settings. It could say something about that caching thing too...

Maybe i'll try that "hostiocache off"-thing. Hopefully usb keeps working without problems... or i have to start to use GitHub or Dropbox or something.

#167 Installation » in a way related to installation or at least Devuan » 2023-11-29 19:12:22

nahkhiirmees
Replies: 2

From topic https://dev1galaxy.org/viewtopic.php?pid=45777#p45777:

But another thing i noticed, with a new vm, docker-compose can't find the .yml-file with -f. I have to say it's absolute path, then d-c finds it.
Any ideas why? And how to fix that? I ask here, in the case this is a Devuan-specific problem. (Almost 20 years there were some kind of a RedHat-related problem with package gcc, that other distros did'nt have.)

Something may have gone wrong with thet new vm's install. Or there is some important package missing. I noticed also that in the new vm's xfce terminal, there is no colours with output of "ls".

That's not weird when using root-account. But using a normal user account...

It is quite annoying, having to enter the full path for "-f"-option every time i run docker-compose inside that new vm. And the tab-completion with docker images doesn't work also.

Since there are no colors with "ls" inside xfce's terminal and most of the icons missing from desktop, i have a reason to believe that something went wrong with the install. Any ideas what could be missing?

#168 Re: Off-topic » sqlalchemy » 2023-11-29 16:14:22

It seems that i can make sqlalchemy fetch some data from tables when the connectionstrings are right.
But another thing i noticed, with a new vm, docker-compose can't find the .yml-file with -f. I have to say it's absolute path, then d-c finds it.
Any ideas why? And how to fix that? I ask here, in the case this is a Devuan-specific problem. (Almost 20 years there were some kind of a RedHat-related problem with package gcc, that other distros did'nt have.)

Something may have gone wrong with thet new vm's install. Or there is some important package missing. I noticed also that in the new vm's xfce terminal, there is no colours with output of "ls".

That's not weird when using root-account. But using a normal user account...

#169 Re: Devuan » Virtualbox 7.0... » 2023-11-29 16:07:44

Hey, any ideas about editors that a) are available for Devuan and b) have an autosave function? I mean editors for coders....

#170 Re: Devuan » Virtualbox 7.0... » 2023-11-29 16:04:04

I guess i can forget to save file when tired enough. Or save under a wrong name. But 2 or 3 weeks of commits missing from git's log? Come on.

When i shut down a vm by clicking it's window's close button i get options to a) save machine state b) send shutdown signal c) send power off. Anything but a) could undo the changes.

But I usually shut down vm by saying sudo /sbin/shutdown or sudo /sbin/halt inside tah vm. So vbox should commit changes into the virtual hd.

Has Oracle changed vbox's behaviour concerning shutting down a vm , after 6.0 ? Or is it just a bug that reveals itself in the situation where the backing fs is almost full ?

#171 Re: Off-topic » sqlalchemy » 2023-11-25 21:04:58

Managed to get rid of some complaints by changing "c.id_field==" to "c.columns.id_field==".
Maybe the software doesn't correspond to documentation or another way round.
Have to re-check that db-container works as it is supposed to. Tried with psql and got some errors.

#172 Re: Devuan » Virtualbox 7.0... » 2023-11-25 20:58:13

nahkhiirmees wrote:

Speaking of "doing non-default-things with vbox", i have tried virtual machine files on usb harddrive and virtual machine files on samba share, with just a .vbox-file on /home. It was a bit difficult but kind of worked. The most recent version of vbox then was 5.something.

I think running some light software inside vm wouldn't cause problems. I mean not eating too much storage or ram or processor capacity.

For some reason i would like to mention another non-default-thing i did with virtualbox 5.x. I tried doing dd if=/dev/usb-disk or dd of=/dev/usb-disk and managed to froze the host machine so badly that i had to turn it off by pushing powerbutton.

With vbox 6.0 that usb-situation got little better. Don't remember freezing my machine with dd after that.

I always manage to try Things That Are Forbidden.

#173 Re: Devuan » Virtualbox 7.0... » 2023-11-25 20:51:53

nahkhiirmees wrote:

... and the next funny thing was that usb devices stopped working properly. Vm couldn't find any usb stick at all although usb filters should "capture" all devices.
...and mouse not working either. Had to log out and in again to make usb work in the host side.

Today managed to reproduce the "mouse not working"-situation. Just add the usb mouse into vm's usb filters. And mouse pointer almost froze after that.
That may or may not explain why usb stick could not be found. A fair warning from vbox would be nice.

And that still wouldn't explain the missing files nor wrong content. Nor why there is 3 weeks of commits missing in git log. Didn't mention that detail week ago.
I still suspect that in some situations, vbox doesn't commit changes into virtual hd properly.

#174 Re: Off-topic » sqlalchemy » 2023-11-23 17:19:28

Maybe stackexchange.com would be a better place for this topic. But i don't have account on that site.

Anyways, changed logging settings in postgres-container. I started getting "LOG connection authetticated"-messages.
Entered into running python container with docker exec, started Python interpreter and started entering commands. Those "authenticated"-messages arrived into stderr. So now i know that sqlalchemy can connect into  postgres.

But "r=conn.execute(text("SELECT * FROM table1"))", which i tried instead of "c.select().where()" is still a problem. For some reason it doesn't return any rows. I think it should.
And it is very stupid if i have to enter commands that way.   I thought that with sqlalchemy, another way of doing queries would be possible.

#175 Re: Off-topic » sqlalchemy » 2023-11-23 12:47:25

Now i think that i have to confirm that postgres gets the sql commands at all. Parameter "echo=True" results in Python echoing the commands sqlalchemy generates. So i know that something happens on the Python-side of things.

But i'm not sure that those commands end up in postgres-container. So i'll have to tail -f some_log_file . Postres-container should echo some parts of the commands it receives, into stdout. And i haven't noticed any from that Flask-container.

Another thing is commands trying to select from database pg_catalog. I know these are necessary in order to copy pre-existing database structure into code. 
The account i use to select from "table1" may not have necessary privileges to use that catalog. Have to do some gogling to find out which are the absolute minimal grants that i need.
IMO it is stupid to GRANT ALL PRIVILEGES ON ALL DATABASES just to select from 1 table.

But anyways, working example code would be very nice to find.
It was 2012 when i tried Flask before. I have the previous "hello_world"-attempt printed in paper. But it is half-finished and outdated. And then there is the principal problem that i don't need to define all the tables in code when i have already built the db, outside the Flask-container.

P.S. and then there is the question about psycopg2, which version actually works and can i download it from anywhere anymore? And is "no news is good news" still a valid principle?

Board footer

Forum Software