Home

Apr. 23rd, 2006

ganesha

Enlightment with the Daemon

[warning: Technical Post]

Hi,
Its special if you learn something cool. specially if it "sounds" cool and practical - literally.

Here I am talking about exporting sound from one machine to another.

You all might have an idea of exporting display - this happens because of the X server.

X server controls the I/O resources specifically for display and input. So, an application running in machine A can make use of the display services provided by the X server in machine B. so, the GUI will be seen in machine B. Eventually, the user sitting at machine B (in juhu) can actually "see" and "interact with" the applications in machine A, thus giving a feel that you are using machine A - this is known as "exporting" the display at machine A.

How about exporting sound? - for that you need to know about a piece of s/w called enlightened sound daemon - esd.

using debian is like working in an office with a/c. once you have started working with it, you can't even imagine working without it. :)

so, we will see how to export sound in Linux.

First, we need the server which will let us use the "sound services" of machine B.

do, apt-get install esound
i dunno if libesd0 is installed along with this, as i have had esd from the time my machine was born.

do, apt-get install libesd0

now, we want to run an application on machine A that will require the sound resources. but, this application must interact with the client side software of
esd to get its sound exported.

for that, do , apt-get install esound-clients on machine A.
we need this primarily because we have "non-esd" applications and the client side s/w will help in rerouting the sound to the serveer where it can be played.

now, machine A will have a piece of s/w called esddsp which will help you in rerouting the sound.

run it in machine A as,
esddsp --server=localhost:9090 xmms /home/venkat/music/pachai\ nirame.MP3


that is, esddsp "serverinfo" "music application" "music application's arguments!"


how all you can you use this: (as far as i have figured out):

* if you do not have all kinds of music players that plays all kinds of formats installed in machine B, but machine A has it (which you have access to),
and you are really stuck with machine B at the moment and you can install the esd server in that and machine A has esd clients and songs in that (phew!)

* if you want to scare the schamoolies out of your colleague who sits near your cubicle. have esd server in your cubicle machine, go to some other machine,
reroute the sound to your cubicles machine. helps, if your colleagues is an "easily scared" kinda guy and is actually sitting in his cubicle.
helps if you have locked the screen, switched off the monitor and have the maximum volume possible in that machine. helps if your boss is not around ;-)

[info]ripul sir taught me how to use esd. he is the most amazing technical frood i have ever seen.
Tags:
ganesha

October 2009

S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728293031

Advertisement

Syndicate

RSS Atom
Powered by LiveJournal.com