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

Bengt Månsson bengt.mansson at gmail.com
Mon Jan 21 14:07:01 PST 2008


Hi
I use Fedora 8 (I couldn't install 7, it did'nt find drivers for my dvd or
something. a known bug they don't care to fix)
I copied your suggestions into the file and restarted.
Thanks a lot Fernando, it works!
(now the crt goes back to the attic)
/Bengt

The files looked like this before the change:

[bengt at studio console.perms.d]$ more *
::::::::::::::
50-default.perms
::::::::::::::
# device classes -- these are shell-style globs
<pilot>=/dev/pilot
<scanner>=/dev/scanner* /dev/usb/scanner*
<rio500>=/dev/usb/rio500
<fb>=/dev/fb /dev/fb[0-9]* \
     /dev/fb/*
<kbd>=/dev/kbd
<joystick>=/dev/js[0-9]*
<gpm>=/dev/gpmctl
<dri>=/dev/nvidia* /dev/3dfx* /dev/dri/card*
<mainboard>=/dev/apm_bios
<pmu>=/dev/pmu
<bluetooth>=/dev/rfcomm*
<irda>=/dev/ircomm*
<dvb>=/dev/dvb/adapter*/*

# permission definitions
<console>  0600 <pilot>      0660 root.uucp
<console>  0660 <scanner>    0660 root.lp
<console>  0600 <fb>         0600 root
<console>  0600 <kbd>        0600 root
<console>  0600 <joystick>   0600 root
<console>  0700 <gpm>        0700 root
<console>  0600 <mainboard>  0600 root
<console>  0600 <rio500>     0600 root
<console>  0600 <pmu>        0600 root
<console>  0600 <bluetooth>  0600 root
<console>  0600 <irda>       0600 root
<console>  0600 <dvb>        0600 root

<xconsole> 0600 /dev/console 0600 root.root
<console>  0600 <dri>        0600 root
::::::::::::::
60-libmtp.perms
::::::::::::::
<libmtp>=/dev/libmtp*
<console> 0600 <libmtp> 0600 root
::::::::::::::
60-libnjb.perms
::::::::::::::
<libnjb>=/dev/libnjb*
<console> 0600 <libnjb> 0600 root




2008/1/21, Fernando Lopez-Lezcano < nando at ccrma.stanford.edu>:
>
> 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 at 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
> >
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/planetccrma/attachments/20080121/493dc98b/attachment.html>


More information about the PlanetCCRMA mailing list