libera/#devuan/ Thursday, 2024-12-19

al1r4d^same question07:16
gnarfaceyou could try just building it and packaging it and installing it...07:17
gnarfacethe question kinda reeks of a troll agenda, because it's worded in a way that falsely implies there aren't already a bunch of alternate init systems in devuan "for fun"07:18
gnarfacethe real question should be, why isn't shepherd in debian already? is it something wrong with shepherd, or is it something wrong with debian? (i'm gonna assume both for now, because this came out of the blue like an organized psy-op)07:18
gnarfacebut if shepherd were something *I* was interested in, i'd at least try to compile it myself once first before trying to leverage psychology to try to make other people do the work for me, and i'd definitely stick around longer than 10 minutes if i was needing and expecting help with it07:22
paculinoThat is strange, I would have thought that Debian Gnu/Hurd was using Shepherd as an option, but apparently only runit is used now according to the mailing lists07:22
gnarfacei heard of shepherd for the first time yesterday07:23
paculinoYou can use guix on debian-based similarly to flatpak, and guix has shepherd07:23
al1r4di have a question: does anyone can enable hardware-acceleration in chromium/brave-browser?07:23
al1r4dDescription:Devuan GNU/Linux 6 (excalibur/ceres)07:23
al1r4d:)07:23
paculinoMy partner uses guix, so I knew of it already. Iirc, someone on the forum made a guide for removing systemd in any distro, and it used shepherd07:24
gnarfaceal1r4d: i think there is a way to do that but you kind sabotage the primary point of using chromium instead of firefox or chrome, because it requires adding the closed-source DRM "wildvine?" implementation07:24
gnarfaceal1r4d: there might even be an optional package for that already in the repo, but worst case you just rebuild chromium with it, i've seen instructions somewhere...07:24
al1r4di give up from firefox unfortunately07:25
al1r4dgnarface: thx!07:25
gnarfaceal1r4d: firefox has it already and you just have to enable it by checking a box in settings. the chromium package in the repos might actually have to be rebuilt, but i'd check for an optional package first07:25
hagbardjust a PSA for other devuan mirror operators: claude.ai (User Agent ClaudeBot/1.0) disobeys robots.txt, and will recursively download the entire archive, repeatedly, continiously.10:34
onefangOuch.10:35
hagbardSo you might want to have a look in your webserver logs, and you might save some traffic by blocking that user agent.10:35
onefangNo sign in my logs.10:42
hagbardGood. Maybe it's just my luck. A rewrite rule in the apache site config to block that Agent did the trick for me. Most entries in the access log have been just from them.10:47
amarsh04hmm, bind9 seems to have stopped calling resolvconf and I can't figure out when it happened12:30
gnarfacewhat release?12:33
amarsh04that's the problem, I've tried all versions of bind9 available in Devuan and still hitting the same problem, so I don't know if it is actually a problem in some other package like libc612:34
gnarfacehmm, weird12:35
gnarfaceis wpasupplicant or any types of network management daemons involved?12:35
gnarfaceavahi-daemon, network-manager, etc?12:35
amarsh04not that I know of12:35
gnarfacewell it's easy to be sure12:35
gnarfacesome of these things might be part of the default install12:35
gnarfacecheck the output of "ps aux --forest"12:36
gnarfaceif you didn't configure /etc/network/interfaces by hand, the answer very likely could be yes, actually...12:36
gnarfacedhcp daemons too12:36
gnarfacecheck for those12:36
amarsh04well, dhclient triggers resolvconf, but then so should bind912:37
amarsh04my workaround is to edit /etc/dhcp/dhclient.conf and uncomment prepend domain-name-servers 127.0.0.1;12:38
gnarfacei think that's the right way to do it...12:38
gnarfacebind9 is supposed to query the root nameservers by default12:38
gnarfaceit wouldn't use your resolv.conf i don't think12:38
gnarfacealthough personally at that point i would question the usefulness of including dhcp in this loop12:39
gnarfaceif you just want a caching nameserver for a single machine that respects your ISP's default dhcp-supplied network configuration, i think dnsmasq is the one that comes out of the box with suitable defaults for that12:40
amarsh04well, using resolvconf used to "just work" to make bind9 on localhost the nameserver rather than my router's ISP-linked nameserver12:40
gnarfacea change to the dhcp client or the network manager perhaps?12:41
gnarfaceor you forgot you made some change to bind9 maybe but, i think the former12:41
amarsh04could be, anyway the Australian government mandates blocking dns names of torrent sites so I run a local nameserver12:42
amarsh04looking at the bind9 source13:13
gnarfacei wouldn't think that would be necessary, i think just looking at the documentation for the config file should jog your memory enough13:19
gnarfacewhat you might have done is set your ISP's DNS servers as the primary resolvers manually13:19
gnarfacebut off the top of my head i can't be sure there isn't some line to just tell it to refer to the system's resolv.conf13:20
gnarfacei just know it doesn't do that by default13:20
gnarfaceand hasn't, as far back as i can remember13:20
gnarfacebut i've never actually installed it on a system with a dhcp client, a network manager, or avahi-daemon13:22
gnarfaceso maybe ymmv13:22
freem<gnarface> you could try just building it and packaging it and installing it...14:03
freemActually, I had read the question as: "is it possible to install multiple inits on a system at the same time, and to have the system to still work without too much work" and my answer would be: no.  Because then there won't be any integration, and I suspect things like sysvinit-core will fight against such process. Now, I had not answered because 1) asker left very quickly and 2) I could not turn it into an answer I'd be happy with, there's too much14:03
freemguessing and suppositions in my "answer"14:03
freemI agree on the agenda thing though, even if I didn't thought about it14:03
gnarfacewell, the thing is they're barking up the wrong tree14:06
freemwell, technically having several init installed is just a matter of not naming the binaries "/sbin/init" but making it a symlink pointing at them, but the integration would still miss14:07
freemamusing expression "barking up the wrong tree" :)14:07
gnarfacei know of the several that are in the repos, there is some overlap because sysvinit isn't the only one that relies on sysvinit's init scripts14:07
freemin any case, when *I* wanted to toy with other inits I got curious about, I tried, instead of asking, and that certainly worked nicely :)14:08
freemthat dependency though is probably related to the fact people re-use old rc.d scripts to inject them in init alternatives, as what is done for runit? It works, but is a relatively poor solution I think (which is why I do the effort myself, it's easy to write a runit service after all).14:09
freemreminds me I need to do that for chrony...14:10
gnarfaceyea, openrc does that too. it's just a set of useful defaults, you can still use them the normal way other distros do, but debian wanted to reduce effort of replication...14:10
gnarfaceit does tend to throw people off though, when they're expecting the same experience as some other distro that defaults to their particular chosen init14:11
freemwell, I understand taht effort, but I think the way it's done is not exactly clean. Now, I ain't contributing nor talking with maintainers, so should just shut up, obviously.14:11
gnarface(also historically not an uncommon situation with "debianization")14:11
freem" when they're expecting the same experience as some other distro that defaults to their particular chosen init" fun fact, I consider void-linux's runit integration quite poor, if that have not changed since last time I tried14:12
freemI don't know for other init systems and distros, thuogh, nor do I know what people might expect from an init + service manager  (since this is really what we are talking about here, the framework, and not just the init)14:14
freemhm... but should not we continue this offtopic, thuogh?14:14
freemif there's more to say, that is.14:14
freemoh, that chronyd's -F option seems like a rabbit hole... what is this seccomp facility now, and how could I use it... from chronyd's man-page, it sounds like something programmers should integrate within their programs. I guess it's not portable though? It kind of looks like those *BSD facilities I heard about, though, from what I can get (without reading much yet)14:18
amarsh04gnarface, with some more testing I found that bind9 1:9.18.28-1~deb12u2 worked with resolvconf, and bind9 1:9.20.4-3 does not call resolvconf14:23
freemapparently, chronyd double forks, and there's no way to avoid that?14:23
freemmaybe should use ntp or openntpd packages instead...14:24
freemntpsec is written in python lol, probably because of some "managing memory is unsafe" fashion stance14:25
freemguess it will be openntpd then, man-page is clear as to how to avoid the ugly double-fork trick14:30
freemheh. Another trivial runit script done in few secs. I like runit and daemons which have a clear doc about if they double-fork or not, and allow to disable it when they do.14:33
amarsh04reported the bind9 not calling resolvconf to Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=109080414:35
Hurgotronfreem: I tried ntpd and openntpd on systems which get suspended (laptops...) and they stop working sooner or later. chrony has been reliable in my usecase. On 24/7 running machines I use openntpd14:39
freemare you not contradicting yourself? " openntpd ... stop working sooner or later. chrony has been reliable in my usecase. ...  I use openntpd"?14:40
freemHurgotron: also, what do you mean, stopped working?14:41
HurgotronNo? "On 24/7 running machines I use openntpd" ie, not laptops14:41
freemah14:41
freemgot it14:41
HurgotronI think the deamon died... maybe didn't like switching networks14:41
freemthat computer is my desktop, definitely not running 24/7, but chronyd's doc is a bit lacking, so I don't feel too trusty about it14:41
freemah14:41
freemwell, crashes or the likes will be handled by runit I guess. It's not critical anyway, it's just about not having stupid TLS "unsafe area" all the time when browsing the web...14:42
HurgotronBut I also had issues on my desktop, which I also hibernate. It has a fixed ipv4, but I guess my ipv6 prefix chansged every now and then, so probably the same cause14:43
freemah, yeah, seems likely14:44
Hurgotronactually I don't like autorestart on daemons. If they crash they should be fixed, if hey don't crash I don't need autorestart14:44
freemI don't hibernate though, system boots faster with cold boots than with hibernate/wakingup14:44
freemI still think it's weird openntpd would crash on such events? But maybe.14:45
Hurgotronah, not hibernate, I suspend the desktop too. Keep confusing it. "suspend to RAM" is more clear14:46
freemI mean, openbsd have a rather good reputation in security, and crashes are not exactly what i'd expect (well, better a crash than a hole, sure)14:46
freemI see14:46
Hurgotronfreem: Not sure if it crashes, but at some point I wondered why the system time is off and found that the deamon was not running anymore14:47
freemwell, I guess I shuold be fine, since I just call /sbin/poweroff... should suspend-to-ram more often, really14:47
freembut I never think about doing this14:47
freemHurgotron: thx for feedback though, it's good to know. Why not run chronyd on those 24/7 systems, too? Just to avoid fixing what is not broken, or is there is another reason?14:55
Hurgotronbasically it's what I always did, the switch to chrony on the other systems is somewhat recent (this year, ISTR)14:56
freemgot it, and makes sense14:56
HurgotronBut I have to use chrony at work (RHEL & co) so I know what to do with it, too.14:57
freemwell, my only use case is, as said, to still be able to browse the web when a computer ran off batteries or drifted too much14:58
freemsince asus thought it's a smart idea to remove the cmos battery on laptops...14:58
freemthere really are smart people around, sad that it's not a requirement to design systems...14:59
Hurgotronreminds me of foone's rant about 3 key rollover on some keyboards...15:02
Hurgotronbut, it's offtopic. Maybe I should go there15:03
freempreviously I'd just use ntpdate, really, but someone replaced the fine native implementation with a python one "for security" I presume.15:03
freemindeed, we should15:03
gnarfaceamarsh04: could it have been a feature pulled out by a security patch?15:38
yetiI use openntpd instead of that python thing.15:47
amarsh04gnarface, could be something not properly tested with each build - I didn't know that it had failed until I needed to bypass my ISP's DNS16:09
freemhm... I wonder how I could suspend in ram without requiring root access (i.e. using suid like I did for /sbin/poweroff)? pm-suspend leads to some shell scripts relying on some shell library which itself includes other shell libs, sysvinit+rc.d hellish's style :/17:47
freemthat shell-lib mess is what drived me to try systemd, long ago, and why I did the effort to move to runit, as well17:48
freemand ofc, making the shell script itself suid does not helps17:49
freemperhaps I should just write my own pm-* tools directly from the kernel interface... it might end up being easier than fighting the system17:50
freemHurgotron: btw, about naming for this stuff, https://www.kernel.org/doc/html/latest/admin-guide/pm/sleep-states.html uses the terms S2RAM and STD. I think S2RAM and S2DISK with the proper context would more explicit than hibernate and suspend. I'll probably start using those, myself.17:53
freemyep, writting a small C utility which just writes in /sys/power/state is definitely going to be easier than fighting against pm-utils's annoying restrictions17:58
freemand code will be much simpler to understand, as well!17:58
freemoh! Now I understand! pm-utils is a freedekstop.org project :D17:58
* freem wonders if there is a tool to count the full KLoC of a shell script, including sourced "shell libraries"17:59
freemoh! Hurgotron: https://cgit.freedesktop.org/pm-utils/tree/README "* Suspend/resume functionality can be easily modified by installing files into the /etc/pm/sleep.d directory. [...] re-syncing the time with ntp" maybe chronyd puts a file in /etc/pm/sleep.d which allows it to detect a suspended/hibernated state and thus resync without problems?18:10
freemalthough I don't see anything in `apt-file show chrony` which suggests any direct relation with pm-utils, and similarly for the dependences. Maybe there is some other kind of dark magic at work within other tools, though: there is a "suggests" for both dnsutils and networkd-dispatcher on debian.18:14
HurgotronI would guess openntpd just doesn't expect the network to change and doesn't know how to handle it, and chronyd reconnects.18:21
HurgotronThe "run script before/after suspend to RAM" is a different can of worms. Took me a while to find the solution, and it's NOT the freedesktop one you cited. At least not for Devuan18:22
freemI am failing to imagine a use-case for that honestly. Do you have one?18:24
freemand what was your solution, too :D (might be handy if the question rises someday, I'd have something to answer)18:25
freem(I mean, I would have a relatively standard solution, instead of the "use my own C hack" solution I will likely have in few hours because I'll get rid of pm-utils)18:26
Hurgotronfirst, the scripts need to go into /lib/elogind/system-sleep and /lib/elogind/system-shutdown in order to work18:27
freemok, you use elogind to handle sessions, and I guess it's able to interact with pm-utils, that makes a lot of sense18:28
HurgotronAnd I need it because I run slock as a screenlocker, and for some reason that fails just with one laptop. So I call it manually18:28
HurgotronThe other use case was to restore keyboard settings, which usuall get reset by waking up18:29
freemreally?18:29
HurgotronI was a bit surprised too18:30
freemwith a pm-suspend, keyboard layout config is lost?18:30
freemI have always seen pm-suspend as a way to tell kernel: "ok, now, enter a while(1){sleep(1);} loop, please"18:31
Hurgotronah, no. First, this is for xfce. And I man special settings like switch , to . on num pad, and disable caps lock18:31
Hurgotronthe tweaks are lost18:31
freem"switch , to . on num pad" ah, french user perhaps? I am totally interested in disabling the damn stupid idiocy of making '.' generate ',' on numpad... it is VERY annoying when using, say, gnumerics or calc. How did you did that?18:32
Hurgotronalso, my xset settings (screenblank...) get randomly reset. No idea why that happens so far18:32
HurgotronGerman user18:33
freemto me, this idea is as stupid as gitlab translating technical terms such as "commit", "tree", etc18:33
freemah, you guys also use ',' to split integer and decimal parts of numbers?18:33
Hurgotronright :)18:35
freemgood to know french users are not the only annoyed ones by this hehe: sharing the misery.18:36
freemalthough it's weird, with the layout I use, for *most* softwares numpad '.' does what I want it to do... only those "productivity suits" behave stupidly18:37
Hurgotronhttps://file.io/plrVfOOLzpEL18:37
Hurgotronthat is my /lib/elogind/system-sleep/99_keyboardmods.sh18:37
freemthat is, openoffice and gnumerics. I'm actually almost certain MS excel does NOT18:37
Hurgotronah of copurse i shared the wrong file18:38
freemhehe18:38
Hurgotronwell the startscript part is still interesing18:39
Hurgotron6Wm/download/plrVfOOLzpEL18:40
Hurgotrongods I hate this clipboard18:40
Hurgotronhttps://www.file.io/0ZtC/download/pfKbBRibZATa there.18:40
Hurgotronah leaked my username. whatever. (hardcoded becasue I'm lazy)18:41
Hurgotronfreem: I do networking and I often have to input IP addresses... and then you have a comma on the numpad.18:42
freemerror while retrieving :)18:43
freemHurgotron: that is my uploader (ugly) script: % upl ~/.bin/upl -k18:43
freemhttps://p.mort.coffee/onh18:43
freemmight help you :p18:43
freem<Hurgotron> freem: I do networking and I often have to input IP addresses... and then you have a comma on the numpad.18:45
freemwell, ok, but I do my share of networking as well. Never had this problem in terminals, and I use terminals as my main toolset: file exploration, versionning, text editing...18:45
freemand ofc ssh-ing :)18:45
Hurgotrondefault german keyboard layout...18:46
HurgotronI could switch to US, but then I'm missing umlauts18:46
Hurgotronand we should switch back to offtopic, didn't notice this was the other channel.18:47
freemthat is where it is weird, really. default french keyboard layout is missing this bug :D18:47
freemyep, but originally we were on topic, it was about support for the problem of i18n of numpad18:48
cousin_luigiThe default French keyboard was invented by the Devil.19:48
freemperhaps, but it's better than qwerty to code19:53
freemhttps://upload.wikimedia.org/wikipedia/commons/thumb/d/da/KB_United_States.svg/400px-KB_United_States.svg.png19:55
freemlook at all those symbols you poor qwerty users *have* to use more than one finger to get... above numbers, mostly. Many of those are direct access on azerty. I'll stop my off-topic here though :)19:56
freemwell, qwerty users can reach [] without combination, but not parens, what a mess. Parens are *far* more useful.19:56
freemoops.19:56
jonadabHonestly, the biggest problem with standard QWERTY keyboard layouts, is that the main buckies (shift, ctrl, alt) are all much too inconvenient, way out at the edges of the keyboard.  In an ideal layout, the spacebar would be split, so that one thumb can hit space and the other can hit shift, and then ctrl and alt would probably be home-row positions for the pinkies...20:06
jonadabBut the main part of that (splitting the spacebar) requires different keyboard *hardware* so that is obviously not happening.20:06
djphfreem: it's not like azerty has more buttons ...20:14
freemdjph: indeed, but azerty put the numbers where they need shift to be reached, when you lack a numpad20:19
djphah, that'd get annoying quick.20:20
freemnow, when coding, you rarely use numbers except 020:20
freembecause it's almost always better to use named constants instead20:20
freemwhy would that be annoying quick?20:20
gnarfacecome on guys, take it to #devuan-offtopic20:20
freemthat ^ is true20:21
freemgnarface: to my defense, I was pinged in here :)20:21
freemarguable argument, I know20:21
djphgnarface: sorry, misread the tab :(20:21

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