Showing posts with label iTunes. Show all posts
Showing posts with label iTunes. Show all posts

10/26/11

Inside Apple iTunes, Sharing music on your home network


I've been trying (and still am) to figure out the best way to manage and share a large library of .mp3 files, I never cared much for iTunes but considering I have iPhone/iPads I thought I should at least look into it.

The sharing features of iTunes leave much to be desired but I am going to attempt to configure it so that I have an iTunes server with a library that can be shared throughout my network.

What I decided to do was to install iTunes on a virtual machine running in my VMWare ESXi environment, this way I could add iTunes into the startup folder and it would always be open and available. One of the things I don't like about iTunes is that to share a library iTunes has to be open and if you setup sharing and want to add or edit music or playlists, you have to do it from one computer.

So I wanted to come up with a way where any one of the computers could add or edit music or playlists and it would propagate to all the other iTunes computers in the house.

First on the iTunes server I pointed the media folder to my network share that contains all of my .mp3 files, I also checked the copy files to iTunes Media folder when adding to library checkbox. This way any new music added to the library will be copied into a central location.


Import Music

To import my music I selected File - Add Folder and proceeded to browse to my mapped drive where all my .mp3 files are located. Note this can be a very slow process if you have several GB of music.


Once all the music has been added to the library, I'm ready to look at how iTunes keeps track of the library and what files are important to know about.

iTunes Library Files - Library.itl and Library.xml


The iTunes library is a database iTunes uses to organize your music. Two iTunes library files are created and maintained by iTunes for different purposes. They're both in the iTunes folder.

Location of the iTunes library files:


Mac OS X:
/Users/username/Music/iTunes/iTunes Library.itl
/Users/username/Music/iTunes/iTunes Library.xml


Windows XP
\Documents and Settings\username\My Documents\My Music\iTunes\iTunes Library.itl 
\Documents and Settings\username\My Documents\My Music\iTunes\iTunes Library.xml


Windows Vista
\Users\username\Music\iTunes\iTunes Library.itl 
\Users\username\Music\iTunes\iTunes Library.xml


Windows 7
\Users\username\My Music\iTunes\iTunes Library.itl
\Users\username\My Music\iTunes\iTunes Library.xml



About the iTunes Library.itl file
This file is a database of the songs in your library and the playlists you've created. Some song-specific data is saved in this file. If you delete the file, iTunes creates a new, empty copy when you open the application, but any playlists, song ratings, comments, or other information you created is lost. The iTunes Library file is only used by iTunes, and is the only one backed up by Time Machine on OS X.



About the iTunes Library.xml file
This file contains some (but not all) of the same information stored in the iTunes Library file. The purpose of the iTunes Library.xml file is to make your music and playlists available to other applications on your computer. In Mac OS X other iLife applications (like iPhoto, iDVD, and iMovie) use this file to make it easier for you to add music from your iTunes library to your projects.




The point of this tutorial is to let several computers share the same iTunes library so after all of my music has been successfully added to my iTunes server I need to share the library files on the server. On the iTunes server, I navigated to the folder containing the iTunes library metadata. By default (see locations above) you can typically find this in \Users\username\My Music\iTunes. I see a file called iTunes Library.itl so I know I'm in the right location. I need to share this folder on the network, so I right-click the iTunes folder, select Sharing and security and select Share. Now I add the users that I would like to give share access and select the share button.



Grant permissions to all user accounts that will need access to the iTunes library



Next I connected all of my networked computers to the iTunes share, I mapped a drive on each. To do this, access a networked Windows computer, right-click on My Computer, and select "Map network drive" Choose a drive letter, then I browse to the share I created on the iTunes server. When I'm done, I click Finish. 






Now on all of my networked computers, I launch iTunes while holding the Shift key. This let me change the default iTunes library. I Clicked on Choose library, then navigated to the mapped drive (W:) that I just created. Select the iTunes Library.itl file and I'm done.


This completes the shared iTunes library, I'll continue to test how this works and if I find any improvements I'll update the post.


10/18/11

Apple TV Generation 2 - Windows Jailbreak and XBMC Install

Ok, I know this one is way off topic but I thought I would share it anyway, I picked up an Apple TV Gen 2 yesterday. After doing some research and talking with a friend that had already jail broken a few of them, I planned on jail breaking it.

Note: All links to software utilities are listed at the end of this post
Software needed for this guide....
  • Greenpois0n 
  • Seas0nPass 
  • Firmware(ipsw) 
  • iREB 
  • iFaith 
  • Putty


The process was supposed to be pretty straight forward, I downloaded the latest Greenpois0n jail break utility and thought I would be on my way. Don't bother following this as I only mention it because this is what I first tried and wanted to share my results.

