Categories
ExcludeTop7 How-Tos iOS & Mac how-tos

Another way to stream to XBMC on an ATV2 from a Lion Mac

A couple of days ago I wrote about how to set up your Lion Mac to stream media to XBMC on your jailbroken AppleTV 2, since Lion changed the way SMB worked and hence broke SMB streaming. It involved a great wee application called Playback, which streams to a whole bunch of devices including XBMC installations. It avoids having to get your hands dirty in Terminal, but requires a £10 license (a small and well-deserved price to pay).

I’ve had an eye on the usual forums and spotted another method of doing the same thing which also has the advantage of being free and of being able to take advantage of your meticulously organised fanart, posters and .nfo files, something I don’t think Playback does (if it does, please let me know how in the comments).

This alternative uses WebDAV and an application called MediaMaster Server, which is free on the Mac App Store – and seeing as this post is really just for Lion users, that shouldn’t be any barrier to entry. I believe the app is actually meant as a free complement to a paid iPad app for streaming media to your iPad, but it also happens to work nicely with XBMC.

Here’s how you set it up:

1) Download the application and launch it.

2) Click ‘Select root directory’ and navigate to the folder that contains your various media folders. For example, all my various types of media have their own folders, and all of those reside in my ‘Media’ folder on my external drive. That is the folder I’ve used as my root directory.

3) In the settings tab, give yourself a username and password, and click on ‘Secure HTTP’ if you want a secure setup. I left the port as the default.

4) Click the master switch on the left to ON.

5) In XBMC go to setup a new share and navigate to the option that lets you fill in WebDAV (HTTPS) settings.

6) The network address is the local IP address of the computer that’s running MediaMaster Server – for example, 192.168.1.60 (don’t copy that, it’s just an example! Find your own IP address in the Mac’s System Preferences under Network)

7) The port, username and password is whatever you selected in step 3

8) With these details filled in, save it as a source and select it for use. It should detect the various folders within your shared root directory and ask which one you want to use. From here on just set up your folders as unique sources such as TV, Movies, etc.

One thing I’ve noticed with my setup, and it may well be to do with me having a recent nightly build of XBMC as opposed to the approved version, is that scraping is painfully slow. It only needs to do it once, of course, but if it’s taking it’s sweet time you could wait until bedtime before setting it running and in the meantime just access your files through the Videos>Files route in XBMC.

So if you’re having Lion/SMB/XBMC/ATV2 woes you now have two options for getting your media centre up and running again! Good luck and thanks for reading. If you’d like to comment on anything I’m @myglasseye on Twitter.

Categories
ExcludeTop7 How-Tos iOS & Mac how-tos

How to stream to XBMC on an Apple TV 2 from a Lion Mac using Playback

Note: before we start, if you’re not already using XBMC to stream to your AppleTV, give my article about Firecore’s ATV Flash a read first – it’s a little easier to set up than XBMC and may solve all your problems.

I’ve been using a jailbreaked (is that a word? should it be jailbroken?) AppleTV 2 and XBMC to stream media from my Snow Leopard Mac for about a year now. It’s awesome.

And then Lion came along and broke it.

Like many people, I was using the SMB method to get media to the XBMC installation, but Lion apparently uses a new, Apple-made variant of the SMB protocols which the XBMC and/or the ATV2 doesn’t like. Now, there are ways around this by switching to NFS for example but I have had no end of hassle getting NFS to work properly despite a lot of input from friendly folks like memphiz at the XBMC for iOS forums. I presume I’m doing something wrong, but it’s beyond the scope of my technophilia right now and in the meantime I need a way to watch my media.

Enter Playback by Yazsoft. It streams all your stuff to a variety of devices, such as PS3, XBOX 360, even XBMC and Plex installations, through UPnP. There’s other software that does similar things, such as Connect360 and Rivet, but Rivet doesn’t work on Lion and besides, it just got end-of-life’d (thanks for nothing, guys!) while Connect360 is kinda ugly on your 360 as it doesn’t respect your folder structure and dumps the entire contents of every folder into one long list. Yuck.

Playback, on the other hand, is Lion compatible and when I read it supported XBMC, that’s all I needed to know.

UPDATE: I should have added in the original review that there is one drawback to Playback – it doesn’t support metadata or artwork. That’s half the joy of XBMC, I know, but at the point I wrote this it was media only or nothing at all. In the latest Dharma version of XBMC for ATV2 they’re trying a new method for connecting to your Lion machines but it wasn’t playing nice with my setup for some reason; you may still find Playback useful.

