Tuesday, February 11, 2014

Install LAMP in Ubuntu 13.10 Saucy(Apache, MySQL, PHP)

This is a short guide to installing a basic LAMP(Linux, Apache, MySQL, PHP) development environment on Ubuntu 13.10 Saucy Salamander.  There are a few differences with the installation on 13.10 compared to previous versions due to the newer version of PHP and Apache in the official repositories.

First install lamp:
Open a terminal and run the following:

sudo apt-get install lamp-server^

After the lamp server installation you will need write permissions to the /var/www directory.  Follow these steps to configure permissions.

Add your user to the www-data group

sudo usermod -a -G www-data <your user name>

now add the /var/www folder to the www-data group

sudo chgrp -R www-data /var/www

now give write permissions to the www-data group

sudo chmod -R g+w /var/www

NOTE: these changes will not be seen in nautilus until you log out and log back in again.

Some extra things to install
The following are not essential but they are things I almost always need as part of a LAMP install so I have included instructions on installing them.

json_encode
You will almost certainly want the json_encode function in PHP which no longer comes installed by default.  To install it run the following command:

sudo apt-get install php5-json

Curl:

sudo apt-get install php5-curl

Mod rewrite:

sudo a2enmod rewrite

To enable mod rewrite you also need to do some apache configuration:

sudo gedit /etc/apache2/sites-available/000-default.conf

add the following to the file below the DocumentRoot option:

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

sudo /etc/init.d/apache2 restart

GD2 Graphics Lib:

sudo apt-get install php5-gd

Turn on error messages
If you are setting up a dev environment then you will want to turn on error messages too. To do this run the following:

sudo gedit /etc/php5/apache2/php.ini

then find the line that looks like this(around line 480):

display_errors = Off

and change it to

display_errors = On

There are a bunch of other error reporting variables you can turn on in the php.ini file for development purposes, they are well commented so just turn on any that you think will be useful.

I also highly recommend making the same changes to the php.ini file that is used when running php scripts from the command line(this includes cron jobs), just run the following command to open it and make the same changes you did above.

sudo gedit /etc/php5/cli/php.ini

You will need to restart Apache for the changes to take effect.

sudo /etc/init.d/apache2 restart

And that's it, have fun!

Sunday, September 8, 2013

Install CyanogenMod(CM) 10.1 on Nexus 7 using Ubuntu

I recently wanted to install CyanogenMod(CM) 10.1 on my 1st Gen Wifi Nexus 7 and decided to roll all the steps into a simple to use script.  This script has been tested on Ubuntu 12.04 and Ubuntu 13.04 on a 1st Gen Nexus 7 running stock Android 4.2.2.  It will factory reset your device so make sure you back up anything you want to keep(you will be prompted before the factory reset).    As a bonus installing CM10.1 also roots your Nexus 7 too.

The script provides step by step prompts to do the following:
  • Install ADB if not present
  • Install Fastboot
  • Unlock bootloader
  • Install ClockworkMod Recovery
  • Backup your existing ROM
  • Install CM10.1
  • Install Google apps

To run the script simply open a terminal and run the following command(in a directory you have write access to):

 wget http://ubuntuone.com/5422gu14eWnrRkiu7uNfOx -O nexus7_cm_install.sh && chmod +x nexus7_cm_install.sh && ./nexus7_cm_install.sh

Now just follow the prompts to complete the install.

NOTE: I found my Nexus 7 was running really laggy after a few months and it turned out that the problem was a bug in Android 4.2.2.  Running an app called LagFix made heaps of difference and cleared up all my lag issues, so if you're experiencing a similar problem give it a try.

Saturday, April 13, 2013

Step by step guide to installing CM 10.1 on HTC One X using Ubuntu

While I think the HTC One X is a great bit of hardware I find HTC's changes to Android a little annoying.  I use Nexus devices for my day to day use and find the more pure Android implementation provided by Google much better and generally more attractive than the HTC version.  Fortunately you can use CyanogenMod to get an experience much closer to Android the way Google intended it.  In this guide I will be installing CyanogenMod 10.1 which is based on Android 4.2.2(the latest version at the time of writing).

DISCLAIMER: as usual with all these types of guides it may void the warranty and I am not responsible for any damage you may cause to your phone.  I tested this with Ubuntu Gnome 13.04 and a UK O2 HTC One X with Android 4.1.1.  This process is going to wipe all the data off your phone so make sure everything important is synced and backed up first.

The following is a step by step guide to installing CyanogenMod on your HTC One X using Ubuntu Gnome 13.04.  It should work for other versions of Ubuntu also but I have only tested it in 13.04.  This guide assumes you have a totally unmodified HTC One X, if you have already completed some of the steps previously, ie: unlocking the boot loader or rooting just skip those steps.


Step 1 -Unlocking the bootloader

First you need to install adb and fastboot.

If you are using an Ubuntu version lower than 12.10 then use the instructions here
http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html

If you are using Ubuntu 12.10 or above then just run the following at the terminal:

sudo apt-get install android-tools-adb

sudo apt-get install android-tools-fastboot

Fortunately HTC have made it really easy to unlock the bootloader on the One X.  The instructions on the HTC website are mainly based around using Windows  so I will detail exactly what I did for Ubuntu.  Simply follow this link and follow the instructions but refer back to here when the instructions are Windows specific.

NOTE:  at the time of writing the HTC One X is not in the devices dropdown so just select "All Other Supported Models".  You will also need to sign up for a HTC Developer account if you don't already have one.

You will need to follow the directions on page 1 of the "Unlocking Bootloader Instructions" but step 2 is only relevant to Windows so you can just skip straight to Step 3.

On step 3 you need to get the identifier token by entering the following at the terminal:

sudo fastboot oem get_identifier_token

The example given on the HTC site is for Windows but you essentially do the same thing for Ubuntu, just copy the text as shown in the screenshots and paste it into the form at the bottom of the page.

After submitting your identifier token you will be sent an email with further instructions on unlocking your bootloader and a attachment named Unlock_code.bin.  Download the Unlock_code.bin attachment and then open a terminal and change to the directory that you placed the downloaded file in.

Run the following command in the terminal:

sudo fastboot flash unlocktoken Unlock_code.bin

Step 2 - Install ClockworkModRecovery

Download the img file for your HTC One X Variant from here:
http://clockworkmod.com/rommanager

Boot into fast boot by first turning off your device and then turning it on by holding the power and volume down buttons together.  Then use the volume buttons to move up and down and the power button to select "FASTBOOT" and then connect the USB cable.

Then in the terminal run the following command:

sudo fastboot flash recovery recovery-clockwork-touch-5.8.4.0-endeavoru.img

NOTE: the version number in the file name may be slightly different to my example above so adjust accordingly.

Now select "POWER DOWN" from the fastboot menu and disconnect your device from the USB cable.

At this point I strongly recommend making a backup of your current installation, to do this boot back into the fastboot menu(by holding power and volume down to turn the device on).  Then use the volume buttons to navigate to "RECOVERY" in the menu and then press power to select it.  Your device will now load the ClockworkMod Recovery menu.  Select "backup and restore" from the menu and then select "backup".  Once the backup has finished reboot the phone and connect it to your USB cable and open your phone storage in your file manager.  The backup should be located in the the "clockworkmod" folder, copy the backup to your computer so that you can do a restore if anything goes wrong.

Step 3 - Install CyanogenMod

Now download the latest CyanogenMod 10.1 nightly for the One X from here:
http://download.cyanogenmod.org/?device=endeavoru&type=nightly

and the latest Google Apps zip from here:
http://wiki.cyanogenmod.org/w/Gapps

Extract the file boot.img from the CyanogenMod zip file by running the following command:

unzip -p cm-10.1-*-NIGHTLY-endeavoru.zip boot.img >boot.img

Turn your device on and once it has booted connect the USB cable.

Copy the CyanogenMod zip file and the Google Apps zip file to the internal storage on the phone(I put them in the Download folder) then power off the device.

Now boot your phone into fastboot mode by holding power and volume down at the same time and selecting "FASTBOOT" from the menu and then connect your phone to the USB cable.

Flash the new boot image by running the following command in your terminal:

sudo fastboot flash boot boot.img

Once the command has run select "HBOOT" to return to the main menu.

Select "RECOVERY"

Select "wipe data/factory reset" and confirm

Select "install zip from sdcard"

Select "choose zip from sdcard" and then choose the CM nightly zip and then confirm that you want to install it.


Select "choose zip from sdcard" again but this time choose the Google Apps zip file and confirm.

Navigate back to the main menu and select "reboot system now".

The first boot after the CyanogenMod install will take a little longer than usual so give it a few minutes to boot up.  After that you should see all the first run Android stuff like adding your Gmail account etc.

I hope this helps, I struggled to find a concise step by step guide for doing this on Ubuntu so I figured I would document the process for the benefit of all.

Sources:
http://reviews.cnet.co.uk/mobile-phones/how-to-root-the-htc-one-x-50010022/
http://www.android.gs/update-htc-one-x-to-android-4-2-2-jelly-bean-cm-10-1-nightly-rom/
http://www.ibtimes.co.uk/articles/414645/20121213/install-android42-jellybean-htc-onex-cyanogenmod10-cm10.htm



Friday, April 12, 2013

Create New Document context menu item missing in Nautilus 3.6.3

I recently installed the new Ubuntu Gnome 13.04 which comes with Nautilus(Files) 3.6.3.  While I am loving Ubuntu Gnome one annoying thing missing from Nautilus(Files) is the ability to right click and create a blank file(previously called "Create New Document" in the context menu) .  It was decided that this feature would be removed in the newer versions of Nautilus which seems like a strange feature to remove to me as it is incredibly useful.

If you would like to add the option back in you simply need to run the following command at the Terminal:

touch ~/Templates/Text\ File.txt

NOTE: you can add other types of files to the templates folder and they will also appear n the context menu.

Sunday, April 7, 2013

Install LAMP in Ubuntu 13.04 Raring(Apache, MySQL, PHP)


This is a short guide to installing a basic LAMP(Linux, Apache, MySQL, PHP) development environment on Ubuntu 13.04 Raring Ringtail.

First install lamp:
Open a terminal and run the following:

sudo apt-get install lamp-server^

After the lamp server installation you will need write permissions to the /var/www directory.  Follow these steps to configure permissions.

Add your user to the www-data group

sudo usermod -a -G www-data <your user name>

now add the /var/www folder to the www-data group

sudo chgrp -R www-data /var/www

now give write permissions to the www-data group

sudo chmod -R g+w /var/www

now log out and log back in to see the changes reflected in nautilus.

Some extra things to install
The following are not essential but they are things I almost always need as part of a LAMP install so I have included instructions on installing them.

Curl:

sudo apt-get install php5-curl

Mod rewrite:

sudo a2enmod rewrite

To enable mod rewrite you also need to do some apache configuration:

sudo gedit /etc/apache2/sites-available/default

and change AllowOverride from None to All:

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

sudo /etc/init.d/apache2 restart

GD2 Graphics Lib:

sudo apt-get install php5-gd

Turn on error messages
If you are setting up a dev environment then you will want to turn on error messages too. To do this run the following:

sudo gedit /etc/php5/apache2/php.ini

then find the line that looks like this(around line 480):

display_errors = Off

and change it to

display_errors = On

There are a bunch of other error reporting variables you can turn on in the php.ini file for development purposes, they are well commented so just turn on any that you think will be useful.

I also highly recommend making the same changes to the php.ini file that is used when running php scripts from the command line(this includes cron jobs), just run the following command to open it and make the same changes you did above.

sudo gedit /etc/php5/cli/php.ini

And that's it, how easy was that?  Ubuntu rocks!

Saturday, April 6, 2013

Can't install Chrome on Ubuntu 13.04

Having just installed the Ubuntu Gnome 13.04 Beta 2 one of the first things I went to do was install Google Chrome.  Unfortunately after opening the chrome deb file in the software center I was greeted with the following message:

Dependency is not satisfiable: libudev0(>=147)

