[How To] Use your QNAP to enable iTunes Home Sharing

TwonkyMedia, PS3, XBOX360, iTunes, & other media players

[How To] Use your QNAP to enable iTunes Home Sharing

Postby rogsf » Thu Jul 14, 2011 2:04 pm

[How To] Use your QNAP to enable iTunes Home Sharing

Note: This is for x86 only! Sorry, no ARM solution for now!

Like many folks, I have been trying to find the right/affordable solution to enable Apple iTunes Home Sharing feature on QNAP, so that my Apple TV 2, iPad, and iPhone can stream the music & photos & videos. It’s especially cool that you can use your phone or iPad as a remote control (downloaded the ‘Remote’ App from AppStore) to stream whatever the content to anywhere using Home Sharing and AirPlay features.

Unfortunately, there is no easy way to do it, and you will probably never see QNAP to implement this Home Sharing feature. Part of the reason is that Apple and Movie/Music studios control how you distribute music to your remote/mobile devices. As of today, you must use your PC or Mac to have iTunes running at all time and turn on Home Sharing feature. I think most of the folks think like me that this is not the ideal situation because it’s really a waste to just use a dedicated PC/Mac to be a iTunes Home Sharing server device.

To do that, Philippe made this possible, kudos to Philippe. He has done a lot of great work packaging VirtualBox 4.0.8 that allows you to run Windows XP virtual machine inside of your QNAP. Note: this is still in beta. But, so far, I haven't found any issues.

1st, this is for x86 only because VirtualBox does not support ARM.

2nd, it’s strongly recommended that you have Dual Core Atom and upgrade QNAP's RAM to 2GB

3rd, go to this thread for instruction on how to install VirtualBox QPKG. viewtopic.php?f=255&t=45982

4th, after VirtualBox is successfully installed, now you can add a Virtual Machine by installing WindowsXP using ISO image.

5th, you must use Bridged mode to enjoy all the layer 2 LAN Home Sharing features. Please go to this thread on how to do this. viewtopic.php?f=255&t=46682

6th, Optimize your Windows XP to very minimum, so that it can keep both Windows VM CPU and QNAP CPU utilization to relatively low. Google search on how to optimize Windows XP. Since this is my dedicated iTunes Home Sharing server, I turned off firewall, I don’t intend to use this VM to download anything or browse internet or open any email or documents.

7th, install VNC (optional). I find VNC server response faster and smoother than RDP, especially for the mouse. It’s your choice.

8th, install iTunes on your Windows VM. Make sure you have already mapped your Windows VM to QNAP share/Multimedia or your Music folder (Preferably, the mapped Drive letter would match that on your real PC's mapping). Open iTunes, go in to Advance tab under Preference, and tell iTunes's Media Library is not in VM's C drive, but point it to your new mapped QNAP's share/Multimedia folder. Then, close iTunes.

9th, if you have a PC, and if you have been pointing your Media Library to QNAP server, then copy (overwrite) everything (ex: iTunes Music Library.xml, iTunes Library.itl, Album Artwork, etc..) except your music, MP3, Movies, and Podcast (these should be stored in QNAP anyway) into your Windows VM’s My Music/iTunes folder.

10th, now open iTunes in your Windows VM, your iTunes should now see exactly what you saw in your real Windows PC.

11th, turn off Home Sharing in your real Windows PC, and then turn on Home Sharing in your Windows VM.

12th, it will take 1 -3 mins for Apple TV/iPhone to discover there’s a new Home Sharing Library from Windows VM. Now, you can stream music and videos from Windows VM using Home Sharing to your iPhone/iPad/Apple TV 2, and use your iPhone/iPad as the remote control to your Apple TV as to what album streamed to Apple TV with Photo Sharing from iTunes as well for Screen Saver!!!

13th, enjoy! :) :) :)
Last edited by rogsf on Sun Jul 17, 2011 8:42 pm, edited 1 time in total.
rogsf
Starting out
 
Posts: 46
Joined: Sun Mar 06, 2011 5:40 pm
NAS Model: TS-259 Pro

Re: [How To] Use your QNAP to enable iTunes Home Sharing

Postby Bob5AD » Sun Jul 17, 2011 5:21 pm

Very cool, thanks for this guide.
Bob5AD
Know my way around
 
Posts: 193
Joined: Wed Dec 15, 2010 1:02 am
NAS Model: TS-401T

Re: [How To] Use your QNAP to enable iTunes Home Sharing

Postby paladar » Sun Sep 04, 2011 5:27 pm

Hi

Great Guide!
I have a TS-412 with a Marvell 6281 1.2GHz CPU. Does it run on this CPU? How can I add memory, since the TS-412 only has 256 MB?
BR Thomas
paladar
New here
 
Posts: 6
Joined: Fri Dec 31, 2010 2:01 am
NAS Model: SS-839 Pro

Re: [How To] Use your QNAP to enable iTunes Home Sharing

Postby rogsf » Wed Oct 19, 2011 9:10 am

paladar wrote:Hi

Great Guide!
I have a TS-412 with a Marvell 6281 1.2GHz CPU. Does it run on this CPU? How can I add memory, since the TS-412 only has 256 MB?
BR Thomas



The Virtual Machine qpkg is for x86 boxes only. Sorry, you won't be able to run VM on your 412.
rogsf
Starting out
 
Posts: 46
Joined: Sun Mar 06, 2011 5:40 pm
NAS Model: TS-259 Pro

Re: [How To] Use your QNAP to enable iTunes Home Sharing

Postby Mr_SBJ » Wed Oct 19, 2011 8:15 pm

Couple of questions: Do your drives spindown when running a virtual machine? Are there problems if you set a schedule to only power on during the evenings? Just trying to run a green iTunes machine only when I need it on and not running 24/7. Thanks.
Mr_SBJ
New here
 
Posts: 2
Joined: Tue Oct 18, 2011 1:11 am
NAS Model: TS-259 Pro+

Re: [How To] Use your QNAP to enable iTunes Home Sharing

Postby rogsf » Fri Oct 21, 2011 9:44 am

Mr_SBJ wrote:Couple of questions: Do your drives spindown when running a virtual machine? Are there problems if you set a schedule to only power on during the evenings? Just trying to run a green iTunes machine only when I need it on and not running 24/7. Thanks.


I have the iTunes running all the time whenever QNAP is on, the thing is my habit of listening to iTunes is spontaneous, so I never know which day or what time I want to listen. So, I don't think this will allow the drive to spindown.

If you want to run iTunes whenever you want it, you might want to use an iPhone/Android app. Few iPhone Apps allow you to SSH and run few simple scripts or pre-configured commands so that you can have iTunes running with just few clicks without typing a list of cumbersome commands.

Answer to your 2nd question is I do the same thing to schedule power shutdown every night. Never have any problem to resume from suspense mode.
rogsf
Starting out
 
Posts: 46
Joined: Sun Mar 06, 2011 5:40 pm
NAS Model: TS-259 Pro


Return to Media Streaming

Who is online

Users browsing this forum: No registered users and 5 guests

cron