View previous topic :: View next topic |
Author |
Message |
mimosinnet l33t


Joined: 10 Aug 2006 Posts: 709 Location: Barcelona, Spain
|
Posted: Sun Mar 29, 2020 10:40 pm Post subject: [SOLVED] Pulseaudio for multi-user Linux |
|
|
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 |
|
 |
mimosinnet l33t


Joined: 10 Aug 2006 Posts: 709 Location: Barcelona, Spain
|
Posted: Mon Mar 30, 2020 11:44 pm Post subject: |
|
|
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
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!  _________________ 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 |
|
 |
|
|
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
|
|