libera/#devuan/ Monday, 2020-01-20

xrogaanWould this be a good guide? https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security-enhanced_linux/polyinstantiated-directories00:01
xrogaanwhat does the polyinstantiation of user home directories means?00:01
pcpowerhello everyone, i had installed devuan with encrypted / and /home, but unencrypted /boot on another partition. default grub installation failed. How should i now boot the system ? grub-mkconfig in my current os dont really work with this issue.17:35
specingdefine "failed"17:37
GyrosGeierthat should work17:38
pcpoweris just said that installation on my /dev/sd* drive is impossible17:41
pcpowerno more information17:41
fsmithredlegacy bios or uefi?  And is it gpt partition or dos partition table?17:43
pcpowerdos table, legacy bios17:43
pcpowermaybe this is the issue17:43
fsmithredand that error message came from grub?17:43
fsmithredduring the installation process?17:44
pcpowerfrom interactive grub installer in ascii devuan live cd17:44
fsmithredhuh?17:44
fsmithredyou were on grub command line?17:44
pcpowerno17:44
pcpoweri was in live17:44
pcpowercd17:44
fsmithredyeah, and what did you do while you were there?17:45
fsmithredyou used that for the installation?17:45
pcpowerand there was some kind of gui interface17:45
pcpowerlike grub installer17:45
premobosshello, i have a scanner HP scanjet 2200c, it is usb connected and lusb recognize it, but unprivileged user cannot see. if i run xsane by root, all is ok, scanner is recognizer adn works. so, it is just a privilege issue. how to allow not-privileged user to access to the scanner?17:45
premobosslusb=lsusb17:45
fsmithreddid you click on the button that says "Copy files" ?17:45
pcpoweryes17:45
pcpowerthere was no more options17:46
fsmithredok, that was the right thing to do17:46
pcpowerexcept chroot17:46
fsmithredand continue without bootloader, which you don't want17:46
pcpowerbut i dont really know how to deal with chroot and encrypted partitions17:46
pcpoweryes, i just want some kind of config file and kernel in /boot partition17:46
fsmithredthere are a few commands you need for setup17:46
pcpower*wanted17:46
pcpowerbut now everything is wrong :(17:47
fsmithreddid you try to install grub to a partition or to whole device?17:47
pcpowerthere was no partion options, only whole device17:47
pcpowernonetheless, i now had some file on /boot17:48
fsmithredoh, right that was the debconf dialog for the grub package install17:48
fsmithredis the installer still running, or did you already kill it and try to reboot?17:49
pcpoweri'm now in different os17:49
pcpowerbut it is powered by linux kernel :)17:49
fsmithredoh17:50
fsmithredon the same computer?17:50
pcpoweryes17:50
fsmithredhow does that one boot?17:50
pcpowerfrom my grub bootloader on another drive17:50
pcpowera have multiple drives in my pc17:50
pcpowerone for current os17:50
pcpowerand one for devuan, with /boot , / and /home partitions17:51
fsmithredok, so while you're in this other linux, run update-grub (or the equivalent) and the new installation will be added to the boot menu17:51
pcpowerthe boot partition on devuan drive contains config-4.9...-amd64; initrd.img-4.9... system.map-4.9... and vmlinux-4.9...17:52
pcpowerthis is the problem17:53
fsmithredduring the install, did you get to the part where you change password and user name?17:53
pcpoweryes17:53
fsmithredthen the install is done except for the bootloader17:53
pcpoweri fully completed the installation17:53
pcpowergrub-mkconfig is not able to find the devuan system17:54
pcpowerit only detects the current os17:54
fsmithredoh, you'll have to make a manual menuentry because the system is encrypted17:54
pcpowerhow should i do it ?17:54
fsmithrededit /etc/grub.d/40_custom17:54
fsmithredmenuentry 'devuan' {17:54
fsmithredset root=(hd1,msdos1)   ### Assuming it's second hard drive and /boot is on first partition17:55
fsmithredlinux /vmlinuz-4.9.whatever ro root=/dev/mapper/root_fs17:56
fsmithredinitrd /initrd.img-4.9.whatever17:56
fsmithred}17:56
fsmithredyeah, I guess I should have pasted it. I'm not fully awake right now17:57
fsmithreddid I guess the partitions right?17:58
pcpowerno, but i know the correct numbers :)17:58
fsmithredcool17:59
fsmithredlook at /boot/grub/grub.cfg to check the punctuation. I think I got the braces and quotes right.18:00
fsmithredhttps://termbin.com/d61h   <- should look something like this18:01
fsmithredthen update-grub or grub-mkconfig to add it to the boot menu18:02
pcpowermapper in root=/dev/mapper/sd* should be replaced ?18:02
fsmithredI expect that it should be /dev/mapper/root_fs18:02
fsmithredI don't think you can change that unless you edit the installer script18:02
pcpowerbecause i have encrypted root on logical partition18:03
fsmithredwith the live installer?18:03
pcpowerso maybe it should be like /dev/sdb* like on archwiki ?18:03
fsmithredyou used the cli installer?18:03
pcpoweryes, on the cli18:03
fsmithredok18:03
fsmithredyou're the first one I know of to do that (other than myself)18:03
fsmithredwhatever you called it and put in /etc/crypttab18:04
fsmithredso maybe /dev/mapper/vgname-lvname?18:04
pcpowerno18:04
pcpowerwith lsblk is looks like normal partitions18:05
pcpowersame was with gparted18:05
fsmithredyou set the installer config file to no_formate=yes?18:05
fsmithredno_format18:05
pcpoweryes18:06
pcpowermaybe18:06
pcpoweryou mean not to format partiitons ?18:06
fsmithredyeah18:06
pcpowerbecause they were formatted during the installation with ext4 filesystem18:06
pcpowerbut i dont think this will be a problem18:06
GyrosGeierwtf are you doing?18:07
fsmithreddepends on what got formatted18:07
GyrosGeierbooting a rescue system should be sufficient18:07
fsmithredtrying to rescue an install from the live-CD18:07
GyrosGeierno need to rerun the installer18:07
pcpoweranyway, grub-mkconfig worked great18:07
fsmithredif you entered the /dev/mapper name, it should have done the right thing18:07
pcpowernow i will try to reboot, thank you very much ;)18:08
fsmithredyw18:08
ukine1taking the power back, one user at a time :D18:08
fsmithredhe's not rerunning the installer, just adding a boot entry to a linux on another hard drive18:08
ukine1fwiw i don't have the deep understanding that you do but also created a luks install via the curses-ish installer mode18:09
pcpowerits me again18:10
ukine1just didn't have another linux install18:10
pcpowernothing changed :(18:10
fsmithredwas it in the boot menu?18:10
pcpowerthe boot meny did not changes, everything was like before18:10
pcpower*dhanged18:10
fsmithredyou ran update-grub before the reboot?18:11
ukine1should he have run update-grub?18:11
pcpowerno18:11
fsmithredyou have to do that to get the new entry in the boot menu18:11
fsmithredor drop to grub command line and enter the three commands one at a time,18:12
fsmithredthen boot18:12
fsmithredand enter18:12
pcpowerwhat commands ?18:12
fsmithredset root=...18:12
fsmithredlinux...18:12
fsmithredinitrd...18:12
fsmithredboot...18:12
pcpowerok18:12
fsmithredcrtl c to drop to grub prompt18:13
fsmithredand tab-completion works18:13
ukine1he just left..18:13
yetitell your irc client to colour offline nicks differently18:13
yetithat really helps18:14
fsmithredI'm using hexchat. It's already a different color, but that only works when I'm looking at the screen and not the keyboard.18:15
yetioh...18:16
yetiok18:16
fsmithredpretty sure the grub screen has instructions for that18:17
pcpowersoo18:31
pcpowerthe system loads to initrafms, but then fails to mount /root /dev and something else18:31
pcpowerit also says that no init foud try init= boot18:32
ukine1that may be because you encrypted /18:33
ukine1i'm just guessing though, i would try my hardest in your situation to run another install using the guided encrypted partition for encrypting your setup18:34
ukine1limiting your modifications in the partitioner to the devuan disk only18:34
ukine1*guided encrypted partitioning18:35
pcpowerbut / decrypts during the boot, i even have acces to some trivial directories, like /usr or something18:35
ukine1that is because you selectively encrypted two things only / and /home18:36
ukine1decrypts? did you have to type your passphrase in?18:36
pcpoweryes18:36
ukine1curious18:36
pcpowerand if i type something wrong, it blocks the computer18:36
Leanderare you sure you're not seeing the contents of your initramfs, rather than the contents of your /18:37
ukine1if i were you, for your use case, and if the package is still even being maintained…use encfs for your situation and a balls-out devuan install18:38
ukine1encfs thrives on the type of use-case you're aiming for18:38
ukine1from what you've described to me; the path you're trying to go about18:38
ukine1i used to use it to just have an encrypted home18:38
pcpowerwhat is encfs18:38
ukine1a PAM-compatible directory-as-volume encrypted sub-"real"-fs encryption solution18:39
pcpoweralso, how can i check if I am not seeng the contents of my initramfs ?18:40
ukine1https://packages.debian.org/search?keywords=encfs&searchon=names&suite=stable&section=all18:41
ukine1it's still alive18:41
ukine1for your use case i'd highly recommend it18:41
Leanderyou can use "mount" to list all mounted file systems, you'll quickly see if you have something like /dev/mapper/something mounted for /18:42
pcpowerok18:42
pcpowernow reboot :-)18:42
ukine1if you can't trust / i.e. the kernel and it's base, /root and /boot you have a fear of possible old-maid situations i'm guessing18:42
ukine1in which case they should be trying all features available; bios pw, bios drive lock...18:45
ukine1still no go? :(18:48
pcpowermount displays rootfs mounted on /, which is not normal :(18:48
pcpowerbut when i try to mount my real root partition (/dev/sd*) it says that it is busy18:49
ukine1i've never done it b/c i know i can trust my current hw, but /boot on a stick (using a trusted usb drive as a "key" or even a usbarmory with keybase something or other-like safety net) is another path18:49
pcpoweryes18:50
ukine1encfs is the best solution for your use case imo…with your adamancy about encrypting /home (only worrying about home)18:50
pcpoweri've done that with gentoo18:50
ukine1encfs is super easy to use18:50
pcpowerand to be clear it was easer lol18:50
ukine1it's win18:50
ukine1omgosh18:50
ukine1easier geez18:50
ukine1heh18:50
LeanderI have a Devuan on an encrypted / on my laptop, but I installed that many years ago and can't remember how I did it18:50
pcpowerbut i had some problems with the uclibc18:50
ukine1nif you can't trust / i.e. the kernel and it's base, /root and /boot you have a fear of possible old-maid situations i'm guessing18:51
pcpowernot that hard18:51
ukine1in which case i would recommend you should be trying all features available; bios pw, bios drive lock...18:51
pcpowerjust wanted to use the encrypted linux on daily18:52
Leanderin case of theft of your laptop, who knows what people could uncover in /tmp or /var ? I feel like /home is really not enough18:52
pcpoweri use stationary pc18:52
pcpower:D18:52
ukine1maybe try to kind of rethink your whole security situation from the ground up? maybe if you went over it in your head again something might click that is causing it to not work?18:53
ukine1like an automatic partitioner change that you might have applied then gone back to in the installer?18:54
pcpoweri think it would be easer to compile a lightweight linux kernel for my pc, place it on the usb drive market with boot flag, than just force it to decrypt the whole disk, reload the kernel with unencrypted one, then just mount and load all other stuff and use the system18:54
pcpowerbut it is just the plan, nothing more18:55
pcpower* a plan18:55
pcpowerand all of the stuff with uefi boot and uefi partition because it looks like its easer to setup18:56
pcpowerbut anyway its not secure to talk about these things through irc lol18:57
pcpowerthe three-word agency is already in game lmao18:57
pcpowerso quiet18:59
pcpowerwhere are you guys ?19:00
ukinei'm here. just had an idea:19:00
pcpowerwhat kind of idea ?19:00
ukinewhy not use an encfs-home containing a directory with kvm machine and another devuan inside that vm?19:00
ukinejust an idea. not what you were originally gunning for but objectively more secure19:01
james1138Self erase after entering wrong password a number of times - https://ubuntuforums.org/showthread.php?t=225835619:01
pcpoweri was just kidding about gentoo, to be clear19:02
ukineluckily i don't need something like that, i have some pretty secure passwords19:02
ukineheh XD19:03
pcpowerbut i thought that devuan installation will be easer19:03
ukineif we're out of topic now however let's move to #debianfork19:03
ukineit definitely is?19:03
ukineheh19:03
pcpowerdebianfork is some kind of out-of theme talking, right ?19:03
ukinetrue19:03
pcpowerok, lets go19:03
ukinei'm there19:04
fsmithredpcpower, you can't mount the partition, you have to mount the logical volume: /dev/mapper/whatever19:08
james1138A tip for Devuan users who use Alsa instead of PulseAudio but found XFCE does not provide a convenient Alsa volume control for its panel (default is Pulse Audio volume control). Called XFCE4-Mixer - it works even on current versions with virtually zero tweaking.19:08
james1138https://packages.debian.org/search?keywords=xfce4-mixer19:09
fsmithredjames1138, xfce4-mixer is discontinued. You won't find it in beowulf.19:09
james1138Fsmithred: it is not in "Stretch" either - but I just went to the link that I posted, then downloaded and installed without issue. I am using it now on Devuan 2.1 w/XFCE desktop.19:12
fsmithreddid you get the jessie version?19:14
james1138Yes I did. The page also shows any dependencies in case a person has to manually install (I did not have too)...  https://packages.debian.org/jessie/xfce4-mixer19:15
fsmithredgood to know.19:15
fsmithredI use volumeicon-alsa19:15
james1138Anytime I can help.19:16
james1138I had trouble getting volumeicon-alsa to appear on the panel.19:17
fsmithredadd it to the startup applications19:19
fsmithred(put a .desktop file in ~/.config/autostart/19:20
james1138For me - easier to just use xfce4-mixer and add to panel like other applets.19:21
fsmithredyou can also add it through the settings manager19:21
fsmithredstore that info for beowulf - you may need it then.19:21
james1138~/.config/autostart/Thanks for the tip - again I tried all that and found it easier for me to install and use xfce4-mixer. I just right-click on panel, go to "panel preferences" and click on "items" tab. Just like other applets - just add. No need to touch the desktop file nor enter19:25
james1138~/.config/autostart/19:25
fsmithredfor volumeicon-alsa, you need to go to Settings, Session and Startup, Application Autostart19:27
fsmithredand add it there19:27
james1138<grin> pass - I am good.19:27
* grin[m] and his highlighter thinks that's great21:14
john_on beowulf pulse audio is not able to be installed because it relies on libpulse0 12 only but beowulf has libpulse0 1322:30
masonjohn_: If it's any immediate help, you don't actually need PulseAudio for Firefox in De*an.22:32
john_i do need it for discord to play nice with other applications22:32
john_as apulse don't like plug and discord fights for mic with some of my other applications22:32
masonAh. Hrm.22:33
golinuxI believe that pulseaudio is a dependency in Xfce on Beowulf.22:33
golinuxWhich could be a factor too.22:33
furrywolfsounds like we need to put more work into apulse.22:33
furrywolfbbl, work22:33
golinuxfurrywolf: Have at it, please . . .22:34
masongolinux: Random update, I've got generic netbooting going with NFS root, and I'll be moving on to the self-contained netboot installer next. (All with Beowulf FWIW.)22:35
golinuxmason: Most excellent!22:43

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!