Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Pulseaudio for multi-user Linux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 709
Location: Barcelona, Spain

PostPosted: Sun Mar 29, 2020 10:40 pm    Post subject: [SOLVED] Pulseaudio for multi-user Linux Reply with quote

As outline in this post, I have applications running as different users. I would like to have PulseAduio to output the sound of an application run by another user. I have tried the configuration suggested in the post, but PulseAudio does not start:

Quote:
usermod -aG audio user

/etc/pulse/client.conf
default-server = unix:/tmp/pulse-server

/etc/pulse/default.pa
load-module module-native-protocol-unix auth-group=audio socket=/tmp/pulse-server


Allowing anonymous authentication, as suggested in this post, had the same results. Another possibility is to run PulseAudio at boot for all the users, but it seems to be discouraged.

I am wondering if you have any suggestion on which should be the right path.

Cheers!
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts.
Back to top
View user's profile Send private message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 709
Location: Barcelona, Spain

PostPosted: Mon Mar 30, 2020 11:44 pm    Post subject: Reply with quote

This solution, similar to the above, inspired from the ArchLinux wiki works:

/etc/pulse/default.pa
Code:
load-module module-native-protocol-unix auth-anonymous=1 socket=/tmp/pulse-socket


/etc/pulse/client.conf
Code:
default-server = unix:/tmp/pulse-socket


You may need to start the PulseAudio server at stratup. In case you are using i3wm:

/home/user/.config/i3/config
Code:
exec pulseaudio -D


This allows different users to access the same sound server. Users do not need to be in the audio, pulse-access or pulse groups.

Cheers! :D
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum