Friday, September 9, 2011

Install Humble Bundle on XBMC Live

I recently purchased the latest Humble Bundle and wanted to get the games working with my XBMC Live setup.  I have put together this guide for setting up Humble Bundle 3 games with your XBMC Live setup.  This guide assumes you are using the install files provided as part of Humble Bundle but should work equally well for files downloaded directly from the game website.

I haven't finished writing guides for all games yet but I will add them to this post as they are published:

Install Revenge of the Titans in XBMC Live

Install Steel Storm in XBMC Live

Install Braid in XBMC Live

Install And Yet It Moves in XBMC Live

Install Osmos in XBMC Live


Have Fun!

Install And Yet It Moves on XBMC Live

I recently purchased the Humble Bundle 3 and have been setting up the games to run on my XBMC Live Box.  Here is a short guide to installing And Yet It Moves on XBMC Live.

Step 1 - get the .deb file
Download the deb file from the Humble Bundle website.  You will need to transfer the deb file to the home folder on your XBMC Live box, my guide to using FileZilla to copy files to XBMC Live.

Step 2 - install the game
Open a terminal, see 3 ways to access the terminal on your XBMC Live box,  and enter the following.

sudo apt-get install libtheora0 libopenal1
sudo dpkg -i andyetitmoves_1.2.1_i386.deb

Step 3 - create launcher script
There are 2 ways to do this the command line way or the GUI way

The command line way:

mkdir scripts

cd scripts

nano andyetitmoves.sh

now paste in this:
#!/bin/bash
fluxbox &
/usr/games/AndYetItMoves
killall -9 fluxbox


Now press Ctrl+X and then Y to save and exit

chmod +x andyetitmoves.sh

The GUI way:
Using FileZilla create a folder called "scripts" in the home folder on your XBMC Box.

Download this file and copy it to the "scripts" folder.



Give the file execute permissions, first right click and then select "File Permissions".  Check all the "execute" checkboxes and hit ok.



Step 4 - Add shortcut to launcher
Now you just need to set up a shortcut to the game launcher script in the XBMC Launcher Addon.  Follow my guide to Add a Shortcut to Launcher Add-on in XBMC to create a shortcut for the new script file.

Step 5 - Fix profile saving bug
There is a bug in the config file of the And Yet It Moves installer so that your profile and settings will not be saved, to fix the problem do the following:


edit this file

~/.Broken Rules/And Yet It Moves/common/commonConfig.xml

and change "Company"  tag from "Broken Rules" to ".Broken Rules"

source ivl @ http://andyetitmoves.net


And that's it, you can now launch the game by going "Programs" -> "Launcher".

Install Osmos on XBMC Live

I recently purchased the Humble Bundle 3 and have been setting up the games to run on my XBMC Live Box.  Here is a short guide to installing Osmos on XBMC Live.


Step 1 - get the .deb file
Download the deb file from the Humble Bundle website.  You will need to transfer the deb file to the home folder on your XBMC Live box, my guide to using FileZilla to copy files to XBMC Live.

Step 2 - install the game
Open a terminal, see 3 ways to access the terminal on your XBMC Live box,  and enter the following.

sudo dpkg -i Osmos_1.6.1.deb

Step 3 - create launcher script
There are 2 ways to do this the command line way or the GUI way

The command line way:

mkdir scripts

cd scripts

nano osmos.sh

now paste in this:


#!/bin/bash
fluxbox &
/opt/Osmos/Osmos
killall -9 fluxbox

Now press Ctrl+X and then Y to save and exit

chmod +x osmos.sh

The GUI way:
Using FileZilla create a folder called "scripts" in the home folder on your XBMC Box.

Download this file and copy it to the "scripts" folder.



Give the file execute permissions, first right click and then select "File Permissions".  Check all the "execute" checkboxes and hit ok.



Step 4 - Add shortcut to launcher
Now you just need to set up a shortcut to the game launcher script in the XBMC Launcher Addon.  Follow my guide to Add a Shortcut to Launcher Add-on in XBMC to create a shortcut for the new script file.

And that's it, you can now launch the game by going "Programs" -> "Launcher".

Install Steel Storm on XBMC Live

I recently purchased the Humble Bundle 3 and have been setting up the games to run on my XBMC Live Box.  Here is a short guide to installing Steel Storm on XBMC Live.


