Hi everyone, I decided to redo my HTPC using all open source software. For this I chose
XBMC again and
Ubuntu Linux. The version out at the time of writing this is version 11 and I will be utilizing some of the repositories from previous versions for compatibility with
XBMC.
Doing the install
Well let's get started.
First off you'll need to download a copy of
Ubuntu and burn it to a CD. I'll assume since you are reading this you know how to burn an .iso file. If not, do a quick google search for some help.
Next up you are going to install
Ubuntu from the CD you just burned. It's a very simple straight forward install. You can choose to do an install along side an existing OS, such as MS-Windows or you can do a clean install taking up the whole drive. Either choice will work out fine.
You'll be prompted to enter in some credentials and it will ask you about your startup screen. Select the option to automatically login, it'll save some hassles down the road.
Once you've got it all installed you are going to need to install some extra drivers. For the bulk of HTPC systems out there it's best off to run either an Nvidia or ATI chipset. There are extra drivers for each. You may be prompted to do it, if not head to the system menu and choose aditional drivers, enter your password and they will install. Once they have finished, reboot your system.
Now the easy part is done it's time to get rolling on setting up all the nitty gritty HTPC bits and pieces.
Here are the steps I've compiled from my install.
Open a terminal or console
$sudo su
Enter your admin or user pass depending on the type of install you did
$passwd
Enter in new password info.
Now you won't need to enter sudo for every command like you see in a lot of tutorials, just su to enter super user mode and work from that, when done exit back to your user account.
Network Access
If you are like me and you have a file server with all your information on network shares you'll want to mount your network shares automatically when the system reboots. We are going to install smbfs using the apt-get command and then have everything auto mount.
$apt-get install smbfs
Now create a point to mount the shares. For this I've chosen to create a mount directory off the root. You can use the exiting /mnt or /media if you like as well.
$su
$mkdir /mount
$mkdir /mount/tv
etc…
Now let's automount the shares in the file system table.
$su
$vi /etc/fstab
Go to the last line and type "o" to insert under the current line.
Paste this information in and adjust it for your variables
#mounting smb shares
//ip address/Movies /mount/movies cifs username=
,password= 0 0
When you are done hit ESC and then wq to write and quit back to the command prompt.
Now you can do one of two things, reboot the systems to see if they mount on boot or you can use the following command to reload the file system table.
$mount -a
$cd /mount/movies
$ls
Now if you see all of the files listed in your network share, in this case all my movies, you are successful. If you get an error from the mount command copy it into google and you'll get your fixit results. Most errors I've had have been typos, so you might want to check for signs of hotdog fingers in the fstab.
Installing the frontend
Now we are going to install the repositories and the
XBMC software.
Here we are going to add in the
XBMC maverick and natty ppa's. Maverick and Natty being different releases of Ubuntu.
$su
$vi /etc/apt/sources.list
Go to the end of the file.
Hit "o" to open a new line under the current one.
Paste in these lines.
deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu maverick main
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu maverick main
deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu natty main
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu natty main
Hit ESC and then wq to write and quit the file.
Now we are going to refresh the apt repositories.
$apt-get update
$apt-get install python-software-properties pkg-config
$apt-get update
$apt-get install xbmc xbmc-standalone
Say yes to install any dependencies that come up.
That is all there is to it. To launch
XBMC type it in the terminal, alternatively you can right click on the desktop and choose to make a new launcher, under the command just enter in xbmc. For me it had even gave me the icon for the program. Bonus.
In my next installment I will show you how to tinker and setup XBMC and how to add in those network shares we created earlier. I'll also show you how to have the system automatically boot XBMC and how to change the startup window and how to setup a network share in case you download files on one machine and want to store them on your HTPC system.
Cheers,
-Colin