[SOLVED] Artix/runit: muted sound, shutdown/reboot, cups 15 April 2025, 00:58:06 1. the sound volume in KDE is not saved on reboot and I need to unmute every time I boot into KDE, otherwise the sound works, I am using pulse. How to fix it?2. I need to run shutdown as sudo shutdown, I'd much prefer just to type shutdown without sudo (do I need to set SUID?)3. can cups run like an inetd service on demand? I'd like to rid myself of this daemon process. Can the same be done with openssh server?4. I already uninstalled and disabled metalog, can I disable/uninstall other useless services?5. How to run ntpdate whenever a network connection comes up? If you managed to cajole KDE to do the same, please share?Solved the sound issue: either trizen -S alsa-utils-runit or add /usr/bin/alsactl restore to rc.local Last Edit: 15 April 2025, 11:13:40 by ugluk
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #1 – 16 April 2025, 02:34:51 Quote from: ugluk – on 15 April 2025, 00:58:062. I need to run shutdown as sudo shutdown, I'd much prefer just to type shutdown without sudo (do I need to set SUID?)Use loginctl poweroff. You can alias it if you don't want to type loginctl every time.BTW, SUID wouldn't work anyway because runit shutdown is a shell script.Quote3. can cups run like an inetd service on demand? I'd like to rid myself of this daemon process. Can the same be done with openssh server?See man 8 cupsd and man 8 sshd. TLDR; no and yes respectively.Quote5. How to run ntpdate whenever a network connection comes up?Hook it up with dhcpcd, connman, NetworkManager or whatever you're using to set up network connections. Or make a runit service that tries and tries again until it succeeds, then exec's pause /shrug
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #2 – 17 April 2025, 12:48:47 I appreciate the workaround for the shutdown command; using loginctl poweroff is a great suggestion. Also good to know about the CUPS and OpenSSH service management; I’ll check the man pages for more details.As for running ntpdate on network connection up, I like the idea of integrating it with the network manager. I’ll look into creating a runit service that handles that as well.
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #3 – 18 April 2025, 19:40:30 Surprisingly, setting SUID did work both on shutdown and reboot.Can someone suggest what inetd implementation I should use on artix? Is there anything in the docs about how to do this? Under plain arch, it is done with systemd scripts, but that does not apply here.
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #4 – 19 April 2025, 01:19:56 Quote from: ugluk – on 18 April 2025, 19:40:30Surprisingly, setting SUID did work both on shutdown and reboot.Can someone suggest what inetd implementation I should use on artix? Is there anything in the docs about how to do this? Under plain arch, it is done with systemd scripts, but that does not apply here.I don't think you can easily? But I'm not an expert in all inits and not even in the one I use.inetd was abandoned because it's not the greatest idea (imho but lots of people seem to agree).Surely it's better to run the server services you chose when you chose rather than when something wants to connect to you ?What is the benefit of inetd to you ?
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #5 – 19 April 2025, 04:18:43 Quote from: ugluk – on 18 April 2025, 19:40:30Can someone suggest what inetd implementation I should use on artix? Is there anything in the docs about how to do this?https://en.wikipedia.org/wiki/Xinetdhttps://github.com/openSUSE/xinetdCode: [Select]pacman -S xinetd xinetd-runitCode: [Select]man xinetdman xinetd.confman xconv.pl
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #6 – 19 April 2025, 06:21:09 Quote from: ugluk – on 15 April 2025, 00:58:061. the sound volume in KDE is not saved on reboot and I need to unmute every time I boot into KDE, otherwise the sound works, I am using pulse. How to fix it?Solved the sound issue: either trizen -S alsa-utils-runit or add /usr/bin/alsactl restore to rc.localI am having the same issue with my sound in openbox window manager and pulse audio. Would you be so kind as to "walk" me through adding /usr/bin/alsactl restore to rc.local? I have found both files on my install but do not know how to accomplish the task.Thanks!
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #7 – 19 April 2025, 06:25:04 Screenshot of the above files mentioned.
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #8 – 19 April 2025, 14:39:40 yeah, loool, just:vi /etc/rc.local#!/bin/sh# /etc/rc.local -- rc.local for Artix Linux## Enter your custom commands here./usr/bin/alsactl restoreOf course, you need to run "alsactl store" beforehand (when the audio is working), or you have nothing to restore. So, you need to unmute the audio somehow beforehand, for example, using alsamixer. The alternative, "pacman -S alsa-utils-runit" is easier. 1 Likes
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #9 – 19 April 2025, 14:45:00 Don't forget to take a look at "ucspi-tcp" when looking for an inetd alternative, it seems much more in the spirit of artix to me than xinetd.
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #10 – 19 April 2025, 15:32:28 Quote from: linux4ever – on 19 April 2025, 06:21:09Quote from: ugluk – on 15 April 2025, 00:58:061. the sound volume in KDE is not saved on reboot and I need to unmute every time I boot into KDE, otherwise the sound works, I am using pulse. How to fix it?Solved the sound issue: either trizen -S alsa-utils-runit or add /usr/bin/alsactl restore to rc.localI am having the same issue with my sound in openbox window manager and pulse audio. Would you be so kind as to "walk" me through adding /usr/bin/alsactl restore to rc.local? I have found both files on my install but do not know how to accomplish the task.Thanks!A better way is to install alsa-utils-$your_init and enable the service that comes with it (usually named "alsa").Less manual intervetion, plus alsactl store also gets run on install and shutdown so no need to run it again whenever you tweak the audio settings.Quote from: ugluk – on 19 April 2025, 14:45:00Don't forget to take a look at "ucspi-tcp" when looking for an inetd alternative, it seems much more in the spirit of artix to me than xinetd.Artix packages s6-networking, which is basically s6's take on that concept. Same command line parameters, just replace tcpserver on the run scripts with s6-tcpserver and you're set.Not only you won't need AUR, it's maintained (including proper IPv6 support) and tweaks a few defaults to make it harder for DoS attacks to work.Using the rest of s6 is not needed, it'll happily run from runit, openrc or whatever. Last Edit: 19 April 2025, 15:46:13 by capezotte
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #11 – 19 April 2025, 19:26:33 Quote from: lq – on 19 April 2025, 04:18:43Code: [Select]pacman -S xinetd xinetd-runitI stand corrected. I still think it's a dubious idea though. Last Edit: 19 April 2025, 19:55:45 by gripped
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #12 – 19 April 2025, 23:03:35 "A better way is to install alsa-utils-$your_init and enable the service that comes with it (usually named "alsa").Less manual intervetion, plus alsactl store also gets run on install and shutdown so no need to run it again whenever you tweak the audio settings."That didnt work and actually borked my audio system so bad to the point I could not fix it and had to re-install my Artix install.
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #13 – 20 April 2025, 00:40:50 All I can say is, it's an official package, and it worked for me (s6), and for the original poster of this thread (runit).What is your init system, how exactly was your audio borked, and what did you do to try to fix it? If this isn't a coincidence, it's a bug that must be fixed.
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #14 – 20 April 2025, 20:49:49 openrc, sound server not connecting, removed files I was told to install and rebooted. Was not able to catch screenshots of the errors/isses when they occured. Still no joy so I reinstalled and started back fresh. I will deal with the muted issue each time I log in/boot into Artix. No biggie. Thanks anyway.