libera/#devuan/ Friday, 2023-07-28

gnarfacetry setting MAILTO to your user00:00
gnarfaceand try reading "man 5 crontab"00:00
ballsxd2done, will have to wait00:00
ballsxd2im also using "sudo service cron start" to start the cron service00:00
gnarfacecron should be started by default...00:01
ballsxd2nope didnt work, btw im not familiar with MAILTO00:01
ballsxd2also /var/log/syslog isnt being updated with cronjob executions anymore00:02
gnarfaceif any of these commands generate any output, it's assumed by cron that you want to see it, but it will mail it to the user who owns the crontab unless you specify a different user with the MAILTO environment variable from within the crontab00:02
gnarfaceis the user who owns this crontab the same user that owns /home/user?00:03
ballsxd2yes the system only has 1 user00:03
ballsxd2and root isnt involved at all00:03
gnarfacenote that these commands will be executed with the permissions of the user that owns the crontab but without that user's default shell environment00:03
gnarfaceso no PATH, no XDG_USER_WHATEVER, nothing00:04
ballsxd2so theyll be executed from "/"?00:04
gnarfacehmm, not sure what the default pwd will be actually. i forget00:04
gnarfaceyou could easily check that though00:05
gnarfacedid you check the user's mail spool with "mail" ?00:05
ballsxd2wow i have never read my mail00:06
ballsxd2please give me a minute00:06
gnarfaceah, so probably there's one post-install email and hundreds of complaints from cron00:06
ballsxd2i'd assume yeah00:07
ballsxd2apparently the xfce thing gave some accesbillity error which for now isnt important as it was for testing purposes00:08
ballsxd2ill have it run an actual script to see whats up00:09
gnarfaceyou might want to start with something really simple like a single echo command, just to make sure it's running at the right times00:09
gnarfacepast that it's just going to be environment or permissions issues00:10
gnarfacenote that "man crontab" and "man 5 crontab" are not the same man page00:11
gnarface(the second one is the one you really want to pay attention to)00:11
ballsxd2the echo popped up in my mail so thats one thing00:13
gnarfacemake sure you've actually set those scripts as executable at the filesystem level too. it seems obvious but many people forget that00:13
ballsxd2any clue as to how im supposed to clear my 900+ mails?00:13
gnarfaceheh, ya00:13
gnarfacedelete can take a parameter00:13
ballsxd2ive run the scripts manually and they worked so thats all good00:14
gnarfacea index range in the same format as crontab00:14
gnarfaceso like: d 100-45000:14
ballsxd2alright now thats gone00:15
ballsxd2ill move on to the scripts to see whats up00:15
gnarfaceremember that when cron runs them, the scripts won't inherit the user's shell environment the same way they do when you run them by hand00:19
ballsxd2the mails contents looked like it ran as normal00:20
gnarfaceall that means is they didn't throw an error00:20
gnarfaceor generate any output00:20
ballsxd2that is true00:20
ballsxd2how can i verify that its actually running?00:21
gnarfacemake the script generate some output00:21
ballsxd2the stat command tells me it hasnt been ran in a while00:21
ballsxd2ill try that00:21
gnarfaceyou can have the script write to a file somewhere or you can just let cron catch it00:22
ballsxd2the echo did its thing in the mail00:23
gnarfacean echo you put inside the script? that suggests it's running then00:23
ballsxd2yes, ill modify it again to make it create a file00:24
ballsxd2if that works im confident enough00:24
gnarfacewell, some change to environment may be causing things to silently fail00:24
gnarfacechange of PATH is common culprit00:24
ballsxd2i guess ill have to keep an eye on my mail more oftenb00:25
gnarfacethat is what it is there for00:25
ballsxd2yeah the file is indeed created00:25
ballsxd2i think were good00:25
ballsxd2thanks for your help man00:25
gnarfaceno problem00:25
gaje4ds"sysv-rc-conf" works well. but how to auto start NFT?  why it isn't the default to read /etc/nft.conf on bootup?  I write some sort of own script?02:20
gaje4dsshould work by default imo...02:20
gnarfacegaje4ds: is there no script for it in /etc/init.d/ ...? if not you might have to make one yourself, yea, but you can probably just find an old version from before they removed it03:14
fsmithred_does NFT mean nftables?03:17
fsmithred_if so...03:17
gnarfacei just assumed so but i am not using it here03:18
fsmithred_orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/nftables03:18
gaje4dsgnarface what do you use for firewall?03:56
gaje4dsuh, is using a firewall so niche that Devuan doesn't support it more out of the box?03:56
gnarfacegaje4ds: i doubt it's that. you're just seeing some more recent vandalism. use fsmithred_'s orphaned init scripts package.03:57
gnarfacei use iptables when i have to, but i just start it myself with a custom script. whenever i have the luxury though i use a openbsd firewall with packetfilter instead, which is far superior to either. (i have heard it can be run in linux now but i haven't actually tried that)03:59
gnarfaceas i recall, there was at some point some other package that will store and restore your iptables rules automatically with an init script but i forget what it was called...03:59
gaje4dsgnarface vandalism?04:00
gnarfacegaje4ds: debian is deleting our init scripts randomly without cause04:00
gaje4dsuncool04:00
gnarface"nobody is using this anymore, are they?" *deletes it without waiting for response*04:00
gnarfacedoes anyone remember what that other iptables rules keeper package was called or know if it's still in the repos?04:01
masongnarface: There was (last week?) a misguided set of bugs opened against every package that supplied an init script but not a systemd unit.04:02
gaje4dsso how to I "install" or use that script from share/orphan?04:02
masonI described it as violence, and was met with "we're doing it anyway, and it'll be an RC bug if they don't convert".04:02
gnarfacegaje4ds: to be fair, even before devuan existed, my personal analysis of all the "supported" solutions for this was that they were pretty weak from a usability standpoint, so i had been just writing my own simple firewall scripts the whole time.04:02
masongaje4ds: You should have the orphan-sysvinit-scripts package already. If not, install it.04:03
masonAnd as gnarface notes, this is something I'd not have noticed, as I invoke firewall scripting via /etc/network/interfaces anyway.04:03
gnarfacegaje4ds: you'd just copy that file fsmithred_ pointed out to your /etc/init.d/ and setup the symlinks with sysv-rc-conf or some other tool, or just by hand. make sure you check the comments and set permissions, etc. it's not a super difficult thing to install a init script once you get the hang of it.04:04
gnarfacegaje4ds: there used to be copious amounts of documentation about it on the debian wiki but you'd probably have to check archive.org for some version of it from back in the debian wheezy days, because they've been going after the documentation too.  but trust me, it's simple stuff, way simpler than systemd.04:05
gaje4dsah indeed, sysv-rc-conf seens nftables now04:06
gaje4dsdefault start: S,   default stop 0, 1, 604:09
gaje4dshow that translated to checkboxes exactly04:09
gnarfacei forget what options you have there04:10
gaje4dsin config too you have that grid04:10
gaje4dsfor each service, on/off for: 1 2 3 4 5 0 6 S04:10
gnarfacejust set it to stop on 0 1 and 6 and start on all the others04:11
gnarfaceyou're probably only using #2 anyway04:11
gnarfacecheckbox means "on" right?04:11
gnarfacei usually just do them by hand or use the "update-rc.d" shell tool04:11
gaje4dsbut thats the thing, does lack of checkbox mean stop?04:12
gnarfacei can only assume so, but it's easy to check what it did afterwards, just run: ls -l /etc/rc*.d/*nft*04:13
gaje4dswhy on "2" it should be on, 2 is not mentioned in comment on the script.  should user just guess it?04:13
gnarface2 is just the default runlevel04:13
gnarfacebut i thought "S" means "default if unspecified elsewhere"04:14
gnarfacelemme check that04:14
gaje4dsshouldnt then that script comment mention also 2, as default start?  or is it assumed as result of being started in 1?04:14
gnarfacei haven't seen the comment you're referring to04:14
gnarfaceoh, you might be right though. it might just be assuming it's still on in #2 because it has to go through #1 to get to #204:15
gnarfacegaje4ds: ah, here you go. this looks fairly legit, despite the age: https://www.lisenet.com/2013/exploring-linux-runlevels-and-their-purposes-sysvinit/04:16
gnarfacethe important thing to understand here though is these runlevels are here for you04:18
gnarfaceso do what you want with them04:18
gnarfaceset it how you think it should be, and make sure it's doing what you expect04:19
gaje4dswhy not turn it on on ever runlevel (maybe except single user 1) - since lack of firewall = insecure (at least for usecase where fw is needed)04:19
gnarfacehonestly i don't know, and i probably actually would04:19
gaje4dsok I will do that04:19
gnarfacebut i would test it carefully to make sure the init script doesn't trip on itself somehow if run consecutively while changing from runlevel 2 to 3 for example04:20
gaje4dshow do we make this the default for users?  imo users should expect that is how installed nftables work04:20
gnarfaceyea, now that's the harder problem, because we can't force debian to fix their shit04:20
gaje4dswhy not Devuan patch nftables with install script that makes this links?04:21
gnarfacethey do fork some packages, but as that increases cost it has been only done a last resort04:21
gnarfacesomething will probably have to be done about this init script fiasco, that's clear, but so far i don't think they've forked any packages just for the missing init script04:22
gaje4dswhat devuan wants to do then, what to use, if not patches? how about adding package  nftables-initscript and editing nftables to depend on it?04:23
gaje4dsif not then... maybe package that contains all known init scripts, hook it into dpkg and run when initscript-needing package gets installed04:24
gnarfacewell, they do have the package with all the init scripts...04:24
gnarfaceadding dpkg hooks and dependency changes is what makes the support cost really ramp up though04:25
gnarfaceit's probably best to continue this conversation in #devaun-offtopic04:25
gnarfaceif you take a look at the repo url and compare the contents as displayed with /merged with /devuan and /debian you can easily see the difference that represents which packages are actually forked04:26
gnarfaceand i believe they're usually for more serious breakages that require rebuilds to exclude explicit systemd requirements04:27
gnarfacethe missing init script thing... they've chosen to just weather that stoically for now04:27
gnarfacekeep in mind that part of the founding concept here is not to actually fork the entire distro package-by-package, as that would be economically infeasible04:29
gnarfaceand last i checked, of the +60,000 packages in debian they've managed to only have to fork and/or ban a couple hundred04:30
gnarfacethat's a big vindication of the process, make no mistake about it04:31
onefangInitscripts get turned on for runlevels 2, 3, 4, and 5 by default.  Some get others, they are specified in the script header.04:33
onefang# Default-Start:     2 3 4 504:34
onefang# Default-Stop:      0 1 604:34
onefangAnd by "by default" I meant "most of them".04:35
gaje4dson other topic,  apt-get build-dep  for many packages either works, or fails with conflict libelogind0 conflicts libsystemd004:36
gaje4dsso it is not possible to have a Devuan that can at same time build some of the packages that want elogin and also somethat work systemd0?04:36
gnarfacegaje4ds: did you try replacing libelogind0 with libsystemd0 first?04:37
gaje4dsno. isnt the point to avoid libsystemd0 in devuan?04:37
gnarfaceno, because libsystemd0 isn't systemd actually04:37
gnarfacebut libelogind0 should be a drop-in replacement for libsystemd004:38
gnarfaceTONS of debian packages depend on libsystemd0 but don't actually use it for anything if actual systemd isn't installed, so libsystemd0 has been simply left in place as-is04:38
gnarfacefixing that has been discussed, but it would require way too many package rebuilds04:39
gaje4dsthat replacement results it removal of like 200 packages such as kio  kfind slim xfce404:39
gnarfaceyou can probably just reinstall them after that04:39
gnarfaceand keep libelogind004:39
gnarfacei think, anyway04:41
gnarfacebut unless you're using a graphical login it probably doesn't matter04:41
gaje4ds800 to removed. lets see04:41
gnarfacewow that is a lot04:42
gaje4dsout of 7000 installed04:42
gnarfacewell, sorry in advance if i'm wrong and you download everything twice for nothing04:43
gnarfacebut i believe this is a well known issue with the way the dependencies for all the graphical login stack work04:43
gnarface(if it uninstalled your kernel too make sure you put it back before you reboot)04:44
gaje4dsheh04:48
gnarfacethat was actually a thing during debian->devuan upgrades a few releases back, but i believe they've fixed it04:49
rrqgaje4ds: perhaps you should rather build in a chroot04:50
gnarfacealso a good tip yes04:52
gaje4ds892 newly installed05:07
gaje4dswait, but it will remove libsystemd0{a}  how to pin it05:07
masongaje4ds: That shouldn't be a problem. It'll stuff in libelogind0 to replace it.05:09
gaje4dsI removed all elogind* from list of packages - still installing the list of things that I had, results in it trying to remove that libsystemd0 and reinstalling back elogind05:09
gaje4dsno other solution05:09
masonRight, there'd need to be some rebuilds that haven't happened for libelogind0 to go away. Think of it as a second, unwanted libc for now.05:10
gaje4dsmason but I do all of the above so that apt-get build-source will work, as it demands to have libelogind005:10
masongaje4ds: And some build-deps will require libsystemd0. I resolve this by building inside LXC containers.05:10
gaje4dsok so I guess you need two separate build envs, one for packages that want libsystemd0 and others that want elogind?05:11
masongaje4ds: Everything will build against libsystemd0, so just one build environment necessary.05:11
masonbuilding against libsystemd0 means it'll run against libelogind0.05:12
Digithi, just now excitedly watching https://www.youtube.com/watch?v=3FtFFI44Yh8 and wondering how other architctures supported in debian relate to devuan, and if that's relatively seamless and can haz RISC-V ceres?09:01
user3614Which IRC clients are on the daedalus desktop-live?18:22
fsmithred_user24037, I'm not sure, but I'll check.18:50
fsmithred_user24037, none.18:52
fsmithred_which should be same as if you use an installer iso and take the defaults (task-xfce-desktop)18:52
brocashelmrefracta comes with hexchat, at least22:03
user3614Thanks both of you! I was just interested to get help through this channel from the live desktop if needed.22:12
user3614Is the following error message during boot serious?22:17
user3614Setting up ALSA...warning: 'alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore' failed with error message 'Found hardware: "HDA-Intel" "Realtek ALC269VC" "HDA:10ec0269,19910269,00100203 HDA:80862809,80860101,00100000" "0x0000" "0x0000"22:17
user3614This occurred during rebbot after upgradind to daedalus.22:18
user3614The error is followed by a myriad of errors:22:20
user3614alsactl: set_control:1339: failed to obtain info for control #43 (No such file or directory)22:21
user3614Only the number 43 was incremented in each error.  It went up till 59.22:22
gnarfacewell if user3614 comes back, tell them it doesn't look serious but it does look like their volume settings didn't get restored properly and to make sure they have these packages: alsa-tools alsa-topology-conf alsa-ucm-conf alsa-utils23:22

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