So, if you’re on Lion, using XBMC on your AppleTV 2, and need a simple solution to fix the streaming, try this:

1) Download the Playback demo
2) Set up the preferences so that it’s got access to your media folders
3) Go to your XBMC app on your ATV2
4) Go to Videos and set up a new share
5) Click Browse
6) Select UPnP Devices
7) When the Playback installation for your computer appears, select it (in my case it was SithLord Playback)
8) Select the folder you want to use as a source (in my case I have a Films folder and a TV folder – you can only do one at a time so pick one for now)
9) Give it a name within XBMC
10) Save it

If you have multiple folders you want to share, repeat steps 4 to 10.

Now check it works. I haven’t found a way to make it appear in the TV or the Movies menus that XBMC displays as default, but everything is findable via the Videos menu, no problem.

Once you’ve got it working and you’re happy with it, head back over to Playback and buy a license, which is £10. Until then it limits your streaming to 30 minutes at a time and 2 videos per day.

Now, full disclosure, I’m hoping to get a free license for writing this blog about the app (see here), but I didn’t let that sway my opinion of Playback. This morning it has proved to be a painless way of getting ATV2 XBMC streaming working from my Lion iMac, and has the added bonus of working on my 360 as well, just in case I temporarily brick my ATV2 with further tinkering in the future (it’s happened before!).

So I hope this helps anyone that’s having trouble with their ATV2/XBMC since updating to Lion. Ideally I’d like to get my NFS shares working at some point but in the short term Playback has most definitely been a head-ache free alternative – with that caveat that artwork and metadata don’t show up.

Thanks for reading. If you’d like to comment on anything I’m @myglasseye on Twitter.

Categories
How-Tos iOS & Mac how-tos

One way to fix an iTunes ‘Error 1013’

Last night I was updating my iPhone 4 to iOS 4.3 (from 4.2.1) and it got almost all the way through until it sought to verify the update with Apple and failed with error code 1013. The support document said this was likely to do with security software preventing iTunes from connecting to Apple but I had no problems with the iTunes Store (usually a dead giveaway) so I looked further and found that it’s to do with the hosts file on the computer needing a line edited.

I was just about to give it a try when I stumbled across references to the application TinyUmbrella causing this problem. I have used TinyUmbrella to grab the SHSH blobs for my AppleTV 2 so that I could jailbreak it safely (jailbreaking the ATV2 is highly advisable as it makes the device incredibly useful for things like XBMC). There’s actually a preference setting in the TinyUmbrella app that automatically alters the hosts file so that it forces checks to go through Cydia and not Apple and therefore allow jailbroken iOS software to go undetected.

Open the app, click the Advanced tab, uncheck the box marked ‘Set Hosts to Cydia on Exit’ and the update problem goes away.

Thought I’d post this in case it helps somebody else with the same problem without having to go editing the hosts file themselves.

Categories
How-Tos iOS & Mac how-tos

iPhoto libraries and Dropbox – a warning!

You may be considering syncing your iPhoto libraries between various machines using Dropbox. I tried this recently and it works, but there are some serious caveats, that if you ignore could result in wiping out a lot of your iPhoto changes. Skip to the last paragraph if you want the short version, but for those who get some strange thrill from reading a stranger’s data disaster tales, read on.

So, I recently upgraded to the 50GB Dropbox account as I wanted to be able to sync a large quantity of photos between my iMac and MacBook Pro so that I didn’t have to be tethered to the desk in order to sort and edit them, then make an iPhoto book out of them.

As I started the process of making the book I knew I would have to sync my iPhoto libraries as well. Now, I don’t use iPhoto for anything other than making calendars at Christmas, and the occasional book. I turn off the feature that copies photos into iPhotos catalogue as I prefer to leave them where they are. I also create a new library for each project (although I think that as of 2011 I’ll just keep all of each year’s projects in one library named for the year).

First of all I backed up my libraries by duplicating the entire folder in which they are kept, then zipping it down. Then I created a symbolic link to the original folder and dropped that into Dropbox. That’s a hefty amount to share so I had to leave it overnight to get the contents up onto the server and down onto my MBP.

Once done, I was pleased to see that there appeared to be absolutely no problems. Everything I’d been doing on iPhoto on my iMac prior to syncing appeared in the MBP iPhoto installation. Remembering that with such ‘hacks’ I would need to make sure only one copy of iPhoto was running at a time (to avoid save version conflicts) I got cracking on the book in iPhoto on the MBP.

Yesterday I decided I wanted to continue the book on my iMac for a change. I’d done a lot of work the day before on the book, and that evening had hidden the app away while my wife browsed the net, and then had left the laptop closed and charging on the coffee table overnight as always.

So without thinking, I fired up the iMac copy of iPhoto and as soon as the book loaded I was hit full force in the guts – none of the prior day’s work was there and with a burst of searing adrenaline I realised why.

I hadn’t quit the MBP iPhoto the night before. It was still running, with all of the changes to the book on it, albeit hidden away in the dock. I had a sinking feeling that Dropbox hadn’t been able to upload the new changes to the server and download them to the iMac.

I quickly quit the iMac app and reached for the MBP to pop out the iPhoto app from the dock where it was idling and check all was well. All my work was still there, THANK GOD. However, my mind was starting to work through what had happened.

I could see from the menu icon that Dropbox had started doing a lot of syncing on both machines. I thought through what was going on and came to the conclusion that iPhoto probably makes final saves to the library on Quit, and Dropbox is probably only able to properly sync the changes to the libraries at that point, ready to be used when the app is next launched on whichever machine. I’d closed the MBP the previous evening without quitting iPhoto and, therefore, without letting Dropbox copy the library properly to the iMac.

Then I’d launched the iMac version with an old library, from two days ago. Then I’d quit that version in a panic. And it had started syncing at that point…

With a grim feeling of doom I relaunched the MBP iPhoto and sure enough, in the last two minutes all my work had been wiped out. While Dropbox had been trying to upload the MBP’s newer iPhoto library, it had downloaded the older and freshly saved iMac library and overwritten all my work. And now the newer library was gone for good.

There was no happy ending here – I’ve thought through every possibility. My MBP is meant to be a ‘floating’ computer and hence is never backed up either locally or to the cloud, Dropbox excluded (not that it would have helped in this case for the above reasons). If I had been working on the iMac and forgotten to quit, there was a chance that the days work would have been backed up to my external drives or to Dataflame overnight, but as it was my work was toast and I’ve had to redo it today from memory.

The lessons here are:

  • when it comes to Dropbox-syncing iPhoto libraries between two machines, make absolutely DAMN sure that only one copy of iPhoto (and by extension only one iPhoto library) is being used between the two machines;
  • always make sure that when you finish on one machine you Quit the application and then physically watch Dropbox start and complete the sync between both machines;
  • make sure the DB menu icon has stopped animating on both machines, and ideally manually check the ‘modification date’ on the iPhoto library in question on the target machine before you launch iPhoto on that machine.
  • Here endeth the lesson…

    (PS, I just spent my lunch recreating the lost pages, which only numbered around 8 or so in the end, and I’m confident they’re actually better now I’ve had a second go at them. I still wish I’d never had to do it in the first place)

    Categories
    How-Tos iOS & Mac how-tos

    how to sync your Macs with Dropbox – for free!

    Dropbox.jpgHappy Christmas, everyone! I hope you all got what you wanted and/or what you deserved. 😉

    My Christmas treat to myself was to spend the evening geeking out with my Dropbox setup. It’s a free service that basically allows you to keep certain files constant across multiple machines. You create an account, download software to the machines you want to use and it creates a folder called ‘Dropbox’ on those machines. Whatever you put in the Dropbox on your computer is uploaded to the server space (where it’s secure unless you mark it ‘Public’), and is subsequently downloaded to the Dropbox folders on all the other machines you’ve set it up with, maintaining consistency no matter what machine you use.

    It’s probably easier to understand if you just try it. It’s completely free, works with Macs, PCs and iPhones – sign up via my links and you’ll even get 250MB extra space on top of the standard 2GB, as will I. Plus, if you follow five of the six ‘Getting Started’ tips once you’ve signed up you get another 250MB free!

    I’ll admit I wasn’t sure what to use it for at first. However, combined with the free iPhone app that accesses your server space, I found it was useful for syncing work documents like callsheets or scripts, as well as being a simple and free way to distribute large files like zip archives of photos for friends and clients.

    Finally, I started using it instead of the Sites folder for storing the local copies of the code that runs my websites so that I can make edits on my iMac and be able to pick them up later on the laptop, with no effort copying the files between the two machines.

    However, I felt like I was missing out on some cool uses, so I started investigating syncing the settings of regularly used applications ike Safari, iCal, Address Book, Things and 1Password, and this is how I did it.