Updated plymouth services to depend on display-manager instead of lightdm and updated other stuff

This commit is contained in:
AwesomeAdam54321 2021-06-24 20:11:12 +08:00
parent b55c7a26ca
commit c353452a7e
6 changed files with 19 additions and 12 deletions

View file

@ -1,21 +1,26 @@
### INSTRUCTIONS ###
First, you need to install runit and snooze(it is used as an alternative to cron and systemd timers). On Debian descendants you do:
First, you need to install runit and snooze(it is used as an alternative to cron and systemd timers). On Debian descendants
you do:
$ sudo apt install runit snooze
If you don't have git, install it:
$ sudo apt install git
Then, you need to download this repo as it contains everything that I used to get runit up and running(if you haven't already of course)
Then, you need to download this repo as it contains everything that I used to get runit up and running(if you haven't already
of course)
$ git clone https://codeberg.org/AwesomeAdam54321/LL_Runit_Scripts
There should be a folder in your current directory called "LL_Runit_Scripts". Do "cd LL_Runit_Scripts" to cd into it.
Runit services should be long running services, but oneshot services exist, so the pause executable is used to implement oneshot functionality in runit. You need to compile pause.c because
it isn't worth making a package for it as it's source code is so short. The produced executable should be discoverable from your $PATH, preferably in /usr/local/bin as it's compiled. You can use any C compiler
to compile it but I used GCC(You probably need root privileges to alter system directories):
Runit services should be long running services, but oneshot services exist, so the pause executable is used to implement
oneshot functionality in runit. You need to compile pause.c because it isn't worth making a package for it as it's source
code is so short. The produced executable should be discoverable from your $PATH, preferably in /usr/local/bin as it's
compiled. You can use any C compiler to compile it but I used GCC(You probably need root privileges to alter system
directories):
$ sudo gcc pause.c -o /usr/local/bin/pause
To test that it succeeded, type pause and hit Enter. It should "pause" the terminal you were running. To stop, do Ctrl-C as that will send a kill signal to the process.
To test that it succeeded, type pause and hit Enter. It should "pause" the terminal you were running. To stop, do Ctrl-C as
that will send a kill signal to the process.
You need to add your user name (the output of the whoami command) to the USER= variable in sv/pulseaudio-daemon/conf.
$ nano sv/pulseaudio-daemon/conf
@ -26,4 +31,7 @@ USER=
To filling it with your user name
USER="Your user name here"
then save.
then save.
Next, you need to configure the display-manager service. Mine points to lightdm but if you use a different display manager,
you need to make the equivalent runit service for it and make the display-manager service point to it instead.

View file

@ -1 +0,0 @@
/etc/sv/lightdm

View file

@ -1,5 +1,5 @@
#!/bin/sh
sv start lightdm plymouth-start getty@tty1
sv start display-manager plymouth-start getty@tty1
set -e
( ! grep plymouth.enable=0 /proc/cmdline )
( ! grep nosplash /proc/cmdline )

View file

@ -1,5 +1,5 @@
#!/bin/sh
sv start lightdm plymouth-start getty@tty1
sv start display-manager plymouth-start getty@tty1
set -e
( ! grep plymouth.enable=0 /proc/cmdline )
( ! grep nosplash /proc/cmdline )

View file

@ -1,5 +1,5 @@
#!/bin/sh
sv start lightdm plymouth-start getty@tty1
sv start display-manager plymouth-start getty@tty1
set -e
( ! grep plymouth.enable=0 /proc/cmdline )
( ! grep nosplash /proc/cmdline )

View file

@ -1,5 +1,5 @@
#!/bin/sh
sv start lightdm plymouth-start getty@tty1
sv start display-manager plymouth-start getty@tty1
set -e
( ! grep plymouth.enable=0 /proc/cmdline )
( ! grep nosplash /proc/cmdline )