Updated instructions.txt
This commit is contained in:
parent
14923e41d5
commit
f5d024156a
1 changed files with 19 additions and 1 deletions
|
@ -22,8 +22,8 @@ $ 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
|
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.
|
that will send a kill signal to the process.
|
||||||
|
|
||||||
|
If you want pulseaudio running as a system service being restricted to your user permissions:
|
||||||
You need to add your user name (the output of the whoami command) to the USER= variable in sv/pulseaudio-daemon/conf.
|
You need to add your user name (the output of the whoami command) to the USER= variable in sv/pulseaudio-daemon/conf.
|
||||||
Read this commit for more info: "git show 4162a4c17c919c37e161b75136dc78f7fb1571a7"
|
|
||||||
$ nano sv/pulseaudio-daemon/conf
|
$ nano sv/pulseaudio-daemon/conf
|
||||||
|
|
||||||
Change this line from this
|
Change this line from this
|
||||||
|
@ -34,6 +34,24 @@ USER="Your user name here"
|
||||||
|
|
||||||
then save.
|
then save.
|
||||||
|
|
||||||
|
If you want pulseaudio as a user service instead of a system service running as your user, then do this instead:
|
||||||
|
Follow these instructions http://smarden.org/runit/faq.html#userservices
|
||||||
|
If you aren't part of the audio group, then change this(if your name is floyd)
|
||||||
|
|
||||||
|
exec chpst -u floyd runsvdir /home/floyd/service
|
||||||
|
|
||||||
|
to
|
||||||
|
|
||||||
|
exec chpst -u floyd:audio runsvdir /home/floyd/service
|
||||||
|
|
||||||
|
and remove . ./conf from the run script, since the necessary variables are inherited.
|
||||||
|
|
||||||
|
so that the pulseaudio-daemon can access your audio devices.
|
||||||
|
Move the pulseaudio-daemon to your user runsvdir:
|
||||||
|
$ mv sv/pulseaudio-daemon ~/service
|
||||||
|
and you can remove the conf file:
|
||||||
|
$ rm ~/service/pulseaudio-daemon/conf
|
||||||
|
|
||||||
Next, you need to configure the display-manager service. Mine points to lightdm but if you use a different display manager,
|
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 that instead(and
|
you need to make the equivalent runit service for it and make the display-manager service point to that instead(and
|
||||||
optionally enable the service that your display-manager service points to as well, so you can do "sv status display-manager"
|
optionally enable the service that your display-manager service points to as well, so you can do "sv status display-manager"
|
||||||
|
|
Loading…
Reference in a new issue