libera/#devuan/ Wednesday, 2024-11-20

darwinseems rc.local didn't run on start, despite it's 75502:53
darwinor /run/user/1000 wasn't created, or maybe it was but deleted twice (used to be created, but now I had to create it using rc.local, which doesn't happen either)02:54
gnarfacedid you install the "initscripts" package?02:54
darwinthis prevents start-pulseaudio-x11 from running02:54
darwininitscripts is installed02:55
gnarfaceyou using something other than sysvinit then i assume?02:55
darwinof course not02:55
gnarfacehmm, odd. which release?02:55
darwin502:56
gnarfaceis that... daedalus?02:56
darwinyes02:56
gnarfacecannot reproduce02:56
gnarface /run/user/1000 though is an elogind thing i think02:56
darwinmaybe rc.local did run but for some reason 'mkdir /run/user/1000' and its chown didn't happen02:57
darwini have elogind also02:57
gnarfacecompletely optional, should not be related to rc.local02:57
gnarfacetry a simpler test of /etc/rc.local like tell it to write a file to /tmp/02:58
darwinit did the commands I put in there when I ran it02:58
darwinbut it also has other stuff now I didn't put in there, which is odd and should be in its own system scripts02:58
darwinit has 'if test -d /etc/boot.d ; then' 'run-parts /etc/boot.d' 'fi'02:59
darwin(three lines)02:59
gnarfacethose are stock additions02:59
onefangYou replaced rc.local, or put stuff in /etc/boot.d/ which rc.local runs through.02:59
darwini did not replace rc.local nor put anything in /etc/boot.d02:59
onefangThese days rc.local will run any scri.t it finds in /etc/boot.d, which is the proper way to add youc own stuff.03:00
darwini don't even have /etc/boot.d, in fact.  Maybe that's the problem03:00
gnarfacethe "run-parts /etc/boot.d" thing was added to rc.local stock, i'm not sure when03:00
gnarfaceit's possible you upgraded and initially kept your old one but a later update overwrote it if it didn't look like it had been customized or something...03:01
gnarfaceno idea why /run/user/1000 isn't getting created, but keep in mind if your UID isn't 1000 then it'll be that number instead03:02
darwinit was a fresh installation of Devuan 5, not upgraded from 403:02
onefangI promise I'll type better after lunch.  lol03:02
darwinit is 100003:02
gnarfacedo you see elogind running?03:02
darwinelogind-daemon is running03:02
gnarfaceand dbus?03:02
darwin/usr/bin/dbus-daemon --system and longer versions are running03:03
gnarface"elogind-daemon" that's weird03:03
darwini should've put that in quotation marks03:03
gnarfaceit's just called elogind here03:03
gnarfaceer, wait...03:03
gnarfaceno, nevermind, elogind-daemon is right03:04
gnarfacewhich login manager?03:05
darwinnone03:05
gnarfacehmm, might be part of the issue03:05
gnarfacesome user processes might not start without it03:06
gnarfacei recommend lightdm just because it's given me the fewest problems03:06
gnarfacethat probably explains why pulseaudio isn't starting too03:07
darwinit did start before I set 'allowed_users=anybody'03:07
darwin/etc/X11/Xwrapper.config03:08
onefangNot just anybody can take your pulse, has to be qualified medica.... er carry on.03:08
darwini did that to solve some other problem I forgot03:08
darwinthat created at least two more problems03:09
gnarfacewell, on the one system i have here with elogind and lightdm and pulseaudio, i didn't do anything weird to the configuration and this is all working normally03:13
gnarfaceon the other systems where i don't have any login manager, i also don't have pulseaudio03:14
gnarface /etc/rc.local works on all of them though, independently of all the login/session/permissions management framework stuff03:14
gnarfaceso some of this might be a misdiagnosis, and some of it appears self-inflicted03:15
gnarfaceit is not unexpected for a bunch of random crap to show up in /tmp/ though and most of it i'm guessing isn't related to the issue at hand03:16
gnarfacei don't think pulseaudio has to be run as your user, i think that's just the new hot way to do it. i think you might be able to change the pulseaudio config so it can be started directly at startup and just used as a system daemon by any user instead. i think that's actually the way it used to be.03:18
gnarfaceand if you're not using any login manager i wouldn't really expect /run/user/[UID] to be of any use at all03:19
gnarfacehmm, i just had another idea about pulseaudio... maybe you could just add it to your window manager's startup programs directly instead?03:28
darwinit already is03:29
gnarfaceoh, hmm03:29
gnarfacewell, i'm not really completely aware of what all /run/user/[UID] is even for, or if there's a way to initialize it all without the rest of the normal software stack components, maybe someone else around here has ideas about that...03:30
freem<gnarface> no idea why /run/user/1000 isn't getting created, but keep in mind if your UID isn't 1000 then it'll be that number instead03:35
freemIs there is a /run/user folder, to start with? I hope the question was not asked yet...03:35
gnarfaceno, it was not and it's a good question03:37
freemas for this kind of stuff... I myself create a /dev/shm/${uid} that I export as XDG_RUNTIME_DIR, even if not using PA nor a login manager. I still have not migrated everything relevant to use that instead of /tmp though03:38
freemI never heard about /run/user before, it's why I asked. And it's definitely absent from my system (not surprising though, my system is weird)03:39
freemam I right to suspect that this folder is used for the same thing I created /dev/shm/${uid}, that is, to be used as XDG_thingy?03:40
* gnarface doesn't know03:41
freemthis actually reminds me I *should* make ssg-agent create it's stuff in $XDG_RUNTIME_DIR instead of /tmp... I happen to consider /tmp as a scratchpad, and happily `rm -rf /tmp/*` from time to time to get some cleanup (it's a ramdisk here so I don't really enjoy it full of crap) which ofc makes my ssh-agent unusable...03:42
rrq"What is this folder /run/user/1000? .. Asked: 10 years, 1 moonth ago"03:42
rrq"17103:43
onefangI guess a moonth is longer than a month.03:43
freemrrq: and the answer makes no sense on a devuan system... I quote (if that's the same link): "/run/user/$uid is created by pam_systemd"03:43
freemhttps://unix.stackexchange.com/questions/162900/what-is-this-folder-run-user-1000 is the one i found. And it turns out my guts were right, it seems to be mostly to store XDG_RUNTIME_DIR and other temp stuff03:44
freem(still thanks for the reminder to search, though, and sorry for asking I guess)03:45
rrqright; supposedly a per-user /tmp space03:45
rrqgnupg puts its socket(s) there03:46
freemapparently for ssh-agent I'll have to override $TMPDIR when starting it03:47
* freem tries03:47
freemhm... can't make stuff work that way. OTOH my user-land daemon management is a mess03:57
freemlol04:00
freemIn Debian, ssh-agent is installed with the set-group-id bit set [...] This has the side-effect of causing the run-time linker to remove certain environment variables [...] including LD_PRELOAD,04:01
freem LD_LIBRARY_PATH, and TMPDIR.04:01
freemFILES04:01
freem     $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>04:01
freembuggy doc.04:01
freemannoying, wonder if I can overcome this somehow04:01
freemsometimes I wonder if there is not a bit too much of security measures04:02
freempreventing to run ptrace(2) against this kind of process makes sense... on a multi-user system, but on a single-user one like a laptop or desktop? I wonder.04:03
gnarfaceit's probably not a difficult change to make in the code, but since it's ssh there's probably a good reason04:03
freemwell... I have to say, I do not really trust debian on their ssh patches04:03
freemI know of at least 2 big fails there, one quite old which made bunch of keys fragile and the recent systemd one04:04
gnarfacefair enough04:04
freemthe good reason is described in the man-page, though04:04
freemIn Debian, ssh-agent is installed with the set-group-id bit set, to prevent ptrace(2) attacks retrieving private key material.  This has the side-effect of04:04
freem     causing the run-time linker to remove certain environment variables which might have security implications for set-id programs, including LD_PRELOAD,04:04
freem     LD_LIBRARY_PATH, and TMPDIR.  If you need to set any of these environment variables, you will need to do so in the program executed by ssh-agent.04:04
freembut then they should probably have patched it to first take XDG_RUNTIME_DIR instead of... oh well, guess I can just check if I can patch it myself04:05
freemfun patch: % upl user-group-modes.patch -k04:07
freemhttps://p.mort.coffee/U1u04:07
freemAllow secure files (~/.ssh/config, ~/.ssh/authorized_keys, etc.) to be04:08
freemgroup-writable, provided that the group in question contains only the file's04:08
freemowner.  Rejected upstream for IMO incorrect reasons04:08
freemthe heck about accepting group writes in there "only if that group only have 1 user"?!04:08
freemanyway, that feature was even rejected by openssh's upstream. I should follow the links to make my opinion...04:10
gnarfaceyou could always just use the upstream openssh version instead, i doubt it would be hard to build and package...04:13
gnarface... not all debian patches are bad though04:13
freemofc not all of them are bafd04:13
freemI trust debian a lot, despite what I said above. But debian maintainers are also humans who do mistakes04:13
freemi.e. adopting systemd and all it's bullshit changes04:14
freemand here, I clearly disagree with the maintainer04:14
freemhttps://bugzilla.mindrot.org/show_bug.cgi?id=1060#c304:14
freemSuggestion 5 is about trawling through users' home directories on package04:14
freeminstallation, which is entirely unacceptable and a cure worse than the disease.04:14
freemSorry.04:14
freemwell, sorry, but *I* would have prefered to be able to put the damn files outside of /tmp, as they are part of the functionning of my system, and I use /tmp as a junkyard for temporary files, not files necessary for software to function04:15
freemso I would have prefered a warning rather than a "reduce constraint" which actually removes features04:16
freemI still have to read the whole stuff, I might change my mind. I'll probably also go on openssh's IRC to know if using vanilla I'd be able to do what I have in mind04:16
freemI'm surprised there's that many patches in openssh-client though. 36 patches is not nothing04:22
AlexLikeRocko/05:54
AlexLikeRockgnarface,05:54
darwini think what I had to do was create /run/user/1000 and then run start-pulseaudio-x11 as root05:56
AlexLikeRocki remember pulse audio : no need run as root05:58
darwini don't remember why I changed 'allowed_users=console' to 'allowed_users=anybody' but now I can't actually login as root then wheel then startx--I have to login as wheel first, so that line doesn't seem to do what it says.  Maybe before that I could no longer startx at all05:59
AlexLikeRockcool06:01
darwinno06:01
freemdarwin: wdym you mean you can't login as root then startx? What's the error message?06:04
darwinit needs a console user06:05
darwinthat's not what I said06:05
freemsorry then, failing to understand what you said I guess06:06
darwini said I login as root then wheel06:06
darwinso the wheel user isn't a console user--root is there06:06
freemah... so, login as root, changing user with `su -l` and then running startx?06:07
darwin'su -'06:07
darwin'su - user'06:07
rrqXorg requires teh running user to own the /dev/ttyN devnode for the virtual terminal06:07
freem'-', '-l' and '--login' are the same. I only keep the -l because it's easier for me to remember, and less confusing06:08
freembut right, - is shorter06:08
darwinthe line I changed should've removed that requirement06:08
rrqI don't know what Xwrap does06:09
freemjust checking, but I suppose needs_root_rights is set to yes?06:11
darwinno; startx didn't work with that06:12
freemreally? weird, I *think* I have the exact inverted behavior... but that install is relatively old, maybe something changed and it's no longer required...06:12
rrqXorg doesn't need to be run by root, but there are three ground requirements in the running user's setup06:15
rrqfirstlym the user needs to have rw access to /dev/ttyN for the VT concerned06:15
rrqsecondly the user needs rw access to /dev/dri/card006:16
rrqthirdly the user needs input device mediation06:16
freemlogind & friends, the input device mediation?06:17
rrqvia seatd or logind+dbus06:17
freemthx06:17
rrqmany weeks, evne moths and years ago, non-root user needed a different setup via xserver-xorg-legacy ... primaryily that Xorg had SUID=006:19
freemwell, I still don't run an input device mediator tool, so I still run Xorg as root06:20
freemwhat are they for, exactly?06:20
freemand don't *they* run as root anyway?06:20
rrqwell, it actually runs a "personal seatd" for that anyhow06:20
rrqyes seatd runs with permission to /dev/input/*06:20
onefangHmm, got seatd AND elogind-daemon running.  Wonder if I can get that down to just seatd?06:21
rrqmayby.. elogind isn't a "do one thing well" kind of thing06:21
rrqme spelling is shocking :)06:22
freemI don't think there are still many "do one thing well" tools in what they call modern linux though06:23
* onefang wanders into the kitchen to try that on the test box.06:24
freemI will notably refuse to keep dbus even installed, because that moronic tool will start itself automatically without any way for me to prevent it or not06:24
n4diri just gave up. sad, but true06:25
freemI guess wayland have the "do one thing" part... sadly it does not have the "well" one :D06:25
n4dirlol. for the lulz i booted Fedora Jam, audio Fedora, and for the life of me couldn't change the keyboard to german in Wayland06:26
freemon this https://linuxfr.org/news/gimp-3-0-rc1-est-sorti (sorry, french link) there's a gimp dev who baically says that all professionals they met still use X11 because apparently wayland's get colours wrong06:27
freemwhich is kind of a critical issue, for a tool meant to show stuff on screens...06:28
freemlinking to this: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/1406:28
freemI am not an artist, so I can't judge. I also know that bunch of people who like writting their own tools tried with wayland, and went back to writting their X11 WM instead06:29
freemless troubles06:29
rrqother Q: anyone knows whether/how the kernel uses the "chosen/bootargs" attribute on FDT boot?06:30
freemFDT? (which implies: not me, sorry)06:30
rrq"Flattened Device Tree" ... the alternative to ATAGs, a I believe06:31
freemah, like, U-boot?06:31
rrqu-boot deals with them too, yes, but afaiui the kernel's 3rd argument is either an ATAG table or an FDT blob06:32
rrq(pointer)06:33
onefangOK removing elogind and friends looks like it requires some rabbit hole exploring.  No time for that.06:33
freemdamn I worked with that stuff a few years ago... but do not remember well that part (despite I had to go through a lot of work to get the mess working, because almost no doc back then)06:33
freemIIRC I used to place a file at the 1st partition with some kind of lilo-style config in it06:34
freemmaybe I can boot one of the BBBs I salvaged from destruction and see what I did back then06:35
freemdunno if I have an appropriate power source though06:35
* freem probably can guess back the static IP so lack of screen/keyboard should not be a prob06:36
rrqmy headline issue is to boot a stock armhf kernel on arm64 hardware06:36
rrqthe u-boot/kernel handover happens, but the kernel just hangs there quietly06:37
onefang#devuan-arm might help.06:38
rrqmore people here :)06:39
freemah, found some old doc I wrote back then06:42
freemstuff I wrote so that others would stop bothering me and actually do their job06:43
freemI'm a bit too tired to read and understand what I wrote years ago correctly, but there might be useful hints in this: https://p.mort.coffee/kJx06:46
freem5 years already...06:47
freemalso there are probably many shortcomings and errors, that was the 1st time I'd set a PXE setup to get automatic deployment06:48
freemonly had heard about the possiblity before06:48
freemouch06:49
freempxe% upl ./host_srv/nfs/installer/bbb/uEnv.txt -k06:50
freemhttps://p.mort.coffee/x2o06:50
freemthat is the uEnv.txt file I mentioned in this, rrq, it might be of use. I remember I put everything in a damn one-line because U-boot would refuse to work correctly otherwise06:50
freem/nfs/installer/bbb% upl boot.correctbug -k06:51
freemhttps://p.mort.coffee/dlF06:51
freemthat one is readable, but no guarantee that the content strictly matches. It should though.06:51
rrqthanks; I have the u-boot stages in hand, but the kernel doesn't want to play nice06:52
freemyou sure it receive the correct parameters?06:52
freemI'm digging in that old repo, but that's really old to me, and it's about armhf systems, too06:52
freemthere might be differences06:52
freem(and I should save this stuff somewhere else, too... those scripts were not bad, can always be reused)06:53
rrqparameters should be right, but the armhf kernel is different..06:53
* rrq afk06:55
freemit's fun to read one's old fully automated install scripts. All the param stuff is even declarative style06:55
freemyay, I even wrote maintenance docs so that a future me, if I would have stated around, would not have too much troubles06:59
freemsomeone was not too stupid back then06:59
freemthere's nothing more of interest for you in there though, I'm afraid, rrq07:01
friedhelm\join #devuan-ci19:44
paculinoI just restarted mousepad for the first time since using emacs gtk-key-theme-name, but it doesn't work like in icecat/firefox. Also, an extra titlebar appeared (icecat now lacks the title in the titlebar) and it and the menubar are now a different colour.21:11
nemoHas anyone here gotten tinydns running on devuan?21:16
nemothe init script doesn't seem to actually start anything..21:16
paculinoWhat init are you using?21:25
paculinoBased on an old forum post, it supports runit21:25
nemohm. apparently "sysvinit"21:29
nemoI assume it's the devuan default21:29
nemo(I installed this VM a long time ago)21:29
nemopaculino: it installed an /etc/init.d/tinydns that looked very different from the gentoo setup21:30
nemono svscan21:30
nemo#!/usr/bin/env /lib/init/init-d-script21:30
paculinohendrikboom3 on the forums seems to have had it working in January at least21:31
nemothe start/stop seems odd21:31
nemodaemon_ () { /usr/bin/daemon -D "/etc/sv/${NAME}" --noconfig --name "${NAME}" "$@"; }21:31
nemodo_start_cmd_override () { daemon_ -- /usr/bin/chpst -e conf /bin/sh ./run; }21:31
nemopaculino: have a link? would rather not have to rework the init for everything on here21:31
nemojust trying to quickly switch my DNS over to something I have running recently while I unbreak this router by getting openwrt on it21:31
nemoat present !@#$ thing seems to be hard blocking 22 and 5321:32
paculinoThere is not a post on fixing it as far as I can tell, but hendrikboom3 mentioned using tinydns to try to troubleshoot another problem, so you'd have to message21:32
paculinohttps://dev1galaxy.org/profile.php?id=694421:32
paculinoI'm not familiar with tinydns unfortunately; I barely got wifi working21:33
nemomm...21:37
nemomight be easier to just roll my own, based on what is working (gentoo)21:38
nemopaculino: tinydns is pretty nice. less to keep track of than bind21:38
nemomight also just be faster to unbreak the router... a project for tonight21:38
paculinoA couple friends fixed their server last night just by rebooting everything. The router and modem were at fault, not the new configs as feared.21:41
nemowell this router has been bounced several times during the setup process21:41
nemoand ports 22 and 53 are definitely whitelisted. I think they are just being idiots21:42
nemoI'm going to try ASUS Merlin since it's a more minimalist mod and I'd had it working w/ a config like this in past. And if that fails, openwrt which also supposedly supports this model21:42
nemopaculino: just to get something working I installed svscan. it seems to be running stuff now, I'll figure out the "right" devuan/debian approach later21:56
AlexLikeRocklest HACK ! :->22:06
rwppaculino, I don't think the gtk-key-theme-name change should change anything you can see as that is controlled by other themes.  To test this though you could remove that file and restart the apps to verify.  I could be wrong.22:11
paculinoMy gtk settings are hacky in order to get two rows of windows on the bar, so I fear it is an interaction there.22:12
paculinoI've always had failure (for gtk apps, not fltk) to load both colorreload-gtk-module (maybe the cause of the different colour) and window-decorations-gtk-module (probably related to the titlebar issues)22:13
rwpI mainly do everything in terminals.  For me the only GUI app is Firefox.  I use that config to have Firefox use Emacs keybindings.  And as far as I can see there are no changes to be seen visually.  But I do no other customization.  Sorry I don't know more.22:28
paculinoOkay, thank you22:30
gnarfacesame here, i use that one line to get emacs style bindings in various gtk programs (where the defaults are otherwise vi or windows style ones) and it works everywhere i've tested except that various programs skip some of the bindings, and not the same ones, so there's something program-specific overriding just key things in different cases...22:33
gnarface...but i've never once seen it cause an actual visual change in anything22:33
gnarface(and the ones that have windows style bindings too usually keep them)22:33
paculinoTonight I'll work on it more; thank you for showing the line to add. My problem is not a big deal at all.22:35
paculinoIf curious, here is what it looks like: https://xabber.de/upload/40a61b2ffd4899329d64361467c8a6ff8ebc174a/BG0doqF0FKW5FsHcbNPJq1kfFOAtzrwYrfna8eH5/076aad5b-a946-40d4-848c-fc0f197de1ee.png22:36
AlexLikeRocklooks so FLAT22:36
AlexLikeRocklike Window$ 822:37
AlexLikeRockXDDDD22:37
AlexLikeRockUGLY !!!22:37
paculinoWindows 8 was my favorite Windows in terms of appearance (although, to be fair, I had something to allow Windows 7 style widgets)22:38

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