libera/#devuan/ Monday, 2024-10-14

AlverstoneNope, using evdev hasn't solved anything09:44
Alverstonesomething lagged and now I can only use keyboard in one session09:45
Alverstoneswitch vts and it stops working09:45
Alverstoneor rather09:45
Alverstoneworks on tty1 and tty>209:45
Alverstoneand not on tty209:45
Alverstoneunplug plug back on tty209:45
Alverstonewill stop working on tty109:46
Alverstonethis is so bizzare09:46
Alverstonebizarre*09:46
Alverstonerestarted elogind to "magically" fix09:47
Alverstonerootless xorg has always been full of stupid bugs09:47
Alverstonein my debian I would have my X session frozen with no way to cope but to kill09:48
Alverstoneat least it doesn't do it here, *seemingly*09:48
DingoSaarThis might be a newbie question, but I haven't found a definite answer for it. I want to read (and possibly write) from a NetBSD FFS partition. However, I haven't found yet an utility package. Can anybody point me in the right direction? ddg.gg hasn't yielded any results I can work with.10:49
rrqmaybe this is a help? https://wiki.netbsd.org/tutorials/how_to_mount_ffs_partition_under_linux10:53
rrqafaict there are some caveats for writing10:55
DingoSaarThanks, but that only meant that ufs isn10:56
DingoSaart installed on my newly installed devuan system. And I haven10:56
DingoSaart yet found a way to enable it.10:56
DingoSaarOn this VM, I cannot compile my own kernel, alas10:56
rrqright; and apparently CONFIG_UFS_FS_WRITE is not set for debian kernel 6.1.0-25-amd64 so there's no direct writing... you might need to set up a freebsd chroot10:58
rrqor netbsd chroot10:59
rrqthough that might not be sufficient if it actaully requires kernel support11:00
rrqthere seems to be some "fuse ffs" option but I don't know anything about it ... https://github.com/avinashshenoy97/FFS11:06
rrq(may even be something else)11:07
rrqbtw there is an "ufs" module, so "modpobe ufs" would load that, but apparently it doesn't include write support11:10
drizztAlverstone: "restarted elogind to "magically" fix" <-- there's nothing magical in this : elogind may have taken control of the keyboard and mouse on the tty, which leaves nothing for any other programm11:13
DingoSaarThanks, so it seems it is there by default11:20
DingoSaarThanks, from all options I looked into, "it'a a module in the standard kernel" didn't come to mind. It seems this solves my problem. Thanks again!11:23
Alverstonedrizzt, I don't have the barest idea. The only helpful log I found is that i failed to close an input device, presumably the keyboard. Happens with the mouse too. Probably it's because I switch too quickly between ttys. Need to hold a pause of 4-5 seconds. It's empirical data though11:31
freemrootless xorg would be a good idea, *if* another process didn't had to be root instead...17:48
drizztthe real question is : why does the system need a root process to run an X server ?17:49
* freem still uses xorg as root, because still have not found any good reason to switch to a way which just requires another daemon to do the job, and unlike elogind & consort, Xorg received decades of bugfixes17:49
drizztfreem: +1, same here17:49
freemfrom what I remember (not much), it's because xorg embeds some drivers, so have to work along with the kernel on some stuff17:49
drizztfreem: any user can work with the kernel17:50
freemalso I believe openBSD have rootless Xorg without requiring a 3rd party daemon, but I'm not sure at all17:50
drizztfrom the kernel point of view, root IS a user17:50
freembut if this is true, then the problem comes down to a bad software architecture on linux's xorg server17:51
drizzt(and there's no other point of view than the kernel point of view on a Linux kernel based system17:51
freemproblem is that historically, you had to be UID0 to access some files, since posix does not have anything akin to capabilities or jails AFAIK17:52
drizztroot is a user which has ID 0, and as such can do anything a user can do without having to become another particular user17:53
drizztbut the linux system also provides groups, and users can be asigned different groups, and files can get specific rights for a given group17:54
drizztthis solves almost all situations.17:54
freemindeed17:54
drizztand when this is not enough, then there's ACL to the rescue :)17:54
freemare ACLs portable, though?17:55
drizzt(but I do not know if this would be useable on /dev content)17:55
freemxorg is not just a linux software, it's used on other OSes17:55
drizztfreem: define "portable"17:55
drizztaccross architectures, yes17:55
freemwas more thinking about accross OSes17:56
drizztaccross OSes ... I don't know17:56
drizztThey are called "POSIX ACL"17:56
* freem does not knows anything about ACLs17:56
freemoh17:56
drizztShould be rinning on any posix system17:56
freemwell then I guess that should be reasonably portable yes17:57
drizztrunning17:57
drizztmind, we may not be able to use them anymore in a near future, as "posix" seems to be something which devs and distribution maintainers seem to forget, or do not care about ....17:58
freemdunno. I personnally care about using stuff from standards as much as possible17:59
drizztfreem: that's a good point for you :)18:00
freembut I guess most linux distro maintainers indeed don't care that much18:00
drizztsystemd devs do not seem to care as much as we do18:01
freemotherwise systemd would not have taken that much18:01
freemsystemd people never gave a damn about portability18:01
freemthey do document the fact they *require* glibc6, because they use some of it's extensions, and rejected patches to get muslc portability18:02
Alverstoneis it possible to put eudev under runit supervision? does it make sense?19:42
fsmithredchecking...19:45
Alverstonei ask because i often embark on some autistic journeys of 'fixing' something that isn't supposed to be fixed19:46
Alverstonei waste a lot of time19:46
Alverstoneuse my crippled solution for a year or so19:47
Alverstoneroll back19:47
Alverstoneand then try to forget it as a nightmare19:47
Alverstoneand then roll back*19:47
fsmithredI don't have one and I don't see one in the runit-service package19:48
fsmithredI also would assume that it's possible.19:49
Alverstoneit's because eudev is started very early19:49
Alverstoneit's S02 in rcS.d19:49
fsmithredand if you're interested, I'm pretty sure gnuinos has a build with runit and vdev instead of udev/eudev19:49
Alverstonepros of vdev?19:49
fsmithredI don't know, but in the last build, he got it to boot fast. It used to be very slow. I think it's faster than eudev now.19:50
fsmithreddisadvantage is that you might have hardware that vdev does not know what to do with.19:51
Alverstonehttps://github.com/jcnelson/vdev19:51
Alverstonesays to get my hands dirty D:19:51
fsmithredI managed to write a few files for some hardware when vdev was new. It was not too difficult. I'm sure I could not write a udev rules file.19:51
fsmithredit's come a long way since jude messed with it.19:52
fsmithredaitor has been working on it. (gnuinos dev)19:52
fsmithredgnuinos.org/mirror/daedalus/runit19:56
Alverstonelooks quite involved19:58
Alverstonethese barebones things require skills and knowledge i don't have, and i tend to avoid software i don't understand and i am not sure is entirely safe/reliable19:58
Alverstonerunit is simple to understand, so i switched to it because i don't like what systemd/gnomeOS is doing to linux19:59
Alverstonebut udev...20:00
Alverstonei don't understand any of what it does or how20:00
fsmithredok, don't go there.20:01
Alverstone:)20:02
fsmithredI checked the forum. Back in 2021 Lorenzo said he wasn't sure he could do udevd.20:07
Alverstonefair enough20:08
Alverstonevoid folks start udev in stage 1 same way devuan does and then just restart it upon entering stage 220:10
Alverstoneidk how good that is20:10
Alverstoneor how bad20:10
Alverstoneexec 2>&120:11
Alverstoneudevadm --exit20:11
Alverstoneudevadm control --exit *20:11
fsmithredwhy?20:11
Alverstoneexec udev20:11
Alverstonethree lines20:11
Alverstonethat's void's run file for udev20:11
fsmithredoh, so runit takes over20:11
Alverstonethe result is that udev is controlled by runit20:11
Alverstonebut whether it makes sense to do so, I don't know20:12
fsmithredI don't either20:12
Alverstonecan udev fail? if it does, is it good to restart it? or maybe there's a good reason why it exited?20:12
Alverstonetoo many questions20:12
fsmithredno, you're not really supposed to restart udev, but I've done it plenty of times20:13
fsmithredsorry I don't remember why20:13
fsmithrednot for normal computer usage. I must have been messing with stuff.20:13
freem<Alverstone> is it possible to put eudev under runit supervision? does it make sense?20:16
freemYes, it is.20:16
golinuxAlverstone: You seem to have a lot of "fringe" problems . . .20:17
freemAlverstone: https://p.mort.coffee/61A and https://p.mort.coffee/yVK are the files I use20:17
freemand yes, it makes sense. Udev can crash, for example20:20
Alverstonefreem, but what about stage 1?20:22
freemno need20:22
Alverstonehow so20:22
freemwhy would you need it at stage 1?20:23
freemudev is, IIRC, embedded in initrd, and does some work there already20:23
Alverstonesay, S06cryptdisks-early20:23
AlverstoneS07cryptdisks20:23
Alverstonedon't they need /dev20:24
freemwell, stage 1 will run cryptdisks except if you named a folder cryptdisk in your /etc/sv folder20:24
freemerr... /etc/service, sorry20:25
Alverstonei didn't20:25
Alverstonei don't see a point of overloading runit with one-off scripts just to sv down them forever20:25
freemsame20:25
freembut udev is a daemon sitting around waiting for some stuff to do, it's not a one-script thing20:26
freemone-off*20:26
freembesides, if your disks are encrypted, you need the kernel modules load by initrd, when you land in your normal system, it means there's already enough things loaded to read /etc and /usr at minimum20:27
freemespecially with usrmerge around20:27
freemI don't remember when I have found that run file for udev though. When I tried myself, udev would not work because this crappy daemon requires commands to be sent it after it have done it's init in order to start actually working20:29
freemmost of that script is not from me, and it is clearly perfectible, as if for some stupid reason someone decided udev binary is a library (hello systemd crowd...) and you naively just tried to summon it, the script would spam processes endlessly20:31
freeminstead of noticing something's wrong20:31
freemI'll take a look at this vdev thing though. udev is a component I want to replace since *long*20:31
Alverstonei don't kernel modules to be loaded by initrd actually because it's just encrypted swap as of now20:33
Alverstonei don't need820:33
Alverstonei don't need*20:33
Alverstoneat least that's what i think...20:34
Alverstonei don't even really know who does the loading, scripts in /etc/rcS.d are not very explicit, S09kmod doesn't too much seemingly20:35
Alverstoneif all most modules are loaded in initramfs, then you're correct20:36
Alverstoneall or most20:36
freemI'm no expert on that matter, mind you20:41
freemthe /etc/rcS.d/ files made me run away screaming when I tried to read them, long ago20:42
freemreally, it's a good thing this stuff will be less and less used: to understand _one_ of those you need to find sourced scripts from a multitude of random places20:43
freemas if shell was not already a nightmare by itself20:43
freemwhat I do know though, is that I use that udev run script on all my computers, including that VPS with an encrypted root partition :)20:44
Alverstonehow to update alternatives?20:53
Alverstonei want mousepad to provide editor20:53
Alverstonenot vim20:53
Alverstoneig i want too much sorry20:54
n4dirusually with "update-alternatives --config editor" ; but using mousepad doesn't seem possible, probably because it is a gui editor20:55
debdogupdate-alternatives --config item20:55
debdogdouble tab gives you a list of all available items20:57
debdogor look at /etc/alternatives/ to see the items and the targets they're linked to right now20:58
debdoghttps://wiki.debian.org/DebianAlternatives21:00
debdogoops, sorry, totally missed n4dir's comment21:00
n4dirno need to be sorry, there is quite some extra info you gave21:02
debdoghttps://wiki.debian.org/DebianAlternatives#Adding_a_new_alternative_to_an_existing_group mayhap following this mouspad can be added?21:03
Alverstonedebdog, n4dir has a point about GUI21:07
Alverstonei won't die typing 'mousepad', which i almost never do anyway, and some things may rely on /bin/editor and i don't want it to explode in a text session21:07
Alverstonedidn't think about it21:08
n4dirall i can say is mouspad which is installed isn't listed here. More i don't know21:09
debdogAlverstone: there is x-terminal-emulator for that21:11
rwpReally everyone should be setting EDITOR in their ~/.bashrc, ~/.xsessionrc, or equiv file anyway.  Pick one: EDITOR=emacs EDITOR=vim EDITOR=nano21:11
fsmithredyou can set the default graphical editor inside your desktop21:11
fsmithredI don't see mine in the alternatives21:12
Alverstonei don't use desktop :D21:12
fsmithredwindow manager?21:13
Alverstonei3wm with i3bar21:13
Alverstonewell i use xfce4-appfinder actually21:13
Alverstonebut my file manager is worker21:13
fsmithredoh, I don't know how to make a menu item in that. Does it use .desktop files?21:13
Alverstonein worker, you configure everything yourself21:13
Alverstoneincluding how certain file types are handled21:13
Alverstoneso I just made editor.sh to exec mousepad and that's it21:14
Alverstoneif I want to change it, I just edit editor.sh21:14
fsmithredyeah, that's probably the easiest21:14
Alverstonefsmithred, appfinder uses .desktop files. very handy21:14
Alverstonehaven't found anything more straightforward to use21:14
fsmithredkey combination?21:15
fsmithredcan't you set those in i3?21:15
Alverstonedon't wanna clutter i3 config with those21:15
Alverstonei use a few for file manager and the like21:15
Alverstonebut that's all21:16
rossignolI just installed the raspberry pi flavor of devuan. It's got a cute little login that shows basic info about the host, kind of list fastfetch or neofetch. But it's does not appear to be any of those packages.23:11
rossignolAnyone here know what's giving the output on login? I can't find anything in .bashrc or .profile.23:11
user71I'm confused, you want either /etc/issue or /etc/motd depending if the message is displayed pre or post login23:14
golinuxYou might also want to ask in #devuan-arm23:25
rossignol@golinux, thanks - I'll check in there23:26
drizztdebdog: double tab gives a list of items only if you have bash-completion installed and loaded (or equivalent for other shells)23:46
rwprossignol, I think it is pam_motd.so a PAM module in /etc/pam.d/login and /etc/pam.d/sshd and the message can be silenced by touching a file ~/.hushlogin23:51

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