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"