libera/#devuan/ Wednesday, 2024-03-27

rwpThis is one of the reasons why free-software is so much better.  Can just look at the source in that case.  Can then modify the source.00:00
rwpBut you might be able to strace through and figure out what it is doing and then fix the next thing that is blocking it from working.00:00
onefangHmmm, I'm almost sure that last time I checked my Devuan system DID have a  /run/systemd/system in my systemD less Devuan system, but it doesn't now.  It does have /run/systemd/ other things.00:00
rwpavbox24, Honestly none of the output in your paste https://paste.debian.net/1312113 makes sense to me in isolation.  Those could mean anything.  I am just unable to help with the problem shown by those messages.00:01
onefangEntirely possible I have since removed the package that did that.00:02
rwponefang, Devuan has /run/systemd and I have run into buggy packages (spamassassin's spamd) that check for it rather than /run/systemd/system but only systemd actively running should have /run/systemd/system present.00:02
onefangJust call me suspicious about anything systemD.  lol00:03
rwpAnd if you look at /usr/sbin/service then is_systemd is null-length and <<if [ -n "$is_systemd" ]; then>> then avoids running that bottom section which calls systemctl at all.  It's skipped entirely.  Then at the very bottom the run_via_sysvinit function defined above it earlier is called and it runs the /etc/init.d/foo script then and that's the normal path for everything on Devuan systems without systemd.00:04
onefangYep, I did just look at it again.00:04
rwpIt's kind'a a hokey way of doing things.  But as we know the systemd diehards will try to block ANY non-systemd way of working.  So we have to sneak in portability and compatibility where we can.  And where we can't that's the reason it must be forked.  That one is in init-system-helpers and not forked.  So it is one that we know works on either system.  Even if it is in a hokey way of working.00:06
onefangI'd still much prefer it if the preference was the other way around, then we wouldn't have had this conversation, and we can stop worrying.00:06
rwpObviously I agree.  And I would be a proponent of init-freedom such that there would be a defined way to call the init specific thing to call.  That would be better.  But systemd is not about getting along with others.00:07
avbox24I was able to start mullvad-gui and I could go to another location, but it looks like I don't the firewall rules ar not ok: https://paste.debian.net/1312116/00:07
rwpavbox24, What is in /usr/lib/systemd/system/mullvad-early-boot-blocking.service too?  That was called first but wasn't sure I needed to ask then.  But let's look there too.00:08
rwpIn https://paste.debian.net/1312110/ we see that it calls bash. (In a portable way no matter where it is installed!  I approve.)  And then it calls "set -eu" which is bad scripting practice.  The -e does not do what anyone wants it to do but people keep ignoring that and hoping it does.  That causes the first systemctl which returns non-zero to exit the script.00:10
rwpThe -u is almost always problematically trouble because no one writes for it.  But the -u does not matter because there are no variables at all in that script.00:11
avbox24rwp: https://paste.debian.net/1312117 but I don't see where the firewall rules really are.00:11
rwpAh!  ExecStart=/usr/bin/mullvad-daemon --initialize-early-boot-firewall00:12
rwpThat's calling the daemon with a different option.  And that option is telling it to --initialize-early-boot-firewall which I will guess is setting up the firewall that the other run is complaining is not there.00:12
rwpI would stop everything.  Kill everything.  Then do things again with --initialize-early-boot-firewall in the first run and -v --disable-stdout-timestamps in the second run.00:13
avbox24rwp: Yes I think this is the point, I will investigate where the rules itself are, I think they do a os check and devuan is not there.00:13
rwpAnother sometimes useful hack is to run "strings /usr/bin/mullvad-daemon" and then grep around and see what files it might be looking at.  Does it look at /etc/os-release for example?00:14
rwpAlso "strace -e trace=file" along with the other options will reduce the amount of noise in the trace to just operations that access files and that might show what files it is reading and then you know there too.00:15
rwpIt might be possible to run mullvad-daemon in a Debian chroot.  Since networking is in the kernel that might convince mullvad-daemon that it is on a Debian system, since then the files would all say Debian, and everything might (maybe?) still function correctly.  I think it probably would.00:16
avbox24rwp: strings /usr/bin/mullvad-daemon is very interesting, but it is too long and not really an ansi file.00:18
rwpThe strings command might pull things out that are not ascii nor utf-8 strings, true.  Using 'less' to keep that sane might be wise.  I should have said that.  But usually it is not needed.00:19
rwpI have stuff happening IRL and must run.  BBIAB.  Good luck!  Happy Hacking!00:19
avbox24rwp:  had a look at the output, I see that was made with go and I have to assume that they hard coded the os in the program. But I think the publish the source code under https://github.com/mullvad/mullvadvpn-app, may be I find there more. But for today it is enough. At least using fdroid app and tethering it works.00:24
avbox24One last note, I had a look at source, it really looks like the only accept ubuntu/debian and Fedora.00:30
jiribhi, i have an issue to start GDM (gdm3) on unstable devuan with runit14:58
jiribhttps://termbin.com/yco714:58
jiribiiuc gdm needs elogind, that's running, same for system dbus14:59
gnarfacejirib: "permission denied" is usually pretty telling15:00
gnarfacemaybe something else is already using VT1 or... maybe your user just doesn't have permission?15:00
jiribgnarface: shouldn't elogind pass fd to gdm?15:00
gnarfacei don't know15:01
gnarfacei'd just try starting it as root first to see if that works15:01
gnarfaceif that doesn't work, maybe something else is already started that is using it15:02
jiribi previously tried lightdm with xfce and it was working fine15:02
gnarfacewell, make sure lightdm isn't still running15:02
jiribit's already uninstalled15:02
gnarfacecould be a runit issue, or just an unstable issue15:03
gnarface"permission denied" is usually just mundane filesystem permissions missing though15:03
jiribthere's no even runit sv for gdm15:03
jiribit's started via /etc/init.d15:03
gnarfacei do know that some of the alternate init systems are still piggybacking on the sysvinit scripts15:04
gnarfaceis your user in the video group?15:05
gnarfaceand is gdm starting as root?15:05
jiribeh? the login screen even does not start, so it's before any user could even login15:05
gnarfacei understand that. that's irrelevant to those two questions15:06
gnarfaceis your regular user (the one you will eventually log in as) in the video group... some cases it doesn't matter but it also won't hurt15:06
gnarfaceand is gdm trying to be started as root (regardless of whether it's actually starting, i get that it's not successfully starting)15:07
gnarfacemaybe it would be a better idea for you to try this with the stable release first to make sure it's not just some transient bug in unstable15:08
gnarfacei'm sorry that i don't know runit well enough to help you write configs for it15:08
gnarfaceif you stick around though, someone else here might15:08
jiribiiuc gdm switched to other use via /usr/share/gdm/generate-cofnig15:08
jiribgnarface: do you run gnome yourself?15:13
gnarfacejirib: no, sorry, i don't even use a graphical login, but i do know that when lightdm was working for you, it was running as root.15:14
gnarfaceand i also know that unless your Xorg instance is also running as root (which is now only the default for the nvidia official binary-only drivers) then your user would need to be in the video group as well15:15
gnarfacei can't be sure either of those things are what is causing the "permission denied" error here, but i'd check them first15:17
gnarfaceyou should also know that unstable breaks a lot, and sometimes there isn't any recourse but to wait for them to fix it15:18
jiribi can only say that `echo needs_root_rights = yes > /etc/X11/Xwrapper.config' makes a difference but still Xorg is not loaded from GDM15:18
gnarfacehave you tried starting Xorg without the graphical login, by just running "startx" as your regular user?15:18
gnarfaceif that also fails, it might give you something better to go on15:20
gnarfaceand if it works, well, at least you'll have narrowed down where the problem is15:30
gnarfacejirib: any progress?16:15

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