Edit files (for XMBC) on Apple TV

Last week I’ve posted how you can jailbreak and install XBMC media center on an Apple TV 2, after that I’ve posted on how you can connect your media and optionally share your media library on a (Synology) NAS. Some of my blog visitors asked my how you can create and edit the configuration files on the Apple TV. So let’s take a look at that.

To edit and create the files we have 2 options;

  1. Open a SSH terminal session and edit the files from the command line
  2. Use a SFTP/SCP tool (graphical)

The second option is the easiest so I’ll focus only on the SFTP/SCP method. For this method you’ll need a SFTP/SCP client. I’m using WinSCP, it’s a free open-source client, download it from http://winscp.net

After you’ve installed WinSCP you can start the program and provide the information to connect with your Apple TV. The default username is root and the default password is alpine. The default hostname is AppleTV, if you’r not able to use the hostname to connect you can also use the ip-address.

After you’ve provided the connection info you can hit ‘Login’ to connect. When the connection is made you can browse the Apple TV’s filesystem;

The right side browser is the AppleTV.

Edit files

So lets assume you want to edit the sources.xml file witch XMBC uses, this file is created by the installation of XBMC. Browse to the path /private/var/mobile/Library/Preferences/XBMC/userdata/. In this folder you’ll find sources.xml, highlight this file and press F4 (or double click it).  A new window will open where you can edit the content of sources.xml

The editor works the same as for example Notepad, just edit the text and save (and exit).

Create files

If you want XBMC to connect your shared library or make use of pathsubsitution you’ll have to create a file named advancedsettings.xml (this file is not installed with XBMC). To create this file press SHIFT+F4 and provide the name, after that you can edit and save this file.



Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.