Update XBMC-Live to pre-Eden (nightlies)
So I have been running XBMC-Live now for a number of years and am loving the ability to be able to boot my HTPC within 30 seconds and be able to stream my media via my Storage Server (OpenIndiana). Lately I have posted about a few of the newer features which have only been available in the nightlies but unfortunately the XBMC-Live trunk has not had an update for quite some time via the official and stable repositories so I have not been able to experience the DTS-HD audio on some of my newer movies and AirPlay that makes it a lot easier to control my music while in another room of my house.
While browsing around the XBMC forums I came across a post that covered just what I was after, updating XBMC-Live to the latest bleeding edge release. In the interest of testing and updating of my system I have streamlined a bit of the code to make things a bit quicker for first time updater’s.
Firstly we have two choices of ways to update our system we can either connect directly to the console of the system by pressing Ctrl+Alt+F2 or we can remotely connect to the machine with XBMC-Live by SSH, I prefer to use PuTTY or Terminal via Ubuntu. Once we have access to the system we need to login, the defaults for the XBMC-Live builds are xbmc/xbmc. Once we have logged in and been presented with the prompt we can start the upgrade process.
NOTE: We will be using unstable builds of XMBC which may cause your system to stop responding or even worse booting. These steps are only recommended for XBMC-Live computers that are based on Ubuntu. I will not be held responsible for any changes you make while following the below steps to update your system. You have been WARNED!
Now that we have logged into the console of the XBMC-Live machine we need to perform a few maintenance commands to ensure we have all the up-to-date components, if prompted for the password it should be xbmc unless it has been previously changed:
sudo apt-get install python-software-properties -y
Now that we have the latest python software installed we need to add the XBMC unstable builds repository:
sudo add-apt-repository ppa:team-xbmc/unstable
UPDATE: You can even try a different repo as I have noticed the Official XBMC repo is a bit behind at times, see this one below, it is ok to have both the official and below repo, as the latest XBMC build will be installed regardless.
sudo add-apt-repository ppa:mario-sitz/ppa
In order to get the latest XBMC builds we need to refresh the repository and install the latest XBMC build, this can be done with the following command:
sudo apt-get update && sudo apt-get install xbmc xbmc-bin
Ok we are almost done, you will most likely see that many of the previous XBMC software packages will be removed, this includes the Live package which allowed for the auto starting of XBMC when the machine is powered on. Theres no need to worry as thanks to a forum member we have a nice autostart script which will help us get around this issue. Enter the below command to create the script file:
sudo nano /etc/init/xbmc.conf
Now we need to paste or type in the below code:
description "Autostart XBMC"
start on (filesystem and stopped udevtrigger)
stop on runlevel 
exec /bin/su xbmc -c "/usr/bin/startx /etc/X11/Xsession /usr/bin/xbmc-standalone"
UPDATE: If you are using a different keyboard layout the quotes may be incorrect, so when copying the above code make sure that you retype the quotes, just in case🙂 Thanks go to Jan for this.
When you have finished the above press Ctrl + X then press Y to save the file to the system. If you have for any reason changed the username on your XBMC-Live machine then you will need to rename the username above (exec /bin/su -c …) in the script to reflect your username. Generally most XBMC-Live machines will just have the username as xbmc as shown above.
Congratulations you are now running the latest nightly build of XBMC on your XBMC-Live machine. It is recommended that you reboot your machine now.
For all future updates to your machine you will just need to issue the below command via the console:
sudo apt-get update && sudo apt-get upgrade
Thanks go to the forum members The-Boxhead, hudo, BurningSky and darkscout. Original post can be found here.