Skip to main content
Topic: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups (Read 138 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Artix/runit: muted sound, shutdown/reboot, cups

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

Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups

Reply #1
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?)
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.

Quote
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?

See man 8 cupsd and man 8 sshd. TLDR; no and yes respectively.

Quote
5. 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
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.

 
Artix forum uses a single cookie to remember youOK