Reply
   
 Stream music *from* your iPod/iPhone 
 
 
  #1 (permalink)  
Old 21-09-2008, 05:08 PM
Regular

Group: Regulars
Location: Streaky Bay, South Australia
Blog Entries: 1


Stream music *from* your iPod/iPhone


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!
__________________
MacBook White (Mid '07) // iPhone 3G 16GB Black
iPod Touch 1st Gen 8GB // AirPort Express Early 2008 (pre-n)

Last edited by Beau; 23-09-2008 at 01:20 AM.
Beau is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #2 (permalink)  
Old 21-09-2008, 10:25 PM
Stuck in IKEA. Send help.

Group: Administrators
Location: St. Albans, Melbourne
Blog Entries: 11


Nice write up!
decryption is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #3 (permalink)  
Old 23-09-2008, 01:19 AM
Regular

Group: Regulars
Location: Streaky Bay, South Australia
Blog Entries: 1


Update: *Should've* Fixed the server not quitting issue; replaced 'root' with 'mobile' in the config file
__________________
MacBook White (Mid '07) // iPhone 3G 16GB Black
iPod Touch 1st Gen 8GB // AirPort Express Early 2008 (pre-n)
Beau is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #4 (permalink)  
Old 23-09-2008, 01:53 AM

Group: Member
Location: Sydney


Great find thanks for the head up!!
itsmeyd is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #5 (permalink)  
Old 27-09-2008, 10:50 AM
Member

Group: Member
Location: Sydney, Australia


Firefly won't stop using the killswitch in bossprefs.
also a bit OT, but is there anyway to edit or delete the custom bossprefs switches like the one you described how to add
khewit is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #6 (permalink)  
Old 13-11-2008, 07:11 PM
Member

Group: Member
Location: Wetherill Park, NSW


thanks for the guide. Very helpful.
Jonno92 is offline
Profile CardPM
Go to the top of the page
Reply With Quote
 
Reply

Thread Tools

 
Similar Threads
 
Thread Thread Starter Forum Replies Last Post
Simplify Media - Stream your music to your iPhone half goon half god iPhone Software & App Store 35 25-08-2008 10:10 PM
Time Capsule cannot stream music? jantar Peripherals 0 05-05-2008 08:58 PM
Stream music from your iPhone/iTouch to your computer wirelessly! andrew.wilson iPhone & Mobile Phones 0 02-11-2007 12:18 AM
How stream music to multiple stereo's? new2mac iPods, iPod Accessories & Other Digital Music Players 5 14-09-2006 05:19 PM
OSX Mail Problems mikeh Mac OS X & All Software 10 13-07-2006 09:06 PM