Click for full size -
Uploaded with plasq's Skitch
Thanks to the magic of
Firefly Media Server, you can now stream your music right from your iPod/iPhone into iTunes over WiFi. Interested? Read on!
First of all, you'll need to have your device jailbroken, and have SSH installed - (search is your friend) once done, open up Cydia and have a look for Firefly Media Server . Install, and reboot your device. (You might also like to install BossPrefs if you havent already - this will make it *much* easier to start the server, if you don't fancy typing into Terminal).
Next, in your favourite text editor, create the following files;
(You can change 'My iPhone' to whatever name you'd like to appear in iTunes)
Code:
#
# mt-daapd.conf
#
# Edited: Fri Sep 19 14:53:31 2008
# By: root
#
web_root /usr/share/mt-daapd/admin-root
port 3689
admin_pw alpine
mp3_dir /private/var/mobile/Media/iTunes_Control/Music
servername My iPhone
runas mobile
playlist /etc/mt-daapd.playlist
extensions .mp3,.m4a,.m4p
db_dir /private/var/cache/mt-daapd
rescan_interval 300
scan_type 2
always_scan 1
logfile /var/log/mt-daapd.log
process_m3u 1
compress 1
Save as mt-daapd.conf *Make sure there's no formatting whatsoever.*
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.fireflymediaserver.mt-daapd.plist</string>
<key>Program</key>
<string>/usr/sbin/mt-daapd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/mt-daapd</string>
</array>
</dict>
</plist>
Save as org.fireflymediaserver.mt-daapd.plist
*Again - make sure there's no formatting!*
When you've created the files, open up your favourite SFTP client, and connect to your iPhone
(Username - root; Password - alpine).
Browse to
/etc/ and place the
mt-daapd.conf file inside.
Next, drop
org.fireflymediaserver.mt-daapd.plist inside
/Library/LaunchDaemons/.
After you've copied the files over, open up your favourite SSH client (Terminal works just fine) and connect to your iPhone.
Then, you can register your new /Library/LaunchDaemons/org.fireflymediaserver.mt-daapd.plist file with launchctl by running the following line in Terminal
Code:
launchctl load /Library/LaunchDaemons/org.fireflymediaserver.mt-daapd.plist
While we're in Terminal, you can also start the file scan process by running the following command;
Code:
/usr/sbin/mt-daapd -c /etc/mt-daapd.conf -f
After the file scan has completed - your iPhone should now show up inside iTunes if they're on the same network. Congratulations!
When the server is up and running, you can also access the control panel from Safari;
Just visit
MacTalk Australia on your iPhone, and you can start a new file scan, change the password, check status, etc.
Now, if you dont want to have to run a command in terminal everytime you want to start Firefly, you can add a Firefly control to BossPrefs;
Open up
BossPrefs. Tap
Config. Tap
Add. Then, fill out the settings using the following;
Code:
Name: Firefly
Start: launchctl start org.fireflymediaserver.mt-daapd.plist
Stop: killall /usr/sbin/mt-daapd
Process: /usr/sbin/mt-daapd
Icon: (leave this blank)
Tap
Save.
Now you will only have to toggle a switch to start/stop Firefly.
Enjoy!
