Posts

Showing posts from February, 2011

Media server for Mac with wake on lan, streaming, automounting

Well, I finally have a decent system in place for storing and consuming media on my macs. My wife and I each have Mac laptops. We store all our Movies on a file server now running Ubuntu 10.10 configured with netatalk, advertising itself via avahi, and now the laptops automatically mount the shares when the server is turned on. This last part was needed because I like to use iTunes to keep track of which TV episodes I've watched as well as use my iPhone to control volume and playback. She prefers to just use the Finder to navigate to the movie she wants to put on for the kids without opening iTunes. It turns out the magic recipe is to use keys for authentication with ssh, then on the server add a line like this for each machine you want to automatically mount the network share: /usr/bin/ssh user@machine.local osascript -e \'mount volume \"afp://username@hostname.local/ShareName\"\' \&\& open /Volumes/ShareName & That is all on one line. As you are