libera/#devuan/ Wednesday, 2022-04-20

adhocmorning all02:13
debdogthe early bit catches the word02:31
systemdlete29I know that mucking with such things as /dev and /sys can lead to trouble, but don't worry, so far I am only trying things on a test box.   What I observe is that I cannot--even as root--write to files on /sys.   Is that a security feature, or does my system require a tweak to permit such writing?05:16
systemdlete29I've tried chmod u+w /sys/.../file_i_want_to_write_to05:16
systemdlete29but that doesn't work05:16
systemdlete29I get "write error:  Input/output error"05:17
systemdlete29is it only via the rules.d files that /sys can be modified?05:18
systemdlete29rrq:  I did look at the docs on arch but I could not find what I was looking for.   It's possible I need to keep digging over there.05:18
rrqwell /sys is a virtual filesystem that present the kernel setup througha filesystem model05:19
rrqsome things are writable eg as way of modifying module parameters05:20
rrqso it's not actually a directory tree05:20
rrqbut /dev is a directory tree although some of its "memebrs" are "API points" (device nodes) for kernel thingies05:21
rrqit is "the old way" :)05:22
rrqudev is supposed to map /sys/... into /dev/... to make "the new way" accessible as "the old way", since in particular "the old way" is better documented05:25
rrqwe are looking at the combined result of 40 or so years of a varying degree of brilliance in kernel development05:27
systemdlete29lol.  indeed...05:27
systemdlete29what is the main distinction between /proc and /sys because I notice that /proc/sys seems to have similar substructure.   I know that /proc has process info whereas /sys does not.   But why is there a need to have 2 of these virtual file systems?   Could 1 do as well had the design been otherwise?05:29
gnarfacei thought /sys was just supposed to be for kernel info05:30
systemdlete29ok, but /proc also has a /proc/sys05:30
gnarfaceyea, it may not be super sane05:30
rrqyes I think /proc/sys/.. was the original idea, and then it got spun out as a separate /sys .. but then already there were piles of software using /proc/sys ...05:30
gnarfacevolunteer devs really like green fields05:31
systemdlete29yeah I get you05:31
gnarfacebut you're right systemdlete29, that some stuff in /sys just can't be changed without changing kernel code05:31
gnarfacethat's by design05:31
systemdlete29I'm just trying to kind of map it all out so I can understand it a bit05:31
systemdlete29ok, thanks for that info05:32
gnarfacewhat's really confusing is some stuff can be changed in /sys, and is intended to be05:32
gnarfacelike for example cpu clockspeed and governor settings05:32
systemdlete29right, I remember that part05:32
systemdlete29so most of it seems to be immutable05:32
rrq"backward compatibility" used to be important, rather than the "planned obsolescence" of today05:41
systemdlete29fast bytes05:42
adhocrrq: obsolescence happens06:00
adhocnone of it is planned =(06:00
adhocmostly because poor software engineering practice06:01
systemdlete29adhoc:  Does that mean there is a chance that systemd will go away?  Systemd seems to tick the boxes...06:27
rrq(sorry, my noted thought might have pushed us into OT )06:29
golinuxsystemdlete: Eventually everything "goes away".06:29
* golinux slaps rrq with a soggy, wet noodle. :D06:30
adhocsystemdlete29: I believe the features that systemd brings are to secure market domanance(sp?), not improve things06:31
* systemdlete29 runs away...06:31
systemdlete29this might be usleful at some point:  https://documentation.suse.com/sles/12-SP5/html/SLES-all/cha-udev.htm    It is not totally complete, but it is pretty clear and even provides a few examples.06:34
rrqmmm that's pretty much "man dev" plus something about "tmpfile.d" that looks new06:45
rrq"man udev"06:45
systemdlete29Similar, but not exactly the same.07:43
systemdlete29I feel I may need both to decipher this cryptic work07:44
systemdlete29A rosetta stone would be nice also07:44
systemdlete29In particular, there doesn't seem to be any mention, one way or the other, of directly setting ATTRS; it doesn't seem to be supported at all.07:52
systemdlete29(you can only set ATTR, not ATTRS, apparently)07:52
rrqyes "ATTRS" is a look-back into ATTR along the "parent node" chain07:54
systemdlete29sure, but how does one modify one of those parent nodes?07:54
rrqno, only those of the "current node"07:55
systemdlete29I've so far been able to confirm I am getting the correct "add" action for my rule, which is pretty simple.07:55
systemdlete29As I said:  (you can only set ATTR, not ATTRS, apparently)07:56
systemdlete29^^07:56
systemdlete29I agree we seem to be restricted from doing so, at least directly.07:56
systemdlete29I wonder if there is a way to do this via the usb subsystem itself, rather than taxing my wits against this monstrosity.07:56
rrqwhat is/was the goal here?07:57
brocashelmis there a way to get xfce to run without dbus running? would putting dbus_enable="NO" in /etc/rc.conf suffice?07:58
onefanghttps://www.devuan.org/os/documentation/dev1fanboy/en/devuan-without-dbus.html might be useful.07:59
systemdlete29rrq:  I was trying to set the serial number of usb ethernet devices because, sadly, some mfrs don't seem to think they are necessary08:00
brocashelmyeah, i linked to that in ot earlier, but that doesn't apply to xfce or any other de08:00
systemdlete29So if I have multiple of the same make/model of usb device, they are indistinguishable from an application's POV08:00
brocashelmjust to have xfce running sans dbus (but not removed)08:00
systemdlete29and unfortunately, the application does not have ANY way to uniquely identify usb devices by mac address--I have asked the devs and they have told me as much.08:01
onefangJust remember that /sys is a virtual file system controlled by the kernel, not a real file system.  So it only lets you do things that the kernel thinks are sane, but most of it is purely for the kernel to show information and thus read only.08:01
systemdlete29and, unfortunately, the application does not support references to /dev/... which would be a useful way to distinguish them also.08:02
systemdlete29No, its not what the kernel thinks is sane.  I think it is more what a certain dev thinks is sane.  Not that this person is necessary himself sane.08:02
systemdlete29If an admin would like to shoot their own foot off, unix traditionally allowed them to.08:03
systemdlete29What I want to do would hardly damage the system, so I deem it "sane"08:03
systemdlete29I think using the NAME= approach in the rules makes a lot of sense.  But the devs do not have plans to support it or maybe any other decent idea.08:04
systemdlete29so... I may be S.O.L08:04
systemdlete29I have more usb-eth dongles coming.  I will check them to make sure they have serial numbers (real ones, not silly "000000" ones).   Otherwise, they go back to the clowns that sold them to me.08:05
systemdlete29I mean, changing the serial number of something should be just as straightforward and accessible as changing a mac address, which you can do with nearly any ethernet device nowadays (or at least, I have not run into a problem doing so)08:06
rrqright; I don't think I've ever used the serial number of any device :)08:07
systemdlete29but you have probably changed a mac once or twice?08:07
rrqyes though that number belongs to the function of the device, not device itself08:08
systemdlete29what is the distinction?   The kernel could easily permit an override, even if it means storing the info inside its own tables.08:08
rrqbut I agree it *should* be easy :)08:09
systemdlete29I think that is done in some places for certain things.08:09
systemdlete29yes, that is the point.  Straightforward.08:09
systemdlete29And hopefully, documented a bit more thoroughly than the short shrift we are given.08:09
* systemdlete29 sings "I'm a Volunteer and I'll do WTF I Like Even If It Pisses Off The Entire World."08:10
rrqfor USB it comes in the descriptor I guess, so any override would need to be a filter on the communication08:10
systemdlete29Perhaps, idk exactly.  All I do know if that tools like openwrt can do this quite comfortably for the MAC address.08:11
systemdlete29But you are right that maybe it amounts to some overhead.08:12
rrqsystemdlete29: pm08:22
rrqbrocashelm: xfce4-session seems to require dbus (session), and so do several "core" programs (eg xfce4-panel), which makes it a "no" answer.11:48
fsmithredsystemdlete29, try using file system labels on your usb devices.13:02
fsmithredbrocashelm, I don't know if you can run xfce without dbus, but I did play with running it without policykit. This is old (jessie) so some things may have changed. https://dev1galaxy.org/viewtopic.php?pid=11341#p1134113:05
spacecadet001anyone using vpn ?14:35
spacecadet001may i know if riseup works for anyone ?14:35
fsmithredspacecadet001, I have used riseup, and it works.14:45
fsmithredI don't recall any details about using it.14:46
spacecadet001I meant the riseupvpn debian package ? They don't provide support for openvpn now.14:47
spacecadet001snap package they provide is not compatible with devuan14:48
fsmithredI think I tried it in chimaera14:48
fsmithredwas thinking about it this morning. I'll reinstall and try again.14:49
spacecadet001if it's working for you , do not reinstall .14:49
fsmithredit's no longer installed14:50
spacecadet001latest package has dependency on libappindicator3-1 .14:51
fsmithredI'm not seeing it in chimaera or beowulf now (riseup-vpn package)14:51
spacecadet001ok , please let me know.14:51
spacecadet001https://riseup.net/en/vpn/linux14:54
spacecadet001ok.14:55
spacecadet001I will try building , but will need to see if i can replace the lib modules14:55
spacecadet001Thank you , fsmithred.14:56
fsmithredspacecadet001, I have 0.19.11 installed on this beowulf I'm running right now.15:01
fsmithredand I have the .deb package in my home dir, so I must have downloaded it from debian and installed it manually15:01
spacecadet001ok will check that .15:02
spacecadet001thank you15:03
fsmithredbeowulf has libappindicator3-1 but chimaera has libappindicator3-0.1-cil15:03
fsmithrednot sure if there's an easy way to get it to work in chimaera15:03
spacecadet001yes that is the issue .15:03
fsmithredI added the leap archive and installed with apt. I see the command in apt history.15:06
spacecadet001 installed in   Chimaera ?15:07
fsmithredno, in beowulf15:07
fsmithredI'm checking now to see if leap has packages for bullseye(chimaera)15:08
fsmithrednope. no bullseye in leap according to apt update.15:08
spacecadet001they have not updated debian .15:09
spacecadet001https://dl.bitmask.net/RiseupVPN/linux/15:09
spacecadet001https://0xacab.org/leap/bitmask-vpn15:10
fsmithredspacecadet001, you could try building it with their instructions. FWIW, I found it easier to use tor-browser instead of the vpn.15:20
rrqspacecadet001: you might also consider installing libayatana-appindicator3-1=0.5.91-1 from daedalus into your chimaera15:26
noobarooHi, i am trying to replace systemd with sinit on Debian22:14
brocashelmthis channel is for devuan support22:16
brocashelmif you need help with devuan, just ask22:16
brocashelmcurrent supported inits for devuan are sysvinit, openrc, and runit (partially implemented). you can try s6 and a few others if you like, but they are experimental and not yet officially supported by the devs22:20
brocashelmwhen you use the devuan installer iso, you can choose any of the three inits i mentioned22:20
brocashelmno need to worry about systemd as devuan's merged repository checks for that22:20
brocashelmhttps://www.devuan.org/os/documentation/install-guides/chimaera/install-devuan22:21
noobaroois sinit part of the installer iso?22:32
noobaroo(suckless init)22:33
brocashelmno, it's sysvinit, openrc, and runit for now22:35
brocashelmalthough runit is not 100% implemented as its services still use sysv scripts22:36
brocashelmnot sure about openrc, but that one should be stable at the very least22:36
brocashelmi use runit myself and haven't had any issues. it's fast when booting up22:36
fsmithrednoobaroo, the migration guides might have some hints for you. https://www.devuan.org/os/install22:46
fsmithredopenerc in debian/devuan uses the sysvinit scripts.22:49
rrqnoobaroo: you can trial your (say) /bin/sinit by booting up with "init=/bin/sinit" as a kernel parameter; it'll boot up your initrd then pivot to the root filesystem and run sinit ... you'll then of course also need your /bin/rc.init properly prepared for a useful bootup23:02
noobaroorrq, have you done this before?23:03
rrqused kernel parameter, yes, but not sinit.. just /bin/bash really23:04
rrqand I'm blissfully unaware with the debian+systemd initrd23:04
noobaroohttp://ix.io/3VEu23:04
rrqwith=of23:04
noobarooif I put /bin/bash at bottom of rc.init I can get a working prompt. But I can't get getty to run, no login prompt or TTY switching23:06
rrqprobably the initial mounts should be before starting udev (eudev)23:06
noobarooYou think that will make getty work? I can see all the /dev/tty#sin /dev, there are tons23:07
noobaroo/dev/tty0-dev/tty-some high number i dont remember23:08
noobarooThanks for your suggestions, super appreciated!23:08
rrqmy getty start lines are like "/sbin/getty 115200 tty2"23:08
rrqthe mount order would be primarily for /run and /tmp being set up before running udev23:09
noobarooAlright, ill try to readjust order, and also revamp getty commands23:10
noobarooin the meantime, I regressed a bit to get a working system. I had to reinstall systemd package, overwriting eudev.23:11
noobarooWhen I tried launching Grub normally (no init= parameter) systemd failed to start udev and gave me a recovery prompt in which my keyboard did not work lol23:12
noobarooI created a custom systemd service of eudev and masked udev, so i really am not sure what went wrong. With runlevel target being sysinit23:12
alphalphaHi23:33
fsmithredhi23:36

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