I just got our thin client to play sound. I did not use either local
apps or ltspsound. I was inspired by an email from Peter Rundle sent
to this list on 'Wed, 08 Aug 2001 10:34:46 +1000' (Message-ID:
<[EMAIL PROTECTED]>).
BtW: Debian/woody, ltsp 2.9pre4
Here is how I did it:
I made the thin client load the modules for the sound card. It was
necessary to use the full path to them, even though I installed them
in the default location:
>From lts.conf:
MODULE_01 =
/opt/ltsp/i386/lib/modules/2.4.9-ltsp-4/kernel/drivers/sound/soundcore.o
MODULE_02 =
/opt/ltsp/i386/lib/modules/2.4.9-ltsp-4/kernel/drivers/sound/ac97_codec.o
MODULE_03 =
/opt/ltsp/i386/lib/modules/2.4.9-ltsp-4/kernel/drivers/sound/emu10k1.o
I use a SBLive! PCI card for sound.
I also added this line to lts.conf:
LYD = Y
LYD is the Norwegian word for sound, but I didn't use the English
word, as it might confuse the rc.local-script.
In rc.local I added:
LYD=`get_cfg LYD`
if [ "${LYD}" = "Y" ]; then
echo "Running Sound Server..."
/bin/esd -nobeeps -tcp -as 2 -public -port 5001 &
/usr/bin/aumix -v 100
/usr/bin/aumix -w 100
fi
Then I copied the aumix and esd binaries from our server and into the
correct directories:
#cp /usr/bin/esd /opt/ltsp/i386/bin/esd
#cp /usr/bin/aumix /opt/ltsp/i386/usr/bin/aumix
(I am sure that esd could reside in /opt/ltsp/i386/usr/bin if you'd
like it to.)
Also, you'll have to copy the libraries those programs need. To find
out which those are, run:
#ldd `which aumix`
#ldd `which esd`
Be sure to copy the libraries to the corresponding places in the
/opt/ltsp/i386/ directory. Example:
On my system ldd `which aumix` yields (amongst others):
libgpm.so.1 => /usr/lib/libgpm.so.1 (0x4001a000)
libncurses.so.5 => /lib/libncurses.so.5 (0x40021000)
So I copied /usr/lib/libgpm.so.1 to /opt/ltsp/i386/usr/lib and
/lib/libncurses.so.5 to opt/ltsp/i386/lib.
(I also installed sox and play and their libraries, but I don't think
that's necessary.)
Boot and logon the thin client. Set the environment variable ESPEAKER
like this in an xterm:
$ESPEAKER=<hostname>:5001
$export ESPEAKER
<hostname> should be either the hostname of your thin client or its
IP-adress. You'll probably want to add this to your .bashrc or
perhaps .xinitrc. Also, to make it generic for all your thin clients
do some voodo with `who am i` and an regexp to get the thin client IP
or hostname. I'm sorry that I don't have that right now, but I
haven't done it yet :(
Now, run a (sound) program that supports esd and it should be working
fine. If your program doesn't support esd, then run it with esddsp in
front like:
$esddsp mpg123 mycoolsong.mp3
WARNING: Volume may be very high!
Caveats:
- It is not possible to use the aumix program (or any other mixer
program I suspect) when you are logged in on the server. Most
people have loudspeakers with a volume knob or put the signals
through an amplifier. That makes it at least possible to adjust the
volume. If someone has a solution to this, I'd be happy to hear
it.
- You'll have to set the ESPEAKER and use the esddsp program. It is a
drag but "c'est la vie".
DISCLAIMER:
- I only have one thin client. I haven't tested with more than that.
My server is a PII/350Mhz/128MB Ram with a 100Mbit/s NIC. It has
woody installed. I used the ltsp2.09pre4 tar.gz's and installed
them with the default settings.
DEBIAN SPECIFIC:
- I installed the following packages (from woody, may be in potato
too) for esound: esound, esound-common, libesd0, esound-clients
If anyone finds ways to improve this, please let me know. If you find
that this doesn't work, please feel free to correct me.
--
Ole Sebastian Stein
``It is a mistake to think you can solve any major problems with just
potatoes.'' - Life, the universe and everything (Chapter 24), D. Adams
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.openprojects.net