Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Forwarding audio/music or generic devices?
- Christian Hammers
April 12, 2007, 12:32 pm
rate this thread
Any idea how to tunnel /dev/dsp and /dev/mixer through an SSH tunnel?
It would be cool if I could run my favourite mp3 manager on my home desktop
but listen on my work desktop. The advantage over just mounting the mp3
directory through an SSH tunnel would be that I preserve playlists/collections,
the rating and similar stuff that "amarok" stores somewhere under ~/.kde/
Re: Forwarding audio/music or generic devices?
Since it's easy to tunnel TCP connections, one obvious approach is
to convert output to /dev/dsp into output via a TCP connection, and
tunnel that instead.
With that in mind, if I wanted to do something like this, I'd
probably start by looking into network-based audio servers: aRts,
ESD, NAS, that sort of thing. If you could get your mp3 manager to
output to what it thinks is an audio server, but which is actually
an SSH port-forwarding to an audio server run on your work machine,
that might be the easiest way.
Failing that, you might kludge around the same concept by
LD_PRELOADing a library into your mp3 manager which intercepted
attempts to open /dev/dsp and converted them into network
connections to a forwarded port, but I'd guess that probably
wouldn't work so well, not to mention that it would take a lot more
work even to try it.
Other things to bear in mind if you try this:
- streaming of MP3 media into your company network might violate
company IP policy (I think it would if I did it at _my_ company,
- streaming MP3 data over a TCP connection might turn out not to
work well in real-time, leading to pauses and glitches in the
Simon Tatham "A cynic is a person who smells flowers and
- » SSH v1's public modulo's vs. X.509 public modulo's
- — Previous thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum