If I login, it creates a PulseAudio server, but when I log out the server shuts down. How do I get it to act as a server without anyone logged in?
If I login, it creates a PulseAudio server, but when I log out the server shuts down. How do I get it to act as a server without anyone logged in?
"Please remember to do things the Ubuntu way. There is always more than one solution to a problem, choose the one you think will be the easiest for the user. ... Try to think as a green user and choose the simplest solution." — Code of Conduct
what exactly are you trying to achieve?
It is not reccomended to run pulseaudio as a system wide daemon due to security issues since it will be running with root permissions but if you really want to you just need to edit the /etc/pulse/daemon.conf file and change
;system-instance = no
to yes and uncomment it.
I'm trying to get my headless server to act as a PulseAudio server on startup.
So I can send audio to it without logging into it.
Same question here:
https://answers.launchpad.net/ubuntu...question/61859
"Please remember to do things the Ubuntu way. There is always more than one solution to a problem, choose the one you think will be the easiest for the user. ... Try to think as a green user and choose the simplest solution." — Code of Conduct
i've been smashing my head into this problem for the past few hours and i think i've got it figured out now. what a mess these stupid pulse config files are. try following these steps on a fresh pulseaudio install:
edit your /etc/default/pulseaudio file so that:
PULSEAUDIO_SYSTEM_START=1
DISALLOW_MODULE_LOADING=0
now put the following three lines in the bottom of your /etc/pulse/system.pa file:
load-module module-esound-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16
load-module module-zeroconf-publish
you can remove the auth... junk from the first two lines there if you want, they just prevent any IP other than a local one from connecting to your server (although it might be cool for a few minutes if someone else started playing music on your speakers)
make sure you've got the pulseaudio-module-zeroconf package installed
now you can: sudo etc/init.d/pulseaudio start
you should get an [OK] from this command, if so, you're done
your sound server should start on boot before anyone logs in
good luck
hopefully the time i've spent on this benefits someone other than just me
Last edited by l3iggs; March 10th, 2009 at 08:42 AM. Reason: clarity increase
"Please remember to do things the Ubuntu way. There is always more than one solution to a problem, choose the one you think will be the easiest for the user. ... Try to think as a green user and choose the simplest solution." — Code of Conduct
Don't worry about that, I just linked your post into the 10,000 page guide. Thanks for that very clear and concise explanation. Hopefully you can stick around and help people with questions about it.
http://ubuntuforums.org/showthread.php?t=843012
regards,
mark
Last edited by markbuntu; March 10th, 2009 at 09:00 PM.
PMs will be ignored.
According to the file /etc/pulse/default.pa these are supposed to be configured using the GUI:
### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish
"Please remember to do things the Ubuntu way. There is always more than one solution to a problem, choose the one you think will be the easiest for the user. ... Try to think as a green user and choose the simplest solution." — Code of Conduct
Much simpler solution: Set the computer to auto-login, and then lock the screen after logging in.
"Please remember to do things the Ubuntu way. There is always more than one solution to a problem, choose the one you think will be the easiest for the user. ... Try to think as a green user and choose the simplest solution." — Code of Conduct
Hey all
I managed to setup a headless network pulse audio system to which i connect my laptop and my desktop. It is mostly based on this thread, but also created with the help of others. I hope you'll like it. It works, so if you have any other questions please tell me so
http://pleasanthacking.com/2010/11/2...media-network/
enjoy
Last edited by kangarooks; May 12th, 2011 at 01:06 PM. Reason: smoother sentences :)
Bookmarks