Networking + Sound together
Glen Walker (2585) 469 posts |
I’ve been away from RISC OS for a bit but slowly getting back into it. Have just installed RPCEmu (v0.8.8) and notice that if I enable networking then my sound stops working. I’m running it on Debian and was wondering if it had something to do with having to run RISC OS using sudo to get network to work (i.e., is it because its starting as root so the sound is being output by root and therefore not available to the regular user?) |
||||
Steve Pampling (1551) 8170 posts |
Any particular reason for using a seven year old version?
Possibly. IIRC the su and sudo differences can be summed up with: Su switches you to the root user account and requires the root account’s password. 1 Sudo is of course only available to user accounts listed as sudoers, i.e. you’re trusted to run some root level stuff but you aren’t root level. Edit: It occurs to me that in the likes of Ubuntu and others although you could try the likes of su or gksu you’ll need to setup the root account properly to allow root login first – there’s tutorial snippets aplenty for that. |
||||
Glen Walker (2585) 469 posts |
Just because it is the one I have on a memory stick from RISC OS Open. I have since tried the 0.8.15 version and it does the same. Well I have tried using gksu and sudo and these are the results:
So it does seem likely that there is something wrong with permissions or access to the audio device. Will do some more digging… |
||||
Glen Walker (2585) 469 posts |
Well I’ve done a bit more now and figured out that whomever logs into the machine first gets access to the audio and everyone else is locked out (its a security thing apparently). It looks like I can enable system-wide access to the audio but not sure this would be a good idea! Its a shame RPCEmu can’t have the network side of things running as a separate root-level process…or initialize the sound after its dropped back to normal user level. |
||||
Steve Pampling (1551) 8170 posts |
Is there some kind of audio group on the system for the pulse audio that your RPCEmu launching user would need to be a member?
After you’ve supplied the password for root to the gksu pop-up? |
||||
Glen Walker (2585) 469 posts |
Yes, and it is possible to run pulseaudio in “system wide” mode but that introduces a whole bunch of security issues (even though that is the case, I did try it but it still does not allow the audio to come through from RPCEmu…maybe there are multiple issues at work?). All I know is that if I run it as a normal user (with pulseaudio in “normal” mode) then the audio works fine and networking obviously doesn’t because of the access to the tunnel/tap driver.
Yes thats what I see after I have entered the password and RISC OS is up and running. |