LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 01-20-2005, 07:28 AM   #1
Waldo
LQ Newbie
 
Registered: Nov 2003
Location: Cambridge, MA
Distribution: Fedora Core 3
Posts: 1

Rep: Reputation: 0
Playing sound on a remote computer over ssh


(If this is the wrong forum for this, my apologies; it doesn't seem to fit well in any of them, so I figured I'd try here because sound's what's not working.)

I've set up a server running Fedora Core 3. It was initially set up with a graphical environment (but only the most minimal one -- no GNOME/KDE), but after the first configuration, I removed rhgb/firstboot/xorg-x11 and whatever other packages to get a commandline-only box. (I also added a 'while true; do : done' loop in /etc/X11/prefdm to get rid of "x respawning too fast" messages.) I want the box to be a web/email server that can also play music for me through speakers attached to the computer.

If I use an attached keyboard/monitor, all these capabilities work perfectly as both root and as a regular user. The natural solution here (to me, at least) is to use ssh to log in from another computer to manage things. For the server stuff, ssh works fine. For the sound, however, it doesn't work.

If I log in remotely as root, the speakers will play sounds from mplayer (built from source for a gui-less environment). However, when I try to adjust the volume using 9 (down) or 0 (up), I get a message saying that hardware mixing is not available and that some type of filtering will be used. The volume level can still be changed ("filtered"), but the range is pretty severely limited, and I can't get the max volume I could get if I logged into it from connected hardware. If I log in as a normal user over ssh, sound doesn't even work. (Some other info: mplayer uses OSS to play sound; I tried compiling it with --disable-ossaudio, but then no sound worked, and I don't care enough ideologically to fool with something that works. FYI, aplay doesn't seem to work for me when I log into the computer, directly or remotely.)

I've found a partial solution to getting sound to work for the normal user, but it's only partial: create a group named 'sound-users', add the unprivileged user to it, along with root, and do "su -c 'chgrp sound-users /dev/dsp' -" to get sound to work. This doesn't fix the hardware mixing problem. Also, because FC3 is udev-based, this also has the problem of meaning that any time I turn off the speakers, I have to retweak the permissions for the speakers. I've looked at the permissions of /dev/dsp on a local login, and interestingly enough, when I log in as user foo, the owner of /dev/dsp is set to foo. This works for both root and the unprivileged login.

Because FC3 is udev-based, I've looked into just tweaking the udev config files to fix things. This doesn't actually work, though (or at least just tweaking 50-udev.permissions doesn't). /dev/dsp has the wrong permissions still, and I have a feeling that tweaking in 50-udev.rules to change the user associated with /dev/dsp won't really work, either (because that won't fix the hardware mixing problem).

Basically, I think my question boils down to this: how is an ssh login different from a local login, and what steps should I take to make ssh logins be functionally equivalent to local logins?

Finally, here's the output of some various bits of information from the affected computer. If more information is needed, just let me know.
Code:
# /sbin/lspci
2.6.10-1.741_FC3
Code:
# output from /sbin/lspci
00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0e.0 Multimedia video controller: Zoran Corporation ZR36120 (rev 03)
00:0f.0 Multimedia audio controller: Aureal Semiconductor Vortex 2 (rev fe)
01:00.0 VGA compatible controller: nVidia Corporation NV4 [RIVA TNT] (rev 04)
Thanks in advance for any help!

Last edited by Waldo; 01-20-2005 at 07:31 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tunnel all internet traffic through a ssh connected remote computer Bateman Linux - Networking 12 12-10-2004 05:53 AM
Playing dvd movies off of remote computer? mrsolo Linux - Software 2 08-26-2004 09:19 PM
Opening remote files (during ssh session) with applications on local computer? The_Fed Linux - Newbie 3 05-10-2004 04:20 PM
Sound on remote computer. grayswander Linux - General 1 04-01-2004 05:12 PM
Not able launch KDE_Fedora core on remote computer using ssh-X The_Fed Linux - Newbie 2 03-31-2004 10:58 AM


All times are GMT -5. The time now is 06:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration