You are not logged in.

#1 2023-10-03 05:55:11

broken pipe
Member
Registered: 2010-12-10
Posts: 243

[Solved] PipeWire on a headless server

Hi all,

is there a way to run the PipeWire server on a headless server? I would like to start the service when the server boots up (system wide). In the instructions the service is always started via a user.
When I try to start the service via a user, I get the following error:

Failed to connect to bus: No medium found

Best regards!

Last edited by broken pipe (2023-10-04 08:23:09)

Offline

#2 2023-10-03 10:56:54

cloverskull
Member
Registered: 2018-09-30
Posts: 212

Re: [Solved] PipeWire on a headless server

Hm, this is an interesting question. Does the headless server have an audio interface? What would be the intent here?

Offline

#3 2023-10-03 11:10:21

broken pipe
Member
Registered: 2010-12-10
Posts: 243

Re: [Solved] PipeWire on a headless server

cloverskull wrote:

Hm, this is an interesting question. Does the headless server have an audio interface? What would be the intent here?

yes it has an audio interface. I would run mpd and spotifyd over it.

Last edited by broken pipe (2023-10-03 11:10:43)

Offline

#4 2023-10-03 12:09:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,379

Re: [Solved] PipeWire on a headless server

Do you want to run any other audio source over that? If your main concern is mpd, just let mpd handle the device directly via ALSA. Many internals of pipewire/pulse for that matter assume a per session/logged in user usecase.

For the bus issue, how did you switch the user? You'll generally want to actively login as the user you intend to run the daemon on, so that you also have a dbus session over which information can be announced.

Last edited by V1del (2023-10-03 12:11:16)

Offline

#5 2023-10-04 08:22:51

broken pipe
Member
Registered: 2010-12-10
Posts: 243

Re: [Solved] PipeWire on a headless server

thank you for your answers! I have now solved it with the systemctl linger to start a user session without login.

i now run all audio applications over pipewire, also pipewire can do bluetooth and airplay. so i have a versatile sound server.

Offline

#6 Today 10:18:34

monkee
Member
Registered: 2017-02-21
Posts: 10

Re: [Solved] PipeWire on a headless server

broken pipe wrote:

thank you for your answers! I have now solved it with the systemctl linger to start a user session without login.

i now run all audio applications over pipewire, also pipewire can do bluetooth and airplay. so i have a versatile sound server.


I have the same challenge, trying to run spotifyd on a headless server.
I did

sudo loginctl enable-linger monkee

without success.

I also can see this:

[monkee@123 ~]$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 105
Tile Size: 65472
User Name: monkee
Host Name: 123
Server Name: PulseAudio (on PipeWire 1.4.2)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: auto_null
Default Source: auto_null.monitor
Cookie: 07bf:1250

Specifically looking at Default Sink. This is the case before I logged in a user via a physical screen. If I do this, I can see my sound device under Default Sink.

Can you explain how you achieved this? Thanks!

edit
I had to add my user to audio group which solved my issue.

sudo usermod -G audio -a <user account>

Last edited by monkee (Today 15:43:12)

Offline

Board footer

Powered by FluxBB