I wanted to jail break mainly because with the stock ATV you have to play everything in Apple's approved formats, I like to keep my movies in AVI (mostly xvid) and don't want to have to convert them to view them through the ATV.

First thing to do when jail breaking an ATV is to back up the SHSH Blobs, I used a utility called iFaith. This will allow you to create signed ipsws (with iFaith) and return to previous versions of ios software.

Backing up SHSH Blobs - Open iFaith and select the Dump SHSH Blobs


Place these files in a secure location, they will be needed if you ever want to downgrade you ipsw version


So I started on the jail break, first thing I realized is that getting the ATV into DFU mode (the mode it has to be in for applying a jail break) is a little hard at first. Following the on screen instructions in Greenpois0n failed more times than it succeeded. Finally I got it and started with the jail break...


Now getting the ATV in DFU mode holding in the two small buttons on the remote


Ready...


Once the ATV gets into DFU mode the bottom left button will say jail break.


Failure!

So after clicking jail break and watching as the progress bars work their magic it would finish saying that the jail break was applied successfully. I disconnect the ATV and connected it to my TV and nothing had changed from the out of the box screens. I tried this several times even using earlier versions of GP and even on another computer, all had the same result. 

So my next Google search leads me to another utility called Seas0nPass


Seas0nPass works a little different, instead of modifying your existing ipsw (software) it actually will either automatically download the latest version of ios that is jail breakable or you can hold the shift key down and select an ipsw version that you have previously downloaded. Unlike Greenpois0n, Seas0nPass will only jailbreak your ATV so that you can install software to it, it will not install any software for you. Greenpois0n would have been nice because it gives you the option of inject software from the ATV menu. 

So I downloaded the latest version of ios that I knew could be jail broken which was AppleTV2,1_4.3_8F202_Restore.ipsw, and I proceeded to let Seas0nPass modify it.


Once Seas0nPass has modified the ipsw you can either let it automatically launch iTunes and install the custom firmware for you or you can manually do this. I tried both methods with no success, for the most part I kept getting the 3194 error which means that iTunes realizes this is not a correct ipsw that you can install on your device. I also saw error codes 21, 1600 and a few others. I struggled with these errors for hours trying every utility in every order and could not get past these errors.

FAILURE!

In the end there were three key things that got me past all of the errors, the first was to rename the custom ipsw that Seas0nPass creates, basically remove the SP from the filename so that it looks like the stock file name for that particular version of ios. 

The second was to get a utility called TinyUmbrella


Select the Advanced Tab and ensure that your checkboxes match mine...


Once your checkboxes are set to match mine from the General tab you will be able to start the TSS server, this will need to be running when you perform the last step of importing the ipsw into iTunes. (Note) that each time you attempt this I would recommend stopping and starting the TSS server as it seemed to have issues if I didnt do this.

The third step was to use a seperate utility called iREB to put the ATV into DFU mode, apparently it does matter how you do this and it can help get past some of the errors when restoring an ipsw in iTunes.

Launch iREB and select Apple TV 2


Follow the instructions to get the ATV into DFU mode


Now launch iTunes and you should immediately see the ATV screen with the restore button, hold down the shift key and select Restore. Browse to the modified ipsw file that Seas0nPass created, make sure you have removed the SP out of the title of the file and let iTunes restore the ipsw. 


When the installation is complete plug the Apple TV into a television and you should see a new menu item in the top navigation bar. 


Install Software

Now that your ATV is jailbroken, we’re going to install third-party software such as XBMC. First, we have to find out what IP address your ATV was assigned by your router. From the ATV homescreen navigate to the Settings menu. Select General and then Network. Next to IP Address is your ATV's IP address.



Download Putty for Windows and launch. Type in your ATV's IP address in the Host Name (or IP address) field. Click Open and you will be prompted to log in as a username. Type “root” as the username and type “alpine” for the password.

Now type the following commands right after each other, press Enter after each line:

echo "deb http://apt.awkwardtv.org ./" > /etc/apt/sources.list.d/awkwardtv.list
apt-get update
apt-get install com.nito.nitoTV
killall Lowtide
reboot

After you run the third command, you will notice it will ask if you want to continue. Type “y” and hit Enter. 


When your ATV restarts you will see that you installed nitoTV, which acts like Cydia on a jailbroken iPhone, nitoTV is a package management system that allows users to download packages. From the homescreen, select nitoTV and open it. You’ll see a list of packages that you can install. I suggest installing XBMC-ATV2, updateBeGone and Overflow at a minimum, you can highlight these and it will give you a description of what each is.

Enjoy!


Links

Greenpois0n -  http://greenpois0n.com/