AirTunes-ish Linux
Posted in Computers, Gear, Linux, MacOS X, Software on November 26th, 2004 by Anders K. Madsen – 5 CommentsI spent last weekend with the guys behind Webcafe.dk and one of the guys had brought his AirPort Express with built-in AirTunes, which is really cool, so I started wondering if this could be done on Linux – and with all sound (not just music, but video and application noises also) so I could get rid of that annoying mini-jack in my Thinkpad.
After searching a little on google with no luck I decided to write my own client/server application, but before I got to it I talked to this guy ‘gnome’ on #ruby-lang @ irc.freenode.net and he directed me to NAS (Network Audio System), which was actually designed for such a task.
Setting it up turned out to be a piece of cake. Simply:
# apt-get install nas
on the server, and
# apt-get install nas nas-bin audiooss $ export AUDIOSERVER=server:0
on the client. (Just a note here. When installing the NAS package you will be asked whether or not NAS should lock the audio device. Answer yes, that should give the most stable implementation.)
Now I can simply use NAS-aware applications (e.g. mplayer and alsaplayer has NAS support) and make them output sound to the server, which is connected to my stereo. Or I can use audiooss and run e.g.: audiooss xmms &, which forwards the XMMS output (if it outputs to OSS) to the NAS server.
Now I can play music, movies and stuff from my laptop over my network and still be completely wireless – and in Linux that is.
UPDATE: I just stumbled upon a NAS plugin for XMMS, which can be downloaded from ftp://ftp.stack.nl/pub/users/willem/. (Look for xmms-nas-0.2.tar.gz.)