[PlanetCCRMA] soundcard must be detected via local display before detected via vnc

Fernando Lopez-Lezcano nando at ccrma.Stanford.EDU
Sun Jan 20 15:10:02 2008


On Sun, 2008-01-20 at 23:44 +0100, Bengt Månsson wrote:
> That looked like a good theory but when I checked the files
> in /etc/security/console.perms.d/ I find no line with <sound> at all
> (and no line with /dev/snd either).
> Should I add some lines manually or is the problem somewhere else?

That's the way permissions are controlled for devices like soundcards,
etc, that can/should only be accessible to the person sitting physically
in front of the computer. 

What version of Fedora are you running?
What files do you see there are what are their contents?

This is what I see in Fedora 7:

----
<sound>=/dev/dsp* /dev/audio* /dev/midi* \
        /dev/mixer* /dev/sequencer* \
        /dev/sound/* /dev/beep \
        /dev/snd/* /dev/adsp*
----

----
<console>  0600 <sound>      0600 root
----

-- Fernando


> 2008/1/18, Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>: 
>         On Wed, 2008-01-16 at 16:06 -0500, Martin Harriss wrote:
>         > Bengt Månsson wrote:
>         > > Hi
>         > > I prefer to use VNC to connect remotely to my linux audio
>         box via LAN 
>         > > After each reboot I cannot see the soundcard in qjackctrl
>         via VNC
>         > > I have to login on a locally attached screen and start
>         qjackctrl
>         > > Then I can logout from that screen and everything works
>         fine again via 
>         > > VNC (until next reboot)
>         > > I would like to remove that old screen and always just use
>         my laptop as
>         > > display (which is very good)
>         > > Please advise
>         > > /Bengt
>         > > 
>         >
>         > This is probably a permissions problem.  When you log in at
>         the console
>         > the system arranges for the audio devices (amongst other
>         things) to be
>         > owned by the user logging in.  When you VNC in this probably
>         doesn't happen. 
>         
>         That's correct. You would have to make your audio devices
>         accessible to
>         all users, not only to the person physically logged into the
>         machine.
>         You can do that by changing this file:
>         
>         /etc/security/console.perms.d/50- default.perms
>         
>         Change this line:
>         <console>  0600 <sound>      0600 root
>         to this:
>         <console>  0600 <sound>      0666 root
>         
>         this will make the sound devices world readable and writable
>         (ie: 
>         anybody logged in will have access).
>         
>         -- Fernando
>         
>         
>