Results 1 to 10 of 10

Thread: How do I make my headless server act as a PulseAudio server on startup?

  1. #1
    Join Date
    Feb 2007
    Location
    New York
    Beans
    894
    Distro
    Ubuntu 9.10 Karmic Koala

    How do I make my headless server act as a PulseAudio server on startup?

    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

  2. #2
    Join Date
    Sep 2007
    Location
    England
    Beans
    1,103

    Re: How do I make my headless server act as a PulseAudio server on startup?

    what exactly are you trying to achieve?

  3. #3
    Join Date
    Apr 2008
    Beans
    4,377
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How do I make my headless server act as a PulseAudio server on startup?

    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.

  4. #4
    Join Date
    Feb 2007
    Location
    New York
    Beans
    894
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How do I make my headless server act as a PulseAudio server on startup?

    Quote Originally Posted by amauk View Post
    what exactly are you trying to achieve?
    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

  5. #5
    Join Date
    Sep 2007
    Beans
    12

    Re: How do I make my headless server act as a PulseAudio server on startup?

    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

  6. #6
    Join Date
    Feb 2007
    Location
    New York
    Beans
    894
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How do I make my headless server act as a PulseAudio server on startup?

    Quote Originally Posted by l3iggs View Post
    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
    Can you show where you got this info from? I'm always wary of copying and pasting something from a forum post.
    "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

  7. #7
    Join Date
    Apr 2008
    Beans
    4,377
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How do I make my headless server act as a PulseAudio server on startup?

    Quote Originally Posted by l3iggs View Post

    hopefully the time i've spent on this benefits someone other than just me
    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.

  8. #8
    Join Date
    Feb 2007
    Location
    New York
    Beans
    894
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How do I make my headless server act as a PulseAudio server on startup?

    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

  9. #9
    Join Date
    Feb 2007
    Location
    New York
    Beans
    894
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How do I make my headless server act as a PulseAudio server on startup?

    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

  10. #10
    Join Date
    Aug 2010
    Location
    Poland
    Beans
    44
    Distro
    Ubuntu

    Re: How do I make my headless server act as a PulseAudio server on startup?

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •