![](https://seccdn.libravatar.org/avatar/d5c24adf366c9cf8a15b880162e9e06e.jpg?s=120&d=mm&r=g)
On Thu, 2020-09-10 at 16:19 +0930, Simon Lees wrote:
On 9/10/20 1:29 AM, Manfred Hollstein wrote:
Hi Tomas,
On Wed, 09 Sep 2020, 17:29:44 +0200, Tomas Kuchta wrote:
I expected confusion, ....
To clarify - I am not asking about forwarding sound through remote connection to ssh/vnc client side.
I would like to figure out how to access sound devices on vnc server to play sounds on vnc server.
As described in the original post - it seems that something is restricting access to local HW devices on the server. Perhaps it is not access control/ restriction, but some conflict or exclusive access from something on the server side. I am not sure.
first thing which comes to mind is group "audio"; IIRC only members of the "audio" group are allowed to access sound related devices. When you're using PulseAudio, there might be an issue if it allows access for other/remote services at all. You can use "paprefs" to allow/disallow access to those devices which PA already controls on your local system.
This is no longer true, now it is managed by logind, I can "ssh -X" into my desktop from my laptop launch clementine and play music through my desktop speakers, however that might also be related to me also being currently logged into that machine although they were treated as separate sessions. How to configure logind / polkit to allow non graphical users to have audio, i've only really messed with it for network.
https://www.freedesktop.org/software/systemd/man/loginctl.html#
Thank you all for the suggestions - it is resolved by adding myself to audio group. A few observations: polkit - I could not figure out the polkit in any reasonable time - even what it actually controls, how, it works, how and what to configure, even the format of its default config is not clearly/easily described. I am not even sure if it actually is active - given your suggestions - I trust that it is. paprefs - the network settings had no effect on the local sound device "invisibility". groups - adding self to audio group + logout/restart vnc/login made all the local audio devices visible to me in vncserver and the sound works. It is complete mystery to me - how I could have had access to the sound devices without being audio group member from local graphical session. Only root and audio group has access to the sound devices /dev/snd/* So, I should not have been able to make any sounds without the audio group membership: ls -l /dev/snd/* crw-rw----+ 1 root audio 116, 17 Sep 10 19:18 /dev/snd/controlC0 crw-rw----+ 1 root audio 116, 4 Sep 10 19:18 /dev/snd/controlC1 crw-rw----+ 1 root audio 116, 7 Sep 10 19:18 /dev/snd/controlC2 crw-rw----+ 1 root audio 116, 15 Sep 10 19:18 /dev/snd/hwC0D0 crw-rw----+ 1 root audio 116, 16 Sep 10 19:18 /dev/snd/hwC0D2 crw-rw----+ 1 root audio 116, 9 Sep 10 19:51 /dev/snd/pcmC0D0c crw-rw----+ 1 root audio 116, 8 Sep 10 19:51 /dev/snd/pcmC0D0p crw-rw----+ 1 root audio 116, 14 Sep 10 19:50 /dev/snd/pcmC0D10p crw-rw----+ 1 root audio 116, 10 Sep 10 19:50 /dev/snd/pcmC0D3p crw-rw----+ 1 root audio 116, 11 Sep 10 19:50 /dev/snd/pcmC0D7p crw-rw----+ 1 root audio 116, 12 Sep 10 19:50 /dev/snd/pcmC0D8p crw-rw----+ 1 root audio 116, 13 Sep 10 19:50 /dev/snd/pcmC0D9p crw-rw----+ 1 root audio 116, 3 Sep 10 19:51 /dev/snd/pcmC1D0c crw-rw----+ 1 root audio 116, 2 Sep 10 19:51 /dev/snd/pcmC1D0p crw-rw----+ 1 root audio 116, 6 Sep 10 19:51 /dev/snd/pcmC2D0c crw-rw----+ 1 root audio 116, 5 Sep 10 19:51 /dev/snd/pcmC2D0p crw-rw----+ 1 root audio 116, 1 Sep 10 19:18 /dev/snd/seq crw-rw----+ 1 root audio 116, 33 Sep 10 19:18 /dev/snd/timer If someone could explain this in a few sentences - I would really appreciate it. Thanks again, Tomas -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org