Category Archives: ubuntu

Install Eclipse Juno/Kepler on Ubuntu

If you use Ubuntu Software Center to install eclipse only 3.8 is available but not 4.X.

Here is how to install it manually by manually downloading the eclipse IDE package.

  •          Download the eclipse tar.gz package from here.
  •          Then righ-click the eclipse tar.gz and choose the extract here option to extract the tar.gz package. You can also use the command line to extract the tar.gz package.
# tar xzf eclipse-cpp-juno-linux-gtk.tar.gz
  •           Move the extracted eclipse in the  /opt/ folder.Before running the below command be sure that you are in the directory which contains extracted eclipse folder.
# mv eclipse /opt/
  •             Use sudo if the above command gives permission denied message.
# sudo mv eclipse /opt/
  •        Create a desktop file and place it into /usr/share/applications
# sudo gedit /usr/share/applications/eclipse.desktop
  • and copy the following to the eclipse.desktop file
[Desktop Entry]
Comment=Integrated Development Environment
  • Create a symlink in /usr/local/bin using
 # cd /usr/local/bin
 # sudo ln -s /opt/eclipse/eclipse
  •  launch eclipse.

# /opt/eclipse/eclipse  -clean  &

If your eclipse does not start then you need to make sure /opt/eclipse/eclipse is there and executable.

Install Aptana Studio on Ubuntu

1) Prerequisites:

sudo apt-get install libjpeg62 libwebkitgtk-1.0-0 git-core

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

2) Download Aptana Studio:

3) Extract Aptana Studio

sudo unzip [name of Aptana Studio ZIP file here].zip -d /opt

4) Add shortcut

create file AptanaStudio3.desktop with content:

[Desktop Entry]
Name=Aptana Studio 3
GenericName=Integrated Development Environment
Comment=Aptana Strudio 3 Integrated Development Environment
Exec=/opt/Aptana_Studio_3/AptanaStudio3 %F
StartupWMClass="Aptana Studio 3"


sudo mv AptanaStudio3.desktop /usr/share/applications/AptanaStudio3.desktop

Install and use Arduino on Ubuntu

As in many other cases using Ubuntu Software Centre to install packages does not give you the most recent version and with Arduino Software is the same case.


1) make sure you have java installed

2) download the newest arduino software from here:

3) install the compiler (gcc-avr) and the libraries (avr-libc) packages:

sudo apt-get install gcc-avr avr-libc

4) if you use the USB port to dialog, you should add yourself to the group ‘dialout’ in order to have write permissions on that port:

sudo usermod -aG dialout <your-user>

note that you need to log out the log in again or alternatively change the permissions on the port (more unsafe and has to be done every time you switch it on/off)

sudo chmod 666 /dev/ttyACM0 (for serial or /dev/ttyUSB0 for usb)

5) finally :

  • run ./arduino
  • select the board
  • select the port

Enjoy 🙂

Setup Ubuntu 13.04 raring for Android building

So what’s up with Ubuntu 13.04 raring and android building?
Basically the process is no different than 12.04 except that you need to uses the raring bins and of course correct oracle JDK ppa.

1) check that in your /etc/apt/sources.list you have

 deb raring partner
 deb-src raring partner
deb raring main
 deb-src raring main

not “lucid”

2) as I worote in
install Oracle JDK this way:

sudo add-apt-repository ppa:webupd8team/java
 sudo apt-get update && sudo apt-get install oracle-java6-installer

then as usual:

$ sudo apt-get install git gnupg flex bison gperf build-essential \
  zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
  libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/ /usr/lib/i386-linux-gnu/

and off you go 🙂

Install Oracle JDK on Ubuntu

This is a tutorial to manually install Oracle JDK on Ubuntu linux.

Hint: check bottom for the easiest solution.

Installing JDK6 using:

$ sudo add-apt-repository "deb lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk

will no longer work as the package has been removed completely from the partner archive due to license issue,

You can install OpenJDK instead

sudo apt-get install openjdk-6-jdk

However building Android with openjdk may not always work smoothly. (

Here are the instruction how to install Oraclr JDK manually:

1) Download; the 32bit or 64bit Linux “compressed binary file” – it has a “.bin” file extension

chmod u+x jdk-6u32-linux-i586.bin




 sudo mv jdk1.6.0_32 /usr/lib/jvm/


 sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0_32/bin/java" 1
 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_32/bin/javac" 1
sudo update-alternatives --install "/usr/lib/mozilla/plugins/" "" "/usr/lib/jvm/jdk1.6.0_32/jre/lib/i386/" 1
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config
7) Check setup with 
java -version
sic@sic:~$ java -version
java version "1.6.0_32"
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
Java HotSpot(TM) Server VM (build 20.7-b02, mixed mode)

Alternatively you can do the following:

sudo add-apt-repository ppa:webupd8team/java

This will add the webupd8team PPA to your system for updated builds of Java 6/7/8 JDK (you need 6 for Android build) (
Then to install/update java you just need to :

 sudo apt-get update && sudo apt-get install oracle-java6-installer

enjoy 🙂