Step 1 - get the .deb file
Download the deb file from the Humble Bundle website.  You will need to transfer the deb file to the home folder on your XBMC Live box, my guide to using FileZilla to copy files to XBMC Live.

Step 2 - install the game
Open a terminal, see 3 ways to access the terminal on your XBMC Live box,  and enter the following.

sudo apt-get install libsdl-net1.2
sudo dpkg -i steel-storm-burning-retribution_2.00.02818_i386.deb

Step 3 - create launcher script
There are 2 ways to do this the command line way or the GUI way

The command line way:

mkdir scripts

cd scripts

nano steel-storm.sh

now paste in this:

#!/bin/bash
fluxbox &
/opt/steelstorm/steelstorm -basedir /opt/steelstorm
killall -9 fluxbox

Now press Ctrl+X and then Y to save and exit

chmod +x steel-storm.sh

The GUI way:
Using FileZilla create a folder called "scripts" in the home folder on your XBMC Box.

Download this file and copy it to the "scripts" folder.



Give the file execute permissions, first right click and then select "File Permissions".  Check all the "execute" checkboxes and hit ok.



Step 4 - Add shortcut to launcher
Now you just need to set up a shortcut to the game launcher script in the XBMC Launcher Addon.  Follow my guide to Add a Shortcut to Launcher Add-on in XBMC to create a shortcut for the new script file.

And that's it, you can now launch the game by going "Programs" -> "Launcher".

Installing Braid on XBMC Live

I recently purchased the Humble Bundle 3 and have been setting up the games to run on my XBMC Live Box.  Here is a short guide to installing Braid on XBMC Live.


Step 1 - get the .deb file
Download the deb file from the Humble Bundle website.  You will need to transfer the deb file to the home folder on your XBMC Live box, my guide to using FileZilla to copy files to XBMC Live.

Step 2 - install the game
Open a terminal, see 3 ways to access the terminal on your XBMC Live box,  and enter the following.

sudo apt-get install nvidia-cg-toolkit


sudo dpkg -i braid_1.0.0-0ubuntu2_i386.deb

Step 3 - create launcher script
There are 2 ways to do this the command line way or the GUI way

The command line way:

mkdir scripts

cd scripts

nano braid.sh

now paste in this:


#!/bin/bash
fluxbox &
/opt/braid/braid
killall -9 fluxbox

Now press Ctrl+X and then Y to save and exit

chmod +x braid.sh

The GUI way:
Using FileZilla create a folder called "scripts" in the home folder on your XBMC Box.

Download this file and copy it to the "scripts" folder.



Give the file execute permissions, first right click and then select "File Permissions".  Check all the "execute" checkboxes and hit ok.



Step 4 - Add shortcut to launcher
Now you just need to set up a shortcut to the game launcher script in the XBMC Launcher Addon.  Follow my guide to Add a Shortcut to Launcher Add-on in XBMC to create a shortcut for the new script file.

And that's it, you can now launch the game by going "Programs" -> "Launcher".

Installing Revenge Of the Titans on XBMC Live

I recently purchased the Humble Bundle 3 and have been setting up the games to run on my XBMC Live Box.  Here is a short guide to installing Revenge of the Titans on XBMC Live.


Step 1 - install Java
First follow my guide to installing Java on XBMC Live.

Step 2 - get the .deb file
Download the deb file from the Humble Bundle website.  You will need to transfer the deb file to the home folder on your XBMC Live box, my guide to using FileZilla to copy files to XBMC Live.

Step 3 - install the game
Open a terminal, see 3 ways to access the terminal on your XBMC Live box,  and enter the following.

sudo dpkg -i  RevengeOfTheTitans-HIB-18012-i386.deb

Step 4 - create launcher script
There are 2 ways to do this the command line way or the GUI way

The command line way:

mkdir scripts

cd scripts

nano revenge_of_the_titans.sh

now paste in this:

#!/bin/bash
fluxbox &
/opt/revengeofthetitans/revenge.sh
killall -9 fluxbox

Now press Ctrl+X and then Y to save and exit

chmod +x revenge_of_the_titans.sh


The GUI way:
Using FileZilla create a folder called "scripts" in the home folder on your XBMC Box.

Download this file and copy it to the "scripts" folder.



Give the file execute permissions, first right click and then select "File Permissions".  Check all the "execute" checkboxes and hit ok.



