Revision 1 as of 2006-06-09 11:08:42

Clear message

First of all, all the credits go to Jon Lech Johansen, aka DVD Jon, who released JustePort, a tool which lets you stream MPEG4 Apple Lossless files and RAW audio files to your AirPort Express. More info in his blog: [url]http://nanocrew.net/index.php?s=justeport[/url] (He accepts donations Wink ;) )

This is the only open source tool I've found to stream audio via wi-fi to the Airport Extreme base station. [B] What you can do with this How-to: [/B] It's pretty basic, you can stream wirelessly single mp3 files or all the files in a given folder to your Airport Express base station (pretty basic AirTunes functionality). Hopefully this will inspire other people to make xmms/amarok/vlc plugins to accomplish more advanced functionalities.

[B]What you need:[/B] Mono: [CODE]sudo apt-get install mono mono-gmcs[/CODE]

JustePort.exe: Download JustePort-0.2.tar.gz from [url]http://nanocrew.net/sw/justeport/JustePort-0.2.tar.gz[/url]. Extract the contents somewhere, open a terminal, navigate to the folder you just extracted and compile JustePort with mono typing the following command: [CODE]mcs -out:JustePort.exe *.cs[/CODE] That will make a file named JustePort.exe that you'll have to move to /usr/bin/ to make it available as a shell command: [CODE]sudo cp JustePort.exe /usr/bin/[/CODE]

lame (free mp3 codec): If you're able to play mp3s chances are that you have it already installed, otherwhise type the following command in a terminal: [CODE]sudo apt-get install lame[/CODE]

[B]The command:[/B] Ok, once you're ready, you can type the following command in a terminal to play a single mp3 file (assuming the mp3 file is in the current directory and its name is file.mp3 and that the IP address of your airport express base station is 10.0.1.1): [CODE]lame --decode file.mp3 - | JustePort.exe - 10.0.1.1[/CODE]

On step further: to play all the mp3 files in a given folder, open the terminal, navigate to the folder containing the mp3s, and type the following command: [CODE]cat *.mp3 | lame --mp3input --decode - | JustePort.exe - 10.0.1.1[/CODE] Note: you can simplify it a little bit by making an alias (for example, "playall"). Again, in a terminal type: [CODE]alias playall="cat *.mp3 | lame --mp3input --decode - | JustePort.exe - 10.0.1.1"[/CODE] Now, to play all the mp3s in your current folder you just have to type playall.

That's it for the moment, but you basically can stream any audio format if you have the right tool (for example, to stream ogg you'd type: oggdec -Q -R -o - file.ogg | JustePort.exe - 10.0.1.1). Just try things and if they work post them here.

Again, [B]thanks to DVD Jon for making this possible[/B].