Starting PulseAudio

Hi. Travis convert here.

I’ve successfully got the travis config converted to GA, but the setup isn’t working yet. Specifically the thing that I’m having trouble with is getting PulseAudio started, as you can see from the many failures:

On travis, after installing the PA package, I ran this command:

dbus-launch pulseaudio --start

Which is just something I picked up somewhere a few years ago from googling when I originally set up travis. This did not work on GA, telling me that dbus-launch did not exist, so I simply tried switching to systemctl.

I’ve tried variations of:

systemctl --user start pulseaudio.service

Which gives errors telling me “Failed to connect to bus: No such file or directory”

I tried this (as a single multi-line command), following some googling, to no avail:

export XDG_RUNTIME_DIR=/run/user/$(id -u)
systemctl --user start pulseaudio.service

I’ve tried this:

service pulseaudio start

Which give me this error: “Failed to start pulseaudio.service: Interactive authentication required.”

I don’t know much about docker and GA having almost completely avoided needing to familiarize myself with them up until now, thoughI’ve just learned a bit from a little research. I’m working hard to try to figure out what on earth I need to do to get this working. Can someone please help.

Nevermind, I’ve managed to solve that problem by starting pulseaudio as a daemon with:

pulseaudio -D --start

Although it would still be nice to understand how to start services otherwise…?