libudev0 has been removed from the 13.04 repositories so until a patch is issued for Chrome you will need to download and install the deb files before installing Chrome.  I imagine that there will be a patch issued for Chrome very soon but in the meantime choose the appropriate file below and install it and then try installing Chrome again.

for 32 bit:

http://launchpadlibrarian.net/132294322/libudev0_175-0ubuntu19_i386.deb

for 64 bit:
http://launchpadlibrarian.net/132294155/libudev0_175-0ubuntu19_amd64.deb


Thursday, March 21, 2013

XBMC Remote for iPhone and Android

It's been a while since I posted an article and that's because I have been busy working on my pet project - a jQuery Mobile based web remote for XBMC for use on your phone, tablet and desktop.  It is currently in BETA but I am aiming to get it into the official XBMC repositories when I am happy that it is bug free.  I have been using it myself for a while and it's very usable and stable and is at the point where I am happy to release it to the public.  If you experience any bugs /problems or have suggestions please let me know.

You can download and install the BETA version from the wiki here

Or view screenshots of the app in action here

NOTE: it is only currently compatible with the latest "Frodo" version of XBMC(sorry supporting older versions was just too much work)

Here are a few screenshots to give you an idea of what it looks like:




Monday, January 21, 2013

TvHeadend PVR Stops working in XBMCBuntu Frodo RC3

I Recently upgraded my media centre from XBMCBuntu Frodo RC2 to RC3 and it broke my pvr support.  I am using tvheadend for my PVR backend and it mysteriously stopped working after the update.

The XBMC team have moved the location of the PVR backends so it is now necessary on XBMCBunut and Ubuntu to install the specific PVR backend package for xbmc.

To install TVheadend manualy simply run the following at the terminal:

 sudo apt-get install xbmc-pvr-tvheadend-hts

and that's it, your PVR should be working again now.
NOTE: you may need to go into Settings - Add-ons - Disabled Add-ons and enable the tvheadend add-on.

Saturday, January 12, 2013

Easily root Asus TF101 Transformer using Ubuntu

I couldn't find an easy "One Click" root for my Asus TF101 Transformer that worked on Ubuntu so I decided to go ahead and roll my own.  I have tried to make the installation as simple and painless as possible so you won't have to spend ages researching like I did.  The script will root your device and install Rouge XM(a ClockwordMod based recovery tool) as well as root your device and install SuperUser.  It has been tested on a B70 model of the TF101 running the ICS 9.2.1.27 build but should work for other builds and versions.  Please leave a comment detailing your experiences with other models for the convenience of other users.

As is the usual thing with all these guides I take no responsibility for any problems/damage to your device from rooting it.

The following instructions are for the command line because it's much easier than making screenshots etc. however if you want to do it the GUI way just download the zip from here, extract it and run the root_tf101.sh script.

NOTE: if you are using an Ubuntu version lower than 12.10 please follow the instructions here to install adb before running the script. http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html

To do it the command line way just enter the following at the command line and then follow the prompts.

wget http://ubuntuone.com/5xwKVscUxwgdnudw589ERd -O TF101_Root.zip

unzip TF101_Root.zip -d TF101_Root

cd TF101_Root

chmod +x root_tf101.sh

./root_tf101.sh

The script will prompt you during installation and your device will be rebooted several times, make sure you have your battery at least 80% charged before starting the process.

Sources:
http://forum.xda-developers.com/showthread.php?t=1862298
http://www.transformerforums.com/forum/asus-transformer-development/22695-tool-peri-v0-4-one-click-root-recovery-fix-bootloops-soft-bricks-all-ics-firmware.html

Thursday, November 22, 2012

Testing IE9 in Ubuntu with VirtualBox setup script

Unfortunately for web developers some people still use internet explorer(IE) which means we need a way to test our pages in it.  There is no good way to install IE9 directly in Ubuntu so the best thing to do is set up a windows virtual machine and test your pages in that.  Fortunately Microsoft provides free VHD images of windows with various versions IE for free to developers(with a 90 licence).

To make this setup easier I have created a small bash script which does all the downloading, installation and configuration for you.

The script works as follows:
1. Downloads the RARed VHD file from microsoft.com
2. Installs unrar
3. extracts the VHD file
4. Installs VirtualBox
5. Configures a new Windows VM
6. Starts the new Windows VM

You can download the script here:
http://ubuntuone.com/458mPt4YJsB9rBiHEHhwGu

Place the script in your home folder.

Give the script execute permissions:
chmod +x install_win7_IE9_VM.sh

Run the script(and kick back because it takes a while to download and extract everything):
./install_win7_IE9_VM.sh

After running the script the first time you can just run your Windows VM from the VirtualBox GUI as normal.


NOTE: the Windows password is "Password1"

Sunday, November 4, 2012

Fix Missing Menus in FileZilla in Gnome 3.6 with Ubuntu 12.10

After doing a fresh install of 12.10 Quantal on my laptop and installing Gnome 3.6(my DE of choice) I noticed the File etc. menus wee missing from FileZilla and SVN Workbench.  After a bit of googling I found a solution that works for me.

Open a terminal and enter the following:

sudo su

then:

echo "export UBUNTU_MENUPROXY=0" > /etc/X11/Xsession.d/81ubuntumenuproxy

then:

exit

Now reboot and the menus should appear as normal.

NOTE: this solution will also disable global menus in unity if you wish to undo the change run the following:

sudo rm /etc/X11/Xsession.d/81ubuntumenuproxy

Enjoy Gnome 3.6 on Ubuntu 12.10

Source: http://www.webupd8.org/2011/03/disable-appmenu-global-menu-in-ubuntu.html

Wednesday, October 17, 2012

Install LAMP in Ubuntu 12.10 Quantal(Apache, MySQL, PHP)

This is a short guide to installing a basic LAMP(Linux, Apache, MySQL, PHP) development environment on Ubuntu 12.10 Quantal Pangolin.

First install lamp:
Open a terminal and run the following:

sudo apt-get install lamp-server^

After the lamp server installation you will need write permissions to the /var/www directory.  Follow these steps to configure permissions.

Add your user to the www-data group

sudo usermod -a -G www-data <your user name>

now add the /var/www folder to the www-data group

sudo chgrp -R www-data /var/www

now give write permissions to the www-data group

sudo chmod -R g+w /var/www

now log out and log back in to see the changes reflected in nautilus.

Some extra things to install
The following are not essential but they are things I almost always need as part of a LAMP install so I have included instructions on installing them.

Curl:

sudo apt-get install php5-curl

Mod rewrite:

sudo a2enmod rewrite

To enable mod rewrite you also need to do some apache configuration:

sudo gedit /etc/apache2/sites-available/default

and change AllowOverride from None to All:

<Directory var="var" www="www">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

sudo /etc/init.d/apache2 restart

GD2 Graphics Lib:

sudo apt-get install php5-gd

And that's it, how easy was that?  Ubuntu rocks!

Thursday, August 23, 2012

Basic asp.NET dev environment in Ubuntu 12.04

I recently had to do a small example of integrating the system I am currently working on into an asp.NET application.  Not having a windows machine handy I though I would give Mono a try.  Fortunately setting up a basic dev environment was really simple.  NOTE: this is a very basic dev environment with no IDE or frameworks installed etc, it was perfect for what I needed but may not be appropriate for full blown development.

First install xsp2:

sudo apt-get install mono-xsp2

then:

mkdir -p ~/dotnet

cd dotnet

gedit Default.aspx

Then paste in the following:


<%
    HelloWorldLabel.Text = "Hello, world!";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label runat="server" id="HelloWorldLabel"></asp:Label>
    </div>
    </form>
</body>
</html>



now save the file and go back to the terminal and run:

xsp2

*Note: this must be run in the directory where you created the file.

Now open a browser and visit:
http://127.0.0.1:8080/Default.aspx

And that's it.  This is a very basic dev environment and is probably not suitable for a full blown application but it was perfect for my needs.

Sunday, July 15, 2012

IMON Soundgraph VFD/LCD with XBMCbuntu

This is a short guide to setting up the an IMON Soundgraph VFD/LCD on XBMCbuntu Eden 11.0.  XBMCbuntu is based on Ubuntu 11.10 so this guide may also work for 11.10 although I have not tried it.

Open a terminal(either via SSH or Openbox) and run the following commands:


First install LCDproc:
sudo apt-get install lcdproc

Now edit the config file:
sudo nano /etc/LCDd.conf

change line 53 from
Driver=curses
to
Driver=imon

*NOTE: in nano to go to a line press CTRL+w then CTRL+t and enter 53 and press enter after editing the file press CTRL+x then y and then ENTER to close and save the file.

The IMON driver for some reason hangs on shutdown so run the following to fix the problem:

sudo mv /etc/rc6.d/K60LCDd /etc/rc6.d/K99LCDd


sudo mv /etc/rc0.d/K60LCDd /etc/rc0.d/K99LCDd

Sunday, June 17, 2012

Upgrading to Skype 4 in Ubuntu 12.04 (from skype 2.2)

The latest version of Skype for Linux is here.  The new 4.0 version brings a number of improvements and brings the Linux Skype client up to speed with the OSX and Windows versions.  If you already have version 2.2 installed you will need to remove it before installing the latest 4.0 version.  I uninstalled my 2.2 version from the software centre but hit the following error when installing the new deb file:

trying to overwrite '/etc/dbus-1/system.d/skype.conf', which is also in package skype-bin:i386 2.2.0.35-0precise3

To get around this error just fire up a terminal and run the following commands:

sudo apt-get --purge remove skype

sudo apt-get autoremove

Then just install the latest deb file via the software centre like normal.

Note: I downloaded the Ubuntu 10.04 deb from the Skype download page(there doesn't seem to be a specific 12.04 one)

Friday, April 13, 2012

Install LAMP in Ubuntu 12.04 Precise(Apache, MySQL, PHP)

This is a short guide to installing a basic LAMP(Linux, Apache, MySQL, PHP) development environment on Ubuntu 12.04 Precise Pangolin.

First install lamp:
Open a terminal and run the following:

sudo apt-get install lamp-server^

After the lamp server installation you will need write permissions to the /var/www directory.  Follow these steps to configure permissions.

Add your user to the www-data group

sudo usermod -a -G www-data <your user name>

now add the /var/www folder to the www-data group

sudo chgrp -R www-data /var/www

now give write permissions to the www-data group

sudo chmod -R g+w /var/www

now log out and log back in to see the changes reflected in nautilus.

Some extra things to install
The following are not essential but they are things I almost always need as part of a LAMP install so I have included instructions on installing them.

Curl:

sudo apt-get install php5-curl

Mod rewrite:

sudo a2enmod rewrite

GD2 Graphics Lib:

sudo apt-get install php5-gd


And that's it, how easy was that?  Ubuntu rocks!

Sunday, April 1, 2012

Install MySQL Workbench on Ubuntu 12.04

Currently there is no pre-built .deb file or repo available to install MySQL Workbench on Ubuntu 12.04.  One will probably appear soon after official release of 12.04 but at the moment it is still in beta so there are a few extra steps to get it working.

NOTE: Once Ubuntu 12.04 moves out of beta there will probably be a better way of doing this so please check the official MySQL Workbench download page and the official 12.04 repos before attempting this.

First of all you will need to download the latest MySQL Workbench from here.

Next you must download a .deb file for libzip1 as it is not available in the 12.04 repos.

32 bit version - https://launchpad.net/ubuntu/+archive/primary/+files/libzip1_0.9.3-1_i386.deb
64 bit version - https://launchpad.net/ubuntu/+source/libzip/0.9.3-1/+build/1728114/+files/libzip1_0.9.3-1_amd64.deb
for other architectures go here

After downloading just open them with the software centre and click install.

*NEW: The libmysqlclient16 package was removed from the 12.04 repos so you will need to download the old deb files for it:

32 bit version - http://launchpadlibrarian.net/94563300/libmysqlclient16_5.1.58-1ubuntu5_i386.deb
64 bit version - http://launchpadlibrarian.net/94808408/libmysqlclient16_5.1.58-1ubuntu5_amd64.deb


 Next open a terminal and install the following packages:

sudo apt-get install libzip1 python-paramiko python-pysqlite2 libctemplate0 libgtkmm-2.4-1c2a libmysqlclient16

Then cd to the directory where you downloaded the deb file and run:

sudo dpkg -i mysql-workbench-gpl-5.2.38-1ubu1104-i386.deb

And that should be it, enjoy!

Instructions loosely based on those found here: http://blog.csdn.net/kevin6216/article/details/7420421




Thursday, March 29, 2012

Install Zenbound 2 on XBMCbuntu Eden


Zenbound 2 is a great little game I got as part of the latest Humble Bundle, it's surprisingly fun and a very innovative style of game play, unlike anything else I have played in fact.  Anyway i figured it would be a good game to have on my media center so here are the instructions for installing it on XBMCbuntu.

First you need to download the .deb file for Zenbound 2, once you have the .deb file you need to copy it to the home folder of your XBMCLive installation.  For instructions on this follow my guide "Copy files to XBMC with Filezilla"

Then open a terminal or SSH into your XBMCbuntu box and run the following commands:

sudo dpkg -i zenbound2_20120325-1_i386.deb

mkdir scripts

cd scripts

nano zenbound2.sh

Now copy in the following text(it's ctrl + shift + v to paste at the terminal)


#!/bin/bash
openbox &
/usr/games/zenbound2
killall -9 openbox

and save the file(ctrl + x and then y to confirm)

chmod +x zenbound2.sh

Now you need to use "Advanced Launcher" addon to create a shortcut to start Zenbound 2 from within XBMC.  Simply create a new launcher and point it as the zenbound2.sh file you created above(should be /home/xbmc/scripts/zenbound2.sh)

and that's it, have fun!



Installing And Yet It Moves in XBMCbuntu Eden

And Yet It Moves is a really fun physics indie game which I purchased as part of a Humble Bundle in 2011.  The following is a short guide to installing it on XBMCbuntu Eden, for instructions on installing it on XBMCLive Dharma check out my old guide here.

First you need to download the .deb file for And Yet It Moves, once you have the .deb file you need to copy it to the home folder of your XBMCLive installation.  For instructions on this follow my guide "Copy files to XBMC with Filezilla"

Then open a terminal or SSH into your XBMCbuntu box and run the following commands:

sudo apt-get install libtheora0 libopenal1 libsdl-image1.2

sudo dpkg -i andyetitmoves_1.2.2-1_i386.deb

mkdir scripts

cd scripts

nano andyetitmoves.sh

Now copy in the following text(it's ctrl + shift + v to paste at the terminal)

#!/bin/bash
openbox &
/usr/games/AndYetItMoves
killall -9 openbox

and save the file(ctrl + x and then y to confirm)

chmod +x andyetitmoves.sh

Now you need to use "Advanced Launcher" addon to create a shortcut to start Osmos from within XBMC.  Simply create a new launcher and point it as the osmos.sh file you created above(should be /home/xbmc/scripts/andyetitmoves.sh)

The first time you run the game you will probably want to go to options and set it to use fullscreen mode.

and that's it, have fun!

Install Osmos on XBMCbuntu Eden

Osmos is a really fun and addictive indie game which I purchased as part of a Humble Bundle in 2011.  The following is a short guide to installing it on XBMCbuntu Eden, for instructions on installing it on XBMCLive Dharma check out my old guide here.

First you need to download the .deb file for Osmos, once you have the .deb file you need to copy it to the home folder of your XBMCLive installation.  For instructions on this follow my guide "Copy files to XBMC with Filezilla"

Then open a terminal or SSH into your XBMCbuntu box and run the following commands:

sudo apt-get install libopenal1

sudo dpkg -i Osmos_1.6.1.deb

mkdir scripts

cd scripts

nano osmos.sh

Now copy in the following text(it's ctrl + shift + v to paste at the terminal)


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

and save the file(ctrl + x and then y to confirm)

chmod +x osmos.sh

Now you need to use "Advanced Launcher" addon to create a shortcut to start Osmos from within XBMC.  Simply create a new launcher and point it as the osmos.sh file you created above(should be /home/xbmc/scripts/osmos.sh)

and that's it, have fun!