Step 5 - Add shortcut to launcher
Now you just need to set up a shortcut to the game launcher script in the XBMC Launcher Addon.  Follow my guide to Add a Shortcut to Launcher Add-on in XBMC to create a shortcut for the new script file.

And that's it, you can now launch the game by going "Programs" -> "Launcher".

Add a Shortcut to Launcher Add-on in XBMC

This is a short guide on installing and adding a shortcut to the XBMC Launcher Add-on.  It is part of a series I am doing on installing Humble Bundle 3 on XBMC Live.

Installing Launcher Add-on
Go to "Settings" -> "Add-ons"


Now select "Program Add Ons"


Select Launcher and choose "Install"


Adding a Shortcut
Start the Launcher Add-on from the "Programs" menu, if it is the first time you have run it you will be prompted to add a shortcut straight away.  Otherwise click on one of the existing menu items and select "Add New Launcher"


Choose "Stand Alone(Normal PC Executable)"

Select the location of the script file


Now just leave the script arguments blank and give the shortcut a sensible name.

And that's it you can now launch you script from the Launcher menu.

3 ways to access the terminal on your XBMC Live box

There are a bunch of cool things that you can do with your XBMC Live install like set up games or install a browser but to do this you're going to need to get your hands dirty with a little command line work.  Don't worry though it's super easy so here are three ways you can access the terminal on your XBMC Live box.

1 - SSH
This is my preferred method as it can be done remotely and I can access XBMC Live on my laptop from the comfort of the couch.  Obviously your XBMC box will need to be connected to your network for this to work, you will also need the IP address of you XBMC box.  If you don't already know the IP address of you XBMC box you can find it under Settings->System Info->Summary

If you are in Linux or OSX open a Terminal and type:

ssh <xbmc live user>@<xbmc IP address>

Enter you password when prompted and that's it you're in.

*NOTE: if you did not do a HDD install of XBMC Live and are running it off a memory stick use the default XBMC Live credentials.
Username: xbmc
Password: xbmc

2 - Terminal
This is probably the easiest one to access.  Simply select "Exit" from the shutdown menu and you will drop into a Linux terminal.  Enter your XBMC Live username and password to login.

3 - Fluxbox
If you prefer a GUI you can also access Terminal emulators through Fluxbox which comes with the default install of XBMC Live.  To do this follow the steps outlined above(section 2) to access the terminal and after logging in type:

startx

and hit enter this will bring up the Fluxbox desktop.

Right click anywhere on the Fluxbox desktop to bring up the main menu the select:

Applications->Terminal Emulators->XTerm

If you found this helpful you might also like my guide to accessing files on XBMC Live.

Thursday, September 8, 2011

Copy Files to XBMC Live with sFTP and FileZilla

Here is a quick guide to connecting to XBMC Live via sFTP using FileZilla.  This will enable you to copy files to and from your XBMC Live installation.  By default XBMC Live installs an SSH server so you don't need to do any configuration on the actual XBMC box.

First you need to install FileZilla, if you are on Ubuntu just search for it in the Software Center or if you are using OSX or Windows you can download it here.

Next you need the IP address of your XBMC box, you can find this out by going to Settings->System Info->Summary



Now you have the IP address of your XBMC box open FileZilla and enter the following settings:

Host: your XBMC box IP address
Username: the username you chose during XBMC installation
Password: the password you chose during XBMC installation
Port: 22



*NOTE: if you did not do a HDD install of XBMC Live and are running it off a memory stick use the default XBMC Live credentials.
Username: xbmc
Password: xbmc

You can now easily copy files to and from you XBMC Live box.

Tuesday, September 6, 2011

Install Java(JRE) on XBMC Live

I had some trouble getting the Sun Java 6 JRE running on my new XBMC Live 10.1 Dharma installation so I figured I would write it down for anyone else having similar problems.  Here are the steps to get java up and running.

First drop into a command line or SSH into your XBMC HTPC.  To do this you can go to the shutdown menu and select the "Exit" option or follow my "3 ways to access the terminal on your XBMC Live box" guide.  You then need to log in with your XBMC Live username and password that you set up during installation.  Now you're at the terminal just enter the following:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

 sudo apt-get update

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts java-common sun-java6-bin unixodbc odbcinst1debian1 odbcinst


and that's it, have fun!

BTW: just out of interest what are you installing java for on XBMC Live for?  I was doing it to get some humble bundle games working but I'm interested in what other people are doing with their setup so leave a comment if you found this useful.