Stream music from iTunes library to iPod/iPhone

I recently found a tutorial that explains how to stream music from your iTunes library (or any music directory, for that matter) to your iPod/iPhone, for computers running Mac OSX, and so figured I may as well make a tutorial for users who use Windows, to do the same.

The original tutorial can be found here (for Mac OSX).


First you’ll need a PHP-enabled HTTP (web) server which you can use to host the ‘streaming’ package.
You can either download and install Apache HTTP Server and PHP5 manually, or you can install WAMP, an automated software application which aims to simplify the installation process.
Please Note: If your server is to be externally-accessible, I strongly suggest you install and configure Apache HTTP Server and PHP5 manually, as it allows you to have more control over security settings.

1) Download WAMP from here (~16Mb).
2) Open the WAMP installer, and follow the prompts.


Select a directory where WAMP should be installed to. I personally left it as the default, as it doesn’t really make much of a difference.


When asked to select your browser, if you use Internet Explorer, just click Okay. Otherwise browse to the location of your browser’s executable. For Firefox, this is C:\Program Files\Mozilla Firefox\firefox.exe.

If a dialog appears, warning about Windows Firewall blocking Apache, click “Allow access”.

Nice work, WAMP is now installed.
Now if you browse to http://localhost/ you should see the following web page:

3) Now you’ll need to set your music directory to be accessible by your web server.
There are a few ways to do this:
1) You can copy your music to WAMP’s ‘htdocs’ directory
2) You can change WAMP’s ‘htdocs’ directory to the location of your Music directory
3) You can create a symbolic link, allowing you to leave the rest of your files where they are.
For the purpose of this tutorial, I will be choosing the symbolic link option, as I prefer its functionality (and is more linux-like).

Creating a Symbolic Link on Windows Vista/ Windows 7:
Using a Windows Vista or Windows 7 computer,
i) click Start
ii) type ‘cmd’ in the search box
iii) press ctrl + shift + enter together.
iv) Click ‘yes’ on the UAC permissions dialog box.
v) type mklink /D <folder 1> <folder 2>
i.e. mklink /D C:\Test C:\Users\Username\Desktop\Test links C:\Test and C:\Users\Username\Desktop\Test together, so if you have files in C:\Users\Username\Desktop\Test, you can view those files by opening either C:\Users\Username\Desktop\Test or C:\Test.

Creating a Symbolic Link on Windows XP:
The same theory above (for Windows 7 and Vista) applies to Windows XP, too, but, instead of using mklink, you will need to use an application called Winbolic. You can download it here.

For the sake of this tutorial, I used mklink /D C:\wamp\www\itunes C:\wamp\www\itunes\iTunes Media\Music.

4) Download the PHP files for the streaming package from here (owner’s site) or here (local Mirror).
5) Unzip this file, and copy the iPhone folder to your WAMP ‘www’ directory (by default, this is C:\wamp\www), overwriting any files if asked.
6) Copy the iTunes folder to your music directory. In my case, this was C:\users\Andrew\Music, but yours will probably be different. It will be the same directory that you created a symbolic link to.
7) That’s it! If you’ve followed this tutorial correctly, you should be greeted with a page like this, when you access your ‘website’ via your iPod/iPhone.

You can access your website using: http://<IP_of_your_computer_with_WAMP_installed>/iphone.
You can access it locally (on the computer that has WAMP installed) using: http://localhost/iphone/

New translations

I’ve recently spent some time adding translations for my website, which are personally translated by me.

At the moment, I’m offering English, German and will start on Russian sometime soon (with some help from Google language tools, for Russian).

If you find any translation errors, please send an email to , with “XtraSimplicity Translation Correction” as the subject, and information such as the sentence or area which is incorrect, the page it is on, and, if possible, a correct translation.

I expect all the articles to be translated within the next month or so, as I’ve exams at the moment.
XS

iPod touch/iPhone – EAP/MSCHAP wifi authentication (solution)

I was having trouble getting my iPod touch to connect to my University’s wireless network, as it requires MSCHAP PEAP authentication with WPA2-Enterprise, but the iPod touch/iPhone does not include the ability to set such settings.

I managed to find a tutorial in German on the internet, and so have translated it into English, for those who can’t speak German. For those who do speak German, however, the original link can be found here: http://www.apfeltalk.de/forum/802-1x-iphone-t158493.html#post1527965

So, on to the translation of the article:


Many of you know that the iPhone 2.0 software now finally also supports 802.1X. Many have missed this feature, especially us students, as many Universities use this standard for authentication in their WLANs.
I have searched in my device for a possibility to change such settings to no avail. After a few Google searches, I then found out that one must use the “iPhone Configuration Utility”, which Apple offers as a free download (Links can be found after this clause.

There is also a version for Mac OSX, and Windows.

Download (Windows)
Download (OSX)

I will quickly explain the required steps. The procedure is also described in a support  document (which no longer exists, but similar documentation can be found here: <a href=”http://manuals.info.apple.com/en_US/Enterprise_Deployment_Guide.pdf”>http://manuals.info.apple.com/en_US/Enterprise_Deployment_Guide.pdf</a>).

Next, one must create a profile with all necessary settings, in the Configuration Utility. This can then be exported as a .mobileconfig file. One can simply either leave this file on a webserver, and then open the link on the device, using Safari, or send the file by Email to the device. When one uses the Webserver method, one should set the Webserver settings to use the MIME-type “application/x-apple-aspen-config mobileconfig”, as the profile file will otherwise be displayed as a general XML-document.
You will need to request the actual settings to use, from your WLAN admin(s). At Universities, such information can normally be found on the page of the IT services website. In my case, I only had to untick “Protocol” TTLS, and enable PAP under “Internal Identification”. A certificate was not required, this will be transferred during connection, and must be confirmed.
The Username can be saved, so that it isn’t required to be entered in the future. Otherwise, the username will be requested on first connection to the network. One selects  “Request password with every connection”, so the password will always be requested, in other cases it will only be requested once, and then saved.

Once you’ve opened the file, the following dialog appears:

After the confirmation of the Installation, the Profile appears in the Settings. It is also possible to have more Profiles.

Input of the Username into the Device: