tag:blogger.com,1999:blog-58841215908785696622024-03-05T01:08:07.628-08:00Setup Guidesjamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.comBlogger79125tag:blogger.com,1999:blog-5884121590878569662.post-19415363461623814102014-02-11T19:16:00.001-08:002014-02-11T19:16:20.356-08:00Install LAMP in Ubuntu 13.10 Saucy(Apache, MySQL, PHP)<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="post-body entry-content" id="post-body-3699648523261547289" style="background-color: white; position: relative; width: 586px;">
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
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.
</div>
<div dir="ltr" trbidi="on">
<div dir="ltr" style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" trbidi="on">
<br />
First install lamp:<br />
Open a terminal and run the following:<br />
<br />
<i>sudo apt-get install lamp-server^</i><br />
<br />
After the lamp server installation you will need write permissions to the /var/www directory. Follow these steps to configure permissions.<br />
<br />
Add your user to the www-data group<br />
<br />
<i>sudo usermod -a -G www-data <your user name></i><br />
<br />
now add the /var/www folder to the www-data group<br />
<br />
<i>sudo chgrp -R www-data /var/www</i><br />
<br />
now give write permissions to the www-data group<br />
<br />
<i>sudo chmod -R g+w /var/www</i><br />
<br />
NOTE: these changes will not be seen in nautilus until you log out and log back in again.<br />
<br />
<span style="font-size: medium;">Some extra things to install</span><br />
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.</div>
<div dir="ltr" style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" trbidi="on">
<br /></div>
<div dir="ltr" style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" trbidi="on">
<b>json_encode</b></div>
<div dir="ltr" trbidi="on">
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
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:</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<span style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;"><span style="line-height: 18px;"><i>sudo apt-get install php5-json</i></span></span></div>
<div dir="ltr" trbidi="on">
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<b>Curl:</b></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<i>sudo apt-get install php5-curl</i></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<b>Mod rewrite:</b></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<i>sudo a2enmod rewrite</i></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<i><br /></i>To enable mod rewrite you also need to do some apache configuration:</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<i style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">sudo gedit /etc/apache2/sites-available/</i><span style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;"><span style="line-height: 18px;"><i>000-default.conf</i></span></span><br />
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
add the following to the file below the DocumentRoot option:</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><Directory /var/www/></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>Options Indexes FollowSymLinks MultiViews</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>AllowOverride <b>All</b></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>Order allow,deny</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>allow from all</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></Directory></div>
</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<i>sudo /etc/init.d/apache2 restart</i></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<b>GD2 Graphics Lib:</b></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<i>sudo apt-get install php5-gd</i></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<b>Turn on error messages</b></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
If you are setting up a dev environment then you will want to turn on error messages too. To do this run the following:</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<i>sudo gedit /etc/php5/apache2/php.ini</i></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
then find the line that looks like this(around line 480):</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<i>display_errors = Off</i></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
and change it to</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<i>display_errors = On</i></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
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.</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
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.</div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<i>sudo gedit /etc/php5/cli/php.ini</i></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<br /></div>
<div style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
You will need to restart Apache for the changes to take effect.<br />
<br />
<i>sudo /etc/init.d/apache2 restart</i><br />
<br />
And that's it, have fun!</div>
</div>
</div>
</div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com2tag:blogger.com,1999:blog-5884121590878569662.post-90522812274277104862013-09-08T01:00:00.000-07:002013-09-08T01:02:24.249-07:00Install CyanogenMod(CM) 10.1 on Nexus 7 using Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
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.<br />
<br />
The script provides step by step prompts to do the following:<br />
<ul style="text-align: left;">
<li>Install ADB if not present</li>
<li>Install Fastboot</li>
<li>Unlock bootloader</li>
<li>Install ClockworkMod Recovery</li>
<li>Backup your existing ROM</li>
<li>Install CM10.1</li>
<li>Install Google apps</li>
</ul>
<br />
To run the script simply open a terminal and run the following command(in a directory you have write access to):<br />
<br />
<i>wget http://ubuntuone.com/5422gu14eWnrRkiu7uNfOx -O nexus7_cm_install.sh && chmod +x nexus7_cm_install.sh && ./nexus7_cm_install.sh</i><br />
<br />
Now just follow the prompts to complete the install.<br />
<br />
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 <a href="https://play.google.com/store/apps/details?id=com.grilledmonkey.lagfix&hl=en" target="_blank">give it a try.</a></div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com1tag:blogger.com,1999:blog-5884121590878569662.post-53327778308027992902013-04-13T05:40:00.002-07:002013-04-13T05:42:38.073-07:00Step by step guide to installing CM 10.1 on HTC One X using Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
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). <br />
<br />
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.<br />
<br />
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.<br />
<br />
<br />
<b>Step 1 -Unlocking the bootloader</b><br />
<br />
First you need to install adb and fastboot.<br />
<br />
If you are using an Ubuntu version lower than 12.10 then use the instructions here<br />
<a href="http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html" target="_blank">http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html</a><br />
<br />
If you are using Ubuntu 12.10 or above then just run the following at the terminal:<br />
<br />
<i>sudo apt-get install android-tools-adb</i><br />
<br />
<i>sudo apt-get install android-tools-fastboot</i><br />
<br />
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 <a href="http://htcdev.com/bootloader/" target="_blank">this link</a> and follow the instructions but refer back to here when the instructions are Windows specific.<br />
<br />
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.<br />
<br />
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.<br />
<br />
On step 3 you need to get the identifier token by entering the following at the terminal:<br />
<br />
<i>sudo fastboot oem get_identifier_token</i><br />
<br />
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.<br />
<br />
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. <br />
<br />
Run the following command in the terminal:<br />
<br />
<i>sudo fastboot flash unlocktoken Unlock_code.bin</i><br />
<br />
<b>Step 2 - Install ClockworkModRecovery</b><br />
<br />
Download the img file for your HTC One X Variant from here:<br />
<a href="http://clockworkmod.com/rommanager" target="_blank">http://clockworkmod.com/rommanager</a><br />
<br />
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.<br />
<br />
Then in the terminal run the following command:<br />
<br />
<i>sudo fastboot flash recovery recovery-clockwork-touch-5.8.4.0-endeavoru.img</i><br />
<br />
NOTE: the version number in the file name may be slightly different to my example above so adjust accordingly.<br />
<br />
Now select "POWER DOWN" from the fastboot menu and disconnect your device from the USB cable.<br />
<br />
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.<br />
<br />
<b>Step 3 - Install CyanogenMod</b><br />
<br />
Now download the latest CyanogenMod 10.1 nightly for the One X from here:<br />
<a href="http://download.cyanogenmod.org/?device=endeavoru&type=nightly" target="_blank">http://download.cyanogenmod.org/?device=endeavoru&type=nightly</a><br />
<br />
and the latest Google Apps zip from here:<br />
<a href="http://wiki.cyanogenmod.org/w/Gapps" target="_blank">http://wiki.cyanogenmod.org/w/Gapps</a><br />
<br />
Extract the file boot.img from the CyanogenMod zip file by running the following command:<br />
<br />
<i>unzip -p cm-10.1-*-NIGHTLY-endeavoru.zip boot.img >boot.img</i><br />
<br />
Turn your device on and once it has booted connect the USB cable.<br />
<br />
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.<br />
<br />
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.<br />
<br />
Flash the new boot image by running the following command in your terminal:<br />
<br />
<i>sudo fastboot flash boot boot.img</i><br />
<br />
Once the command has run select "HBOOT" to return to the main menu.<br />
<br />
Select "RECOVERY"<br />
<br />
Select "wipe data/factory reset" and confirm<br />
<br />
Select "install zip from sdcard"<br />
<br />
Select "choose zip from sdcard" and then choose the CM nightly zip and then confirm that you want to install it.<br />
<br />
<br />
Select "choose zip from sdcard" again but this time choose the Google Apps zip file and confirm.<br />
<br />
Navigate back to the main menu and select "reboot system now".<br />
<br />
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.<br />
<br />
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.<br />
<br />
<span style="font-size: x-small;">Sources:</span><br />
<a href="http://reviews.cnet.co.uk/mobile-phones/how-to-root-the-htc-one-x-50010022/"><span style="font-size: x-small;">http://reviews.cnet.co.uk/mobile-phones/how-to-root-the-htc-one-x-50010022/</span></a><br />
<a href="http://www.android.gs/update-htc-one-x-to-android-4-2-2-jelly-bean-cm-10-1-nightly-rom/"><span style="font-size: x-small;">http://www.android.gs/update-htc-one-x-to-android-4-2-2-jelly-bean-cm-10-1-nightly-rom/</span></a><br />
<a href="http://www.ibtimes.co.uk/articles/414645/20121213/install-android42-jellybean-htc-onex-cyanogenmod10-cm10.htm"><span style="font-size: x-small;">http://www.ibtimes.co.uk/articles/414645/20121213/install-android42-jellybean-htc-onex-cyanogenmod10-cm10.htm</span></a><br />
<br />
<br />
<br /></div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com7tag:blogger.com,1999:blog-5884121590878569662.post-76729551134749938042013-04-12T21:20:00.002-07:002013-04-12T21:20:25.302-07:00Create New Document context menu item missing in Nautilus 3.6.3<div dir="ltr" style="text-align: left;" trbidi="on">
I recently installed the new <a href="https://wiki.ubuntu.com/UbuntuGNOME" target="_blank">Ubuntu Gnome</a> 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. <br />
<br />
If you would like to add the option back in you simply need to run the following command at the Terminal:<br />
<br />
<i>touch ~/Templates/Text\ File.txt</i><br />
<i><br /></i>
NOTE: you can add other types of files to the templates folder and they will also appear n the context menu.<br />
<br /></div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com2tag:blogger.com,1999:blog-5884121590878569662.post-36996485232615472892013-04-07T00:44:00.000-07:002013-04-07T01:00:00.418-07:00Install LAMP in Ubuntu 13.04 Raring(Apache, MySQL, PHP)<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div dir="ltr" style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" trbidi="on">
This is a short guide to installing a basic LAMP(Linux, Apache, MySQL, PHP) development environment on Ubuntu 13.04 Raring Ringtail.<br />
<br />
First install lamp:<br />
Open a terminal and run the following:<br />
<br />
<i>sudo apt-get install lamp-server^</i><br />
<br />
After the lamp server installation you will need write permissions to the /var/www directory. Follow these steps to configure permissions.<br />
<br />
Add your user to the www-data group<br />
<br />
<i>sudo usermod -a -G www-data <your user name></i><br />
<br />
now add the /var/www folder to the www-data group<br />
<br />
<i>sudo chgrp -R www-data /var/www</i><br />
<br />
now give write permissions to the www-data group<br />
<br />
<i>sudo chmod -R g+w /var/www</i><br />
<br />
now log out and log back in to see the changes reflected in nautilus.<br />
<br />
<span style="font-size: large;">Some extra things to install</span><br />
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.<br />
<br />
<b>Curl:</b><br />
<br />
<i>sudo apt-get install php5-curl</i><br />
<br />
<b>Mod rewrite:</b><br />
<br />
<i>sudo a2enmod rewrite</i><br />
<i><br /></i>
To enable mod rewrite you also need to do some apache configuration:<br />
<br />
<i>sudo gedit /etc/apache2/sites-available/default</i><br />
<br />
and change AllowOverride from None to All:<br />
<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><Directory /var/www/><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Options Indexes FollowSymLinks MultiViews<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>AllowOverride <b>All</b><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Order allow,deny<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>allow from all<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span></Directory></div>
<br />
<i>sudo /etc/init.d/apache2 restart</i><br />
<br />
<b>GD2 Graphics Lib:</b><br />
<br />
<i>sudo apt-get install php5-gd</i><br />
<br />
<b>Turn on error messages</b><br />
If you are setting up a dev environment then you will want to turn on error messages too. To do this run the following:<br />
<br />
<i>sudo gedit /etc/php5/apache2/php.ini</i><br />
<br />
then find the line that looks like this(around line 480):<br />
<br />
<i>display_errors = Off</i><br />
<br />
and change it to <br />
<br />
<i>display_errors = On</i><br />
<br />
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.<br />
<br />
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.<br />
<br />
<i>sudo gedit /etc/php5/cli/php.ini</i><br />
<br />
And that's it, how easy was that? Ubuntu rocks!</div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com5tag:blogger.com,1999:blog-5884121590878569662.post-35445372905451921922013-04-06T04:44:00.002-07:002013-04-06T04:44:31.185-07:00Can't install Chrome on Ubuntu 13.04<div dir="ltr" style="text-align: left;" trbidi="on">
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:<br />
<br />
Dependency is not satisfiable: libudev0(>=147)<br />
<br />
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.<br />
<br />
for 32 bit:<br />
<br />
<a href="http://launchpadlibrarian.net/132294322/libudev0_175-0ubuntu19_i386.deb">http://launchpadlibrarian.net/132294322/libudev0_175-0ubuntu19_i386.deb</a><br />
<br />
for 64 bit:<br />
<a href="http://launchpadlibrarian.net/132294155/libudev0_175-0ubuntu19_amd64.deb">http://launchpadlibrarian.net/132294155/libudev0_175-0ubuntu19_amd64.deb</a><br />
<br />
<br />
</div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com5tag:blogger.com,1999:blog-5884121590878569662.post-1990714320844691872013-03-21T10:04:00.002-07:002013-03-21T10:07:33.993-07:00XBMC Remote for iPhone and Android<div dir="ltr" style="text-align: left;" trbidi="on">
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.<br />
<br />
You can download and install the BETA version from the wiki <a href="https://github.com/jamespcole/webinterface.jquerymobile/wiki" target="_blank">here</a><br />
<br />
Or view screenshots of the app in action <a href="https://github.com/jamespcole/webinterface.jquerymobile/wiki/Screenshots" target="_blank">here</a><br />
<br />
NOTE: it is only currently compatible with the latest "Frodo" version of XBMC(sorry supporting older versions was just too much work)<br />
<br />
Here are a few screenshots to give you an idea of what it looks like:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://ubuntuone.com/6Yk4TYEinDvPI54pba6Jib" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://ubuntuone.com/6Yk4TYEinDvPI54pba6Jib" width="192" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://ubuntuone.com/1DbzEjJkwsvPKfBwQM7tJV" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://ubuntuone.com/1DbzEjJkwsvPKfBwQM7tJV" width="192" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br /></div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com1tag:blogger.com,1999:blog-5884121590878569662.post-90053827826440603802013-01-21T04:50:00.004-08:002013-01-21T04:50:46.688-08:00TvHeadend PVR Stops working in XBMCBuntu Frodo RC3<div dir="ltr" style="text-align: left;" trbidi="on">
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. <br />
<br />
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.<br />
<br />
To install TVheadend manualy simply run the following at the terminal:<br />
<br />
<i> sudo apt-get install xbmc-pvr-tvheadend-hts</i><br />
<br />
and that's it, your PVR should be working again now.<br />
NOTE: you may need to go into Settings - Add-ons - Disabled Add-ons and enable the tvheadend add-on.</div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com0tag:blogger.com,1999:blog-5884121590878569662.post-4331326249871265242013-01-12T22:29:00.004-08:002013-01-28T08:13:45.272-08:00Easily root Asus TF101 Transformer using Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
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.<br />
<br />
As is the usual thing with all these guides I take no responsibility for any problems/damage to your device from rooting it.<br />
<br />
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 <a href="http://ubuntuone.com/5xwKVscUxwgdnudw589ERd" target="_blank">here</a>, extract it and run the root_tf101.sh script.<br />
<br />
NOTE: if you are using an Ubuntu version lower than 12.10 please follow the instructions here to install adb before running the script. <a href="http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html">http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html</a><br />
<br />
To do it the command line way just enter the following at the command line and then follow the prompts.<br />
<br />
<i>wget http://ubuntuone.com/5xwKVscUxwgdnudw589ERd -O TF101_Root.zip</i><br />
<br />
<i>unzip TF101_Root.zip -d TF101_Root</i><br />
<i><br /></i>
<i>cd TF101_Root</i><br />
<i><br /></i>
<i>chmod +x root_tf101.sh</i><br />
<i><br /></i>
<i>./root_tf101.sh</i><br />
<i><br /></i>
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.<br />
<br />
<span style="font-size: x-small;">Sources:</span><br />
<a href="http://forum.xda-developers.com/showthread.php?t=1862298"><span style="font-size: x-small;">http://forum.xda-developers.com/showthread.php?t=1862298</span></a><br />
<a href="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"><span style="font-size: x-small;">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</span></a></div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com35tag:blogger.com,1999:blog-5884121590878569662.post-23755770175178600092012-11-22T21:01:00.003-08:002012-11-22T21:02:41.778-08:00Testing IE9 in Ubuntu with VirtualBox setup script<div dir="ltr" style="text-align: left;" trbidi="on">
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).<br />
<br />
To make this setup easier I have created a small bash script which does all the downloading, installation and configuration for you.<br />
<br />
The script works as follows:<br />
1. Downloads the RARed VHD file from microsoft.com<br />
2. Installs unrar<br />
3. extracts the VHD file<br />
4. Installs VirtualBox<br />
5. Configures a new Windows VM<br />
6. Starts the new Windows VM<br />
<br />
You can download the script here:<br />
<a href="http://ubuntuone.com/458mPt4YJsB9rBiHEHhwGu">http://ubuntuone.com/458mPt4YJsB9rBiHEHhwGu</a><br />
<br />
Place the script in your home folder.<br />
<br />
Give the script execute permissions:<br />
<i>chmod +x install_win7_IE9_VM.sh</i><br />
<br />
Run the script(and kick back because it takes a while to download and extract everything):<br />
<i>./install_win7_IE9_VM.sh</i><br />
<br />
After running the script the first time you can just run your Windows VM from the VirtualBox GUI as normal.<br />
<br />
<br />
NOTE: the Windows password is "Password1"</div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com0tag:blogger.com,1999:blog-5884121590878569662.post-45007923173916206602012-11-04T22:09:00.003-08:002012-11-04T22:10:26.514-08:00Fix Missing Menus in FileZilla in Gnome 3.6 with Ubuntu 12.10<div dir="ltr" style="text-align: left;" trbidi="on">
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.<br />
<br />
Open a terminal and enter the following:<br />
<br />
<i>sudo su</i><br />
<br />
then:<br />
<br />
<i>echo "export UBUNTU_MENUPROXY=0" > /etc/X11/Xsession.d/81ubuntumenuproxy</i><br />
<br />
then:<br />
<br />
<i>exit</i><br />
<i><br /></i>
Now reboot and the menus should appear as normal.<br />
<br />
NOTE: this solution will also disable global menus in unity if you wish to undo the change run the following:<br />
<br />
<i>sudo rm /etc/X11/Xsession.d/81ubuntumenuproxy</i><br />
<br />
Enjoy Gnome 3.6 on Ubuntu 12.10<br />
<br />
<span style="font-size: x-small;">Source: <a href="http://www.webupd8.org/2011/03/disable-appmenu-global-menu-in-ubuntu.html">http://www.webupd8.org/2011/03/disable-appmenu-global-menu-in-ubuntu.html</a></span></div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com0tag:blogger.com,1999:blog-5884121590878569662.post-62784278305397841612012-10-17T05:40:00.002-07:002013-04-07T00:39:12.800-07:00Install LAMP in Ubuntu 12.10 Quantal(Apache, MySQL, PHP)<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
This is a short guide to installing a basic LAMP(Linux, Apache, MySQL, PHP) development environment on Ubuntu 12.10 Quantal Pangolin.<br />
<br />
First install lamp:<br />
Open a terminal and run the following:<br />
<br />
<i>sudo apt-get install lamp-server^</i><br />
<br />
After the lamp server installation you will need write permissions to the /var/www directory. Follow these steps to configure permissions.<br />
<br />
Add your user to the www-data group<br />
<br />
<i>sudo usermod -a -G www-data <your user name></i><br />
<br />
now add the /var/www folder to the www-data group<br />
<br />
<i>sudo chgrp -R www-data /var/www</i><br />
<br />
now give write permissions to the www-data group<br />
<br />
<i>sudo chmod -R g+w /var/www</i><br />
<br />
now log out and log back in to see the changes reflected in nautilus.<br />
<br />
<span style="font-size: large;">Some extra things to install</span><br />
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.<br />
<br />
<b>Curl:</b><br />
<br />
<i>sudo apt-get install php5-curl</i><br />
<br />
<b>Mod rewrite:</b><br />
<br />
<i>sudo a2enmod rewrite</i><br />
<i><br /></i>
To enable mod rewrite you also need to do some apache configuration:<br />
<br />
<i>sudo gedit /etc/apache2/sites-available/default</i><br />
<br />
and change AllowOverride from None to All:<br />
<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><Directory var="var" www="www"><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Options Indexes FollowSymLinks MultiViews<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>AllowOverride <b>All</b><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Order allow,deny<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>allow from all<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span></Directory></div>
<br />
<i>sudo /etc/init.d/apache2 restart</i><br />
<br />
<b>GD2 Graphics Lib:</b><br />
<br />
<i>sudo apt-get install php5-gd</i><br />
<i><br /></i>
And that's it, how easy was that? Ubuntu rocks!</div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com2tag:blogger.com,1999:blog-5884121590878569662.post-89723828308081537552012-08-23T08:42:00.001-07:002012-08-23T08:42:37.709-07:00Basic asp.NET dev environment in Ubuntu 12.04<div dir="ltr" style="text-align: left;" trbidi="on">
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.<br />
<br />
First install xsp2:<br />
<br />
<i>sudo apt-get install mono-xsp2</i><br />
<br />
then:<br />
<br />
<i>mkdir -p ~/dotnet</i><br />
<br />
<i>cd dotnet</i><br />
<br />
<i>gedit Default.aspx</i><br />
<br />
Then paste in the following:<br />
<br />
<br />
<%<br />
HelloWorldLabel.Text = "Hello, world!";<br />
%><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head runat="server"><br />
<title>Untitled Page</title><br />
</head><br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
<asp:Label runat="server" id="HelloWorldLabel"></asp:Label><br />
</div><br />
</form><br />
</body><br />
</html><br />
<br />
<i></i><br />
<br /><i></i>
now save the file and go back to the terminal and run:<br />
<br />
<i>xsp2</i><br />
<br />
*Note: this must be run in the directory where you created the file.<br />
<br />
Now open a browser and visit:<br />
<a href="http://127.0.0.1:8080/default.aspx">http://127.0.0.1:8080/Default.aspx</a><br />
<br />
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.</div>
jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com0tag:blogger.com,1999:blog-5884121590878569662.post-35596041853342221982012-07-15T11:22:00.000-07:002012-07-15T12:13:32.233-07:00IMON Soundgraph VFD/LCD with XBMCbuntu<div dir="ltr" style="text-align: left;" trbidi="on">
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.<br />
<br />
Open a terminal(either via SSH or Openbox) and run the following commands:<br />
<i><br /></i><br />
First install LCDproc:<br />
<i>sudo apt-get install lcdproc</i><br />
<br />
Now edit the config file:<br />
<i>sudo nano /etc/LCDd.conf</i><br />
<br />
change line 53 from<br />
<i>Driver=curses</i><br />
to<br />
<i>Driver=imon</i><br />
<br />
*NOTE: <span style="background-color: white;">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.</span><br />
<br />
The IMON driver for some reason hangs on shutdown so run the following to fix the problem:<br />
<br />
<i><span style="background-color: white;">sudo mv </span><span style="background-color: white;">/etc/rc6.d/</span><span style="background-color: white;">K60LCDd </span><span style="background-color: white;">/etc/rc6.d/</span><span style="background-color: white;">K99LCDd</span></i><br />
<span style="background-color: white;"><br /></span><br />
<i><span style="background-color: white;">sudo mv </span><span style="background-color: white;">/etc/rc0.d/</span><span style="background-color: white;">K60LCDd </span><span style="background-color: white;">/etc/rc0.d/</span><span style="background-color: white;">K99LCDd</span></i><br />
<br /></div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com4tag:blogger.com,1999:blog-5884121590878569662.post-31746133558196324742012-06-17T23:27:00.000-07:002012-06-17T23:27:09.281-07:00Upgrading to Skype 4 in Ubuntu 12.04 (from skype 2.2)<div dir="ltr" style="text-align: left;" trbidi="on">
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:<div>
<br /></div>
<div>
<i>trying to overwrite '/etc/dbus-1/system.d/skype.conf', which is also in package skype-bin:i386 2.2.0.35-0precise3</i></div>
<div>
<br /></div>
<div>
To get around this error just fire up a terminal and run the following commands:</div>
<div>
<br /></div>
<div>
<i>sudo apt-get --purge remove skype</i></div>
<div>
<br /></div>
<div>
<i>sudo apt-get autoremove</i></div>
<div>
<i><br /></i></div>
<div>
Then just install the latest deb file via the software centre like normal.</div>
<div>
<br /></div>
<div>
Note: I downloaded the Ubuntu 10.04 deb from the Skype download page(there doesn't seem to be a specific 12.04 one)</div>
<div>
<br /></div>
<div>
<span style="font-size: x-small;">Source: <a href="http://community.skype.com/t5/user/viewprofilepage/user-id/1347974" target="_blank">Doog</a> on <a href="http://community.skype.com/t5/Linux/Skype-won-t-upgrade-to-4-on-Ubuntu-12-04/m-p/795468">http://community.skype.com/t5/Linux/Skype-won-t-upgrade-to-4-on-Ubuntu-12-04/m-p/795468</a></span></div>
</div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com3tag:blogger.com,1999:blog-5884121590878569662.post-38000502248139237142012-04-13T01:51:00.001-07:002012-04-13T20:16:49.317-07:00Install LAMP in Ubuntu 12.04 Precise(Apache, MySQL, PHP)<div dir="ltr" style="text-align: left;" trbidi="on">
This is a short guide to installing a basic LAMP(Linux, Apache, MySQL, PHP) development environment on Ubuntu 12.04 Precise Pangolin.<br />
<br />
First install lamp:<br />
Open a terminal and run the following:<br />
<br />
<i>sudo apt-get install lamp-server^</i><br />
<br />
After the lamp server installation you will need write permissions to the /var/www directory. Follow these steps to configure permissions.<br />
<br />
Add your user to the www-data group<br />
<br />
<i>sudo usermod -a -G www-data <your user name></i><br />
<br />
now add the /var/www folder to the www-data group<br />
<br />
<i>sudo chgrp -R www-data /var/www</i><br />
<br />
now give write permissions to the www-data group<br />
<br />
<i>sudo chmod -R g+w /var/www</i><br />
<br />
now log out and log back in to see the changes reflected in nautilus.<br />
<br />
<span style="font-size: large;">Some extra things to install</span><br />
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.<br />
<br />
<b>Curl:</b><br />
<br />
<i>sudo apt-get install php5-curl</i><br />
<br />
<b>Mod rewrite:</b><br />
<br />
<i>sudo a2enmod rewrite</i><br />
<br />
<b>GD2 Graphics Lib:</b><br />
<br />
<i>sudo apt-get install php5-gd</i><br />
<i><br /></i><br />
And that's it, how easy was that? Ubuntu rocks!</div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com22tag:blogger.com,1999:blog-5884121590878569662.post-19334011181285249782012-04-01T21:26:00.000-07:002012-04-13T22:13:13.992-07:00Install MySQL Workbench on Ubuntu 12.04<div dir="ltr" style="text-align: left;" trbidi="on">
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.<br />
<br />
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.<br />
<br />
First of all you will need to download the latest MySQL Workbench from <a href="http://www.mysql.com/downloads/mirror.php?id=406525#mirrors" target="_blank">here</a>.<br />
<br />
Next you must download a .deb file for libzip1 as it is not available in the 12.04 repos.<br />
<br />
32 bit version - <a href="https://launchpad.net/ubuntu/+archive/primary/+files/libzip1_0.9.3-1_i386.deb">https://launchpad.net/ubuntu/+archive/primary/+files/libzip1_0.9.3-1_i386.deb</a><br />
64 bit version - <a href="https://launchpad.net/ubuntu/+source/libzip/0.9.3-1/+build/1728114/+files/libzip1_0.9.3-1_amd64.deb">https://launchpad.net/ubuntu/+source/libzip/0.9.3-1/+build/1728114/+files/libzip1_0.9.3-1_amd64.deb</a><br />
for other architectures go <a href="https://launchpad.net/ubuntu/+source/libzip" target="_blank">here</a><br />
<br />
After downloading just open them with the software centre and click install.<br />
<br />
*NEW: The libmysqlclient16 package was removed from the 12.04 repos so you will need to download the old deb files for it:<br />
<br />
32 bit version - <a href="http://launchpadlibrarian.net/94563300/libmysqlclient16_5.1.58-1ubuntu5_i386.deb">http://launchpadlibrarian.net/94563300/libmysqlclient16_5.1.58-1ubuntu5_i386.deb</a><br />
64 bit version - <a href="http://launchpadlibrarian.net/94808408/libmysqlclient16_5.1.58-1ubuntu5_amd64.deb">http://launchpadlibrarian.net/94808408/libmysqlclient16_5.1.58-1ubuntu5_amd64.deb</a><br />
<br />
<br />
Next open a terminal and install the following packages:<br />
<br />
<i>sudo apt-get install libzip1 python-paramiko python-pysqlite2 libctemplate0 libgtkmm-2.4-1c2a libmysqlclient16</i><br />
<br />
Then cd to the directory where you downloaded the deb file and run:<br />
<br />
<i>sudo dpkg -i mysql-workbench-gpl-5.2.38-1ubu1104-i386.deb</i><br />
<br />
And that should be it, enjoy!<br />
<br />
Instructions loosely based on those found here: <a href="http://blog.csdn.net/kevin6216/article/details/7420421">http://blog.csdn.net/kevin6216/article/details/7420421</a><br />
<br />
<br />
<br />
<br /></div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com24tag:blogger.com,1999:blog-5884121590878569662.post-31647019180356625942012-03-29T21:54:00.001-07:002012-03-29T21:54:39.929-07:00Install Zenbound 2 on XBMCbuntu Eden<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Zenbound 2 is a great little game I got as part of the latest <a href="http://humblebundle.com/" target="_blank">Humble Bundle</a>, 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.<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
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 "<a href="http://setupguides.blogspot.com.au/2011/09/copy-files-to-xbmc-live-with-sftp-and.html" target="_blank">Copy files to XBMC with Filezilla</a>"<br />
<br />
Then open a terminal or SSH into your XBMCbuntu box and run the following commands:<br />
<br />
<i>sudo dpkg -i zenbound2_20120325-1_i386.deb</i><br />
<br />
<i>mkdir scripts</i><br />
<br />
<i>cd scripts</i><br />
<br />
<i>nano zenbound2.sh</i><br />
<br />
Now copy in the following text(it's ctrl + shift + v to paste at the terminal)<br />
<br />
<br />
<i>#!/bin/bash</i><br />
<i>openbox &</i><br />
<i>/usr/games/zenbound2</i><br />
<i>killall -9 openbox</i><br />
<br />
and save the file(ctrl + x and then y to confirm)<br />
<br />
<i>chmod +x </i><i>zenbound2</i><i>.sh</i><br />
<br />
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/<i>zenbound2</i>.sh)<br />
<br />
and that's it, have fun!<br />
<br /></div>
<br />
<div>
<br /></div>
</div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com0tag:blogger.com,1999:blog-5884121590878569662.post-61440924245920432932012-03-29T06:31:00.000-07:002012-04-23T23:51:51.628-07:00Installing And Yet It Moves in XBMCbuntu Eden<div dir="ltr" style="text-align: left;" trbidi="on">
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 <a href="http://setupguides.blogspot.com.au/2011/09/install-and-yet-it-moves-on-xbmc-live.html" target="_blank">here</a>.<br />
<br />
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 "<a href="http://setupguides.blogspot.com.au/2011/09/copy-files-to-xbmc-live-with-sftp-and.html" target="_blank">Copy files to XBMC with Filezilla</a>"<br />
<br />
Then open a terminal or SSH into your XBMCbuntu box and run the following commands:<br />
<br />
<i>sudo apt-get install libtheora0 libopenal1 libsdl-image1.2</i><br />
<br />
<i>sudo dpkg -i andyetitmoves_1.2.2-1_i386.deb</i><br />
<br />
<i>mkdir scripts</i><br />
<br />
<i>cd scripts</i><br />
<br />
<i>nano andyetitmoves.sh</i><br />
<br />
Now copy in the following text(it's ctrl + shift + v to paste at the terminal)<br />
<br />
<i>#!/bin/bash</i><br />
<i>openbox &</i><br />
<i>/usr/games/AndYetItMoves</i><br />
<i>killall -9 openbox</i><br />
<br />
and save the file(ctrl + x and then y to confirm)<br />
<br />
<i>chmod +x andyetitmoves.sh</i><br />
<br />
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)<br />
<br />
The first time you run the game you will probably want to go to options and set it to use fullscreen mode.<br />
<br />
and that's it, have fun!<br />
<br /></div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com0tag:blogger.com,1999:blog-5884121590878569662.post-58502691770797142082012-03-29T06:15:00.003-07:002012-03-29T06:15:41.111-07:00Install Osmos on XBMCbuntu Eden<div dir="ltr" style="text-align: left;" trbidi="on">
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 <a href="http://setupguides.blogspot.com.au/2011/09/install-osmos-on-xbmc-live.html" target="_blank">here</a>.<br />
<br />
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 "<a href="http://setupguides.blogspot.com.au/2011/09/copy-files-to-xbmc-live-with-sftp-and.html" target="_blank">Copy files to XBMC with Filezilla</a>"<br />
<br />
Then open a terminal or SSH into your XBMCbuntu box and run the following commands:<br />
<br />
<i>sudo apt-get install libopenal1</i><br />
<br />
<i>sudo dpkg -i Osmos_1.6.1.deb</i><br />
<br />
<i>mkdir scripts</i><br />
<br />
<i>cd scripts</i><br />
<br />
<i>nano osmos.sh</i><br />
<br />
Now copy in the following text(it's ctrl + shift + v to paste at the terminal)<br />
<br />
<br />
<i>#!/bin/bash</i><br />
<i>openbox &</i><br />
<i>/opt/Osmos/Osmos</i><br />
<i>killall -9 openbox</i><br />
<br />
and save the file(ctrl + x and then y to confirm)<br />
<br />
<i>chmod +x osmos.sh</i><br />
<br />
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)<br />
<br />
and that's it, have fun!<br />
<br />
</div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com0tag:blogger.com,1999:blog-5884121590878569662.post-82237640738712984672012-03-29T03:32:00.001-07:002012-03-29T03:32:46.108-07:00Install Minecraft in XBMCbuntu Eden<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
To run Minecraft you on XBMCbuntu Eden will first need to install Sun's Java JRE, you can my simple step by step guide <a href="http://setupguides.blogspot.com.au/2012/03/install-sun-java-jre-on-xbmcbuntu-eden.html" target="_blank">here</a>.<br />
<br />
Now either SSH into your XBMCbuntu box or open a terminal on it and run the following commands:<br />
<br />
<i>wget https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar</i><br />
<br />
<i>mkdir scripts</i><br />
<br />
<i>cd scripts</i><br />
<br />
<i>nano mincraft.sh</i><br />
<br />
then paste(ctrl + shift + v at the terminal) this in and save(ctrl + x and then y to confirm)<br />
<br />
<i>#!/bin/bash</i><br />
<i>openbox &</i><br />
<i>/usr/lib/jvm/java-6-sun/jre/bin/java -Xmx1024M -Xms512M -cp ~/minecraft.jar net.minecraft.LauncherFrame</i><br />
<i>killall -9 openbox</i><br />
<br />
then run:<br />
<br />
<i>chmod +x minecraft.sh</i><br />
<i><br /></i><br />
Now in the XBMC "Advanced Launcher" addon simply create a new launcher that points to the new minecraft.sh script(located at /home/xbmc/scripts/minecraft.sh).<br />
<br />
Note: Minecraft is a resource hog and on my Acer Revo 1600 the performance was terrible, I also tested on an older desktop with a decent graphics card and it ran like a dream so if you're running XBMCbuntu on a small nettop don't expect great performance.<br />
<br />
<br />
</div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com1tag:blogger.com,1999:blog-5884121590878569662.post-28139818236729920232012-03-29T03:24:00.002-07:002012-03-29T03:24:39.302-07:00Install Sun Java JRE on XBMCbuntu Eden<div dir="ltr" style="text-align: left;" trbidi="on">
While XBMCbuntu comes with OpenJDK pre-installed you may need to install the Sun Java JRE for some apps(like minecraft) to function correctly. To install sun-java6-jdk in XBMCbuntu SSH into your XBMCbuntu box and run the following:<br />
<br />
<i>sudo add-apt-repository ppa:ferramroberto/java</i><br />
<br />
<i>sudo apt-get update</i><br />
<br />
<i>sudo apt-get install sun-java6-jdk sun-java6-plugin</i><br />
<br />
During the install you will be prompted to agree to the java terms of service(hit Tab to highlight the ok button)<br />
<br />
If you want to make Sun Java the default java for your system run this command:<br />
<br />
<i>sudo update-alternatives --config java</i><br />
<br />
Alternatively if you want to leave OpenJDK as the default but run specific programs with Sun's java then run:<br />
<i>/usr/lib/jvm/java-6-sun/jre/bin/java <your file="" jar=""></your></i><br />
<br />
Note: if you are still using the older XBMCLive Dharma you can follow <a href="http://setupguides.blogspot.com.au/2011/09/install-javajre-on-xbmc-live.html" target="_blank">this guide to install java</a><br />
<br />
<br />
And that's it, have fun!<br />
<br />
<br />
</div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com0tag:blogger.com,1999:blog-5884121590878569662.post-64004137560178469762012-03-29T02:18:00.000-07:002012-03-29T02:18:25.247-07:00Launch Chromium in fullscreen in XBMCbuntu Eden<div dir="ltr" style="text-align: left;" trbidi="on">
On my new XBMCbuntu install the "Advanced Launcher" addon had a "chromium-browser" launcher configured by default. Unfortunately when running the launcher chromium started but was only taking up half the screen(the maximise button was also missing and keyboard shortcuts would not increase the window size). After some googling and no success I decided to roll my own solution which is as follows:<br />
<br />
First SSH into your XBMCbuntu install and enter the following(if you are not comfortable using SSH simply log out of XBMC and log into openbox from the login screen then open a terminal and follow these steps)<br />
<br />
<i>mkdir scripts</i><br />
<br />
<i>cd scripts</i><br />
<br />
<i>nano chromium.sh</i><br />
<br />
then paste(ctrl + shift + v at the terminal) this in and save(ctrl + x and then y to confirm)<br />
<br />
<br />
<i>#!/bin/bash</i><br />
<i>openbox &</i><br />
<i>/usr/bin/chromium-browser</i><br />
<i>killall -9 openbox</i><br />
<div>
<br /></div>
<div>
then run </div>
<div>
<br /></div>
<div>
<i>chmod +x chromium.sh</i></div>
<div>
<br /></div>
<div>
Now in XBMCbuntu go to the "Advanced Launcher" and right click the "chromium-browser" launcher and select "Edit Launcher" then select "Advanced Modifications" then "Change Application" and select the script you made in the previous steps which is located at /home/xbmc/scripts/chromium.sh</div>
</div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com15tag:blogger.com,1999:blog-5884121590878569662.post-4659663777248930472012-02-04T22:17:00.000-08:002012-03-29T03:34:13.780-07:00Installing Minecraft on XBMC Live<div dir="ltr" style="text-align: left;" trbidi="on">
Note: this guide is for the older XBMCLive Dharma release, for an updated guide for XBMCbuntu Eden go <a href="http://setupguides.blogspot.com.au/2012/03/install-minecraft-in-xbmcbuntu-eden.html" target="_blank">here</a>.<br />
<br />
First off you need to install java on XBMC Live, this is pretty easy just follow my guide <a href="http://setupguides.blogspot.com.au/2011/09/install-javajre-on-xbmc-live.html" target="_blank">here</a>.<br />
<br />
Next we need to download and install Minecraft. To do this you need terminal access, you can follow my guide "<a href="http://setupguides.blogspot.com.au/2011/09/3-ways-to-access-terminal-on-your-xbmc.html" target="_blank">3 ways to access the terminal on XBMC Live</a>"<br />
<br />
<i>wget https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar</i><br />
<br />
<i>mkdir scripts</i><br />
<br />
<i>cd scripts</i><br />
<br />
<i>nano minecraft.sh</i><br />
<br />
now paste this in(it's ctrl+shift+v to paste in the terminal):<br />
<br />
<i>#!/bin/bash</i><br />
<i>fluxbox &</i><br />
<i>java -Xmx1024M -Xms512M -cp ~/minecraft.jar net.minecraft.LauncherFrame</i><br />
<i>killall -9 fluxbox</i><br />
<div>
<br /></div>
<div>
now press Ctrl + X and then Y to save and exit<br />
<br />
<i>chmod +x minecraft.sh</i><br />
<br />
Now you need to add a launcher shortcut to launch Minecraft from XBMC. To do this just follow my instructions "<a href="http://setupguides.blogspot.com.au/2011/09/add-shortcut-to-launcher-add-on-in-xbmc.html" target="_blank">Add a Shortcut to Launcher Add-on in XBMC</a>" and select Home->scripts->minecraft.sh<br />
<br />
Unfortunately there is currently no way to launch Minecraft in fullscreen so once it loads just hit "F11" to run in fullscreen mode.<br />
<br />
If you want to install more games on XBMC Live check out my guide <a href="http://setupguides.blogspot.com.au/2011/09/install-humble-bundle-on-xbmc-live.html" target="_blank">here</a></div>
</div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com1tag:blogger.com,1999:blog-5884121590878569662.post-41688411152223943622012-01-22T22:37:00.000-08:002012-01-22T22:37:04.948-08:00Things every Web Developer wishes Web Designers knew<div dir="ltr" style="text-align: left;" trbidi="on">
As a web developer I work with many web designers. I have great respect for web designers as they can do things I couldn't. I can code but I have no eye for design, I can spot bad design easily but I don't have the talent to create good designs myself. Because of this I rely heavily on web designers in my projects. However there are a few key things I rarely find that web designers can do that would help greatly in the smooth running of projects. While web designers are artists they sometimes seem to forget that fundamentally they are working with technology and at least some basic understanding of the underlying principles of the technologies they use and the web in general is something that every web designer should have.<br />
<br />
<span style="font-size: large;">1. Source Control</span><br />
Subversion, Git, Mercurial or whatever I would love my designers to be at least familiar with the basics of source control. It makes collaborating on code and pushing out updates so easy that it is basically essential to any web project. It's not very difficult conceptually so spend a day reading up on it to familiarise yourself with the basics.<br />
<br />
<span style="font-size: large;">2. How to set up a local dev environment</span><br />
I know designers love their Macs but if you have bought a Mac it is essential that you know how to set up a basic dev environment in OSX. If you want to dev locally and you have decided to use OSX it is absolutely the web designer's responsibility to know how to configure and use their own equipment. I am quite willing to answer sensible/interesting questions about the setup but not questions like "I don't get it, can you do it for me?". I have as much(or as little) interest in learning how to set up a MAMP stack as you do in a setting up a LAMP stack so don't expect me to waste time figuring out how to get a web app running under OSX. <br />
<br />
<span style="font-size: large;">3. Virtualisation</span><br />
This is a must. If you can't/won't figure out how to get the app you are working on running under OSX you must be able set up a virtual instance of the server to test/dev with. Also for testing various versions of IE you are basically going to have to understand this. It's not difficult to learn and can save hours of time and hassle and there are plenty of options out there for virtualisation. I use VirtualBox, it's free and does the job but there are a ton of other programs out there that you can use too.<br />
<br />
If as a web designer you can master these basic technologies you will find working with web developers a lot easier(as well as garnering considerable respect from them). I don't want this post to come off as a rant but I strongly believe that if you want to work in the tech industry you must have a understanding and interest in the technologies that underpin your profession.</div>jamespcolehttp://www.blogger.com/profile/18409422141704485714noreply@blogger.com9