Archive for the ‘installation and Upgrades’ Category

From Xubuntu Precise to Raring (kernel upgrade only)

August 6th, 2014 No comments

I wanted to prevent some problems I found while installing the Linux TV software. I was advised to set up a newer kernel

Warning: these instructions are not meant for a production system. You can always go back to your distro’s original kernel but there is no guarantee.


Before upgrading, just make sure that your distro is up to date:

Update your repository information

sudo apt-get update

update to the the Raring Ringtail distro kernel and headers (3.8)

sudo apt-get install linux-image-generic-lts-raring
sudo apt-get install linux-headers-generic-lts-raring

and then reboot.

Grub will keep an option for you to log on to your original distro’s kernel

After rebooting, confirm that your kernel is 3.8 by running:

uname -a
Linux <your hostname> 3.8.0-44-generic #66~precise1-Ubuntu SMP Tue Jul 15 04:04:23 UTC 2014 i686 i686 i386 GNU/Linux


Install Oracle JDK 7 on Lubuntu 14.04 Trusty Tahr

May 4th, 2014 2 comments

The default Lubuntu 14.04 does not include either OpenJDK or Oracle JRE or JDK by (confirm by running the ‘java’ command from the comand line)

Example results. Running the java command on a base Lubuntu installation:

ubu@myubupc:~$ java
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.8-jre-headless
* openjdk-7-jre-headless
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
Try: sudo apt-get install <selected package>

The Java SDK is the foundation for other development tools such as Eclipse, the Android SDK, or NetBeans.

  • Start by locating Java 7 from the Oracle Java SE website

  • Select the ‘Downloads’ tab.

  • We are downloading Java SE 7 as it is the most stable version. Click on the ‘Download’ button below the ‘JDK’ label


  • On the downloads page, click on the ‘Accept License Agreement’ radio button followed by the option that says ‘Linux x86′  and .tar.gz file (Note: the RPM version is the same content, but it used by the RPM Package Manager in distributions other than Ubuntu)

Example file name: jdk-7u71-linux-i586.tar.gz

  • After downloading the file, make sure to copy it to your home folder

For example:

cp ~/Downloads/jdk-7u71-linux-i586.tar.gz ~
  • From the home folder, extract the archive:
cd ~
tar -xvf <JDK's gz file name>

This will result in a new folder at your home folder called jdk<jdk version>_<jdk revision>

for example:

  • Now it is time to move this folder to a new folder in /usr/lib

sudo mkdir -p /usr/lib/jvm
sudo mv ~/jdk1.7.0_71 /usr/lib/jvm

  • Update the links used in Lubuntu so that the newly downloaded JDK will be used when commands such as ‘java’ or ‘javac’ get invoked:

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_71/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_71/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0_71/bin/javaws" 1

Parameter 1 at the end of the update-alternatives is the one that allows the highest priority to be given to Oracle’s JDK.

  • It is also necessary to provide execution permissions to the main Java commands

sudo chmod a+x /usr/bin/java
sudo chmod a+x /usr/bin/javac
sudo chmod a+x /usr/bin/javaws

  • And to change ownership of the JDK folder to user root, group root

sudo chown -R root:root /usr/lib/jvm/jdk1.7.0_71

So from this moment, when you invoke the java command you should be invoking Java Oracle

For example:

java -version


java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) Client VM (build 24.71-b01, mixed mode)

Related Articles Installing Oracle’ proprietary Java JDK

After upgrading Ubuntu: reconfigure XBMC repository

August 31st, 2013 No comments

After upgrading Ubuntu from Quantal to Raring, the XBMC repository is disabled and you need to enable it back again in order to keep XBMC software up to date.

The steps to enable it again follow a similar structure as the ones for installation:

From the command line, run:

sudo apt-get update
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get upgrade xbmc

In my case, I received the following message before upgrading XBMC:

The following packages will be upgraded:
libcec2 libgksu2-0 libshairport1 xbmc xbmc-bin xbmc-pvr-argustv
xbmc-pvr-dvbviewer xbmc-pvr-mediaportal-tvserver xbmc-pvr-mythtv-cmyth
xbmc-pvr-nextpvr xbmc-pvr-njoy xbmc-pvr-tvheadend-hts xbmc-pvr-vdr-vnsi
14 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.7 MB of archives.
After this operation, 5,120 B disk space will be freed.