I have Ubuntu 10.04 installed on my system. When I am logged on locally I have excellent sound.
If I make a second login as a different user
ssh -X other@localhost
that user cannot get audio.
When I try to run mplayer I get the error message
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
Should I ssh as the console-user, everything works fine.
I suspect that somehow I should enable pulseaudio for this second user, however I don't know how to do this.
/L
(If someone wonders why I do this, I am experimenting with having different account for dedicated tasks. Like banking, youtubeing, etc.)