Skip to content

Instantly share code, notes, and snippets.

@aliang
Created June 12, 2011 08:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aliang/1021352 to your computer and use it in GitHub Desktop.
Save aliang/1021352 to your computer and use it in GitHub Desktop.
stream iTunes over SSH (requires dns-sd)
# Shamelessly taken from http://blog.iharder.net/2009/09/28/itunes-stream-itunes-over-ssh/
# Your remote library will appear in your local iTunes as a shared library
# You need an ssh server running on the remote library's computer
#!/bin/sh
dns-sd -P "Home iTunes" _daap._tcp local 3689 localhost.local. \
127.0.0.1 "Arbitrary text record" &
PID=$!
ssh -C -N -L 3689:localhost:3689 yourhost.dyndns.org
kill $PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment