• Home
  • Articles & Guides
    • Configure a Synology NAS as MySQL server for XBMC
  • What’s New
  • Crystalbuntu How-to
    • Intro – From HTPC to Apple TV
    • Part 1 – Introduction
    • Part 2 – Preparing The Thumb-drive
    • Part 3 – AppleTV Hardware Modification
    • Part 4 – The First Boot
  • Coffee!
  • About Us
  • Contact Us

Crystalbuntu Installation Guide – Part 1 – Introduction

Posted by Mark - December 2, 2011 - Crystalbuntu, How To
7
Crystalbuntu Installation Guide – Part 1 – Introduction

Building a silent media player from an original first generation Apple TV

The original Apple TV (ATV) never really made sense to me as a retail product. It was too expensive, had too many moving parts and it could only play media from Apple. I actually bought one years ago when they first came out but I quickly returned it when I realized that it could not play the high definition MKV files (h.264) that I typically use. My attitude changed however when a few enterprising developers built a new Linux back-end specifically for the ATV and coupled it with he Broadcom CrystalHD decoder. The result is a simple to use media center that runs XBMC and can play just about any video file I can throw at it. There are plenty of guides out there to install the CrysatlHD board and get up and running, but I specifically wanted a silent media center that would pull all of its content from a shared folder on my Synology NAS.

So, if you are like me and your goal is to have an inexpensive, low power and silent set top box that can instantly stream lots of different kinds of media files from either a computer or a NAS device somewhere on your network, keep reading!

Video – What is Crystalbuntu??

Some Background – What is an AppleTV, a CrystastalHD card Crystalbuntu and XBMC??

The Apple TV was Apple’s first attempt at getting iTunes into the living room and is basically a very small computer. It has an Intel 1Ghz Pentium “M” CPU, 256MB of RAM soldered onto the motherboard along with a low end nVidia Geforce GO 7300 GPU with 64MB or VRAM. This is just enough horsepower to play Xvid/Divx movies in standard definition, or some very specific H.264 (MKV/MP4) movies that just happen to conform to the iTunes specs.

Like I said above, its just enough to let you watch iTunes in the living room and play some music, but nothing else really. The ATV is no longer being sold new as it was replaced by a very nice second generation unit (also capable of running XBMC, but it has some shortcomings) but the original ATV can still be found on eBay and Craigslist for less then $100.

The Brodcom CrystalHD board, specifically the BCM70015 model is a Mini PCI card that is able to add hardware decoding for a bunch of video formats. Its actually designed for things like netbooks and other small computers that that have slow processors and are thus not able to play HD video without some help. The card does one thing and one thing only, when properly installed with the correct drivers, software video players may use it to decode video files without bogging down the CPU on the computer.

It just so happens that the AppleTV is exactly the kind of low end computer that the CrystalHD was designed for. The trick is that you need to first install the hardware and then configure the drivers and software before it will actually do anything. Again, there are other ways to do this than installing Linux, but for the very best performance, Linux is the way to go!

Crystalbuntu refers to running the Ubuntu OS pre-loaded with the CrystalHD drivers on an AppleTV. There are a number of ways to do this, but the easiest way is to use a tool built by Sam Nazarko called (intuitively enough) “CrystalHD for AppleTV.” Sam’s tool will take an existing 4GB (or larger) thumb-drive and turn it into a bootable Linux disk that can be used by the Apple TV. By making a few modifications to the drive after running Sam’s tool we can take this a step farther and remove all of the moving parts from inside the ATV to create what may be the best media player available today… For about $150 and in about an hour.

Sam’s tool will install what is commonly refereed to as “Sam’s Image” on your thumb drive. The image consists of four partitions including the Apple “recovery” partition and a Linux swap file. The rest of the disk is dedicated to a pre-configured installation of Ubuntu Linux 8.04 along with some scripts that will automatically setup XBMC and the CrystalHD drivers upon first boot. Its really cool stuff!

If you want to try Crystalbuntu without removing your hard drive and fan, just run Sam’s tool and plug in your Thumb-drive to the AppleTV. Booting to Crustalbuntu will in no way effect your existing AppleTV hard drive so thee is no risk. Unfortunately, there is also little point to running crystalbuntu until you have installed a CrystalHD card, and if you’re going to rip the bottom off your AppleTV, why not go all the way and make it silent too!

XBMC is an application origionally developed as the “X-Box Media center” and designed to play media files from an X-Box. Over time XBMC evolved into a robust PC application for use with Windows, Apple and Linux. Today, XBMC is one of the best “front ends” available for an HTPC (home theater PC) and has also been ported as an application for jailbroken AppleTVs (first and second generation.)

The first generation AppleTV is basically a purpose built and low end HTPC, but when combined with Linux and the CrystalHD adapter, it becomes a very powerful device that XBMC can take full advantage of!

A NAS device refers to “Network Attached Storage” and is basically a small, low power purpose built PC that serves a single purpose; make the contents of its hard drive available to the network. Think of an external USB hard drive that plugs directly into your network without the need for  a PC attached to it. In my case I use a Synology DS110J with a single 2TB hard drive. The NAS costs about $100 and the drive is about $75 and this investment allows me to “share” about 1.8TB of storage on my network at all times without the need for a server or PC running. The Synology NAS actually runs an embedded version of Linux and will allow me to do some other cool things (like run MySQL to share my XBMC database to all my media player… More on that later…)

This Guide will walk you through everything you need to do to take an old AppleTV and turn it into a totally silent, network media player running XBMC using Sam’s Crystalbuntu image.

What you need:

An apple TV (Original First Generation, not the new “black” ATV2)
a USB Key (4GB or 8GB recommended)
I use a cheap Kingston DataTraveler 4GB
A Broadcom CrystalHD BCM70015 card
NOT the BCM70012. It will work, but not as well… Trust me, I have both…
Media files shared on the network
I use a Synology DS110j NAS device with a 2TB drive

What Next? Go on to Part 2 – Configure the Thumbdrive

  • http://www.facebook.com/profile.php?id=552247596 Matty Winter

    Hey, thankyou for such an excellent guide..have followed it to the letter.  However I’m having an absolute nightmare setting up my samba shares!!! Works fine using just atv, no connection issues, but running through crystalbuntu I get an error 2 message. I have googled and I have checked forums but nothing. Please please have you any advice??

    Matt

    • http://www.quixventure.com/ Mark (QuixVenture)

      Hi Matt –

      What kind of NAS are you using? Crystalbuntu out of the box works very well with SMB shares. Have you tried to use the IP address as the share path?

      Also – Reset all the permissions on your files to be sure it’s nothign like that. Linux is very particular about permissions.

      And finally – Make sure another windows computer is turned on while connecting the first time… It’s possible that no master browser is out there to give the ATV a correct path name.

    • Lukas NmD

      What Mark said can solve this but if it cant, just use FTP protocols, or add a UPNP software on server, like Serviio. =D

  • http://www.facebook.com/david.bond.7545708 David Bond

    Hi,
    I’ve followed your instructions and found crystalbuntu to run beautifully.  One drawback I’ve found is that I can’t seem to re-size the partition on the thumb-drive larger than the 4Gig.  The initial image seems to make 3 partitions that are seemingly non-modifiable.  I have tried both Apple’s partition software and GParted to no avail.   I have a 16Gig thumb-drive and would like to use all of it.  The library takes up too much room on the standard level of 4Gig.  Any suggestions?
    -Dave

    • Lukas NmD

      Plug it on a windows machine, thats how I know, go to my computer, right clik> manager> disk manager> go to your flashdrive on bottom and select all volume one by one and right click then delete volume, BE SURE it is the flash drive. IT WILL WIPE OUT the flash drive, after all this you will need to re-format your flash drive.

  • Tyler Harpool

    I’m going to report back after about 9 months of use after following this tutorial.I installed the CrystalHD BCM70015 and everything worked very well. One thing that I want to note; however, is the removing of the harddrive and fan. The author is absolutely correct that it will not have any negative consequences in terms of heat; however, I do believe that their is a negative when it comes to performance of XBMC as flash drives are not as fast as the built in 5400 RPM drive. With that said, all install medias of OPENELEC and Crystalbuntu support both installing from the USB or to the HD. If I hadn’t donated my HD to someone else, I may have opted to leave the harddrive in and the fan. Anyway, I’m still very happy and this guide is well worth it to anybody thinking of upgrading their Apple TV 1 into a solid 1080p beast.

  • http://profiles.google.com/markosjal Mark DM

    I wanted to add that as for NAS boxes I have three NAS boxes here currently all are on a 100Mbps LAN . The oldest Is an Amit Based Airlink 101 ANAS350 (IDE/SATA) with a 1.5 TB SATA drive . I can also hang USB disks off this NAS. The second is an older A Tec Subsystem, Inc NAS with Gigaboth Ethernet ( I have no gigabit), and can hang USB disks off this NAS too , and the third being a WD 2TB which supports multu protocols NFS, SMB and AFP (No USB ports)

    Of the three NASs the ANAS 350 although the slowest is the NAS of choice. It has no issues with passwords on xbmc and I have streamed 1 HD and 1 SD stream simultaneously without issues. Occasionally it seems to not respond in time to make xbmc happy but clicking a second time solves the problem . The A-Tech has issues with logging in from some devices including XBMC. I must use the A tech with no passwords. The WD is the newest and I like the multi protocols but seem to have trouble mapping password protected NFS shares on xbmc so I use Samba . It is the only one that I can not hang USB disk off of but is probably the fastest of the three. Being the fastest is not my primary criteria.

    They all have what seems to be half-baked UPNP media servers that have varying issues . The biggest annoyance of the upnp servers is they do not seem to recognize DVD rips in video_ts and audio_ts folders. Clearly SMB is the de facto standard like it or not and the winner in overall compatibility.

Search Our Site

Google Ad

(c) 2012 QuixVenture.com - Web Design by Cales.ca
  • Home
  • Articles & Guides
  • What’s New
  • Crystalbuntu How-to
  • Coffee!
  • About Us
  • Contact Us