Raspberry Pi – How to install PiPlug

This guide will explain how to install PiPlug on your Raspberry Pi, this is the descripion of PiPlug from their github page :

“PiPlug provides an extensible front-end for the Raspberry Pi allowing small Java plug-ins written using Eclipse SWT (very small overhead — no full Eclipse footprint). The PiPlug runtime dynamically finds your preferred apps from a daemon on your network, which can be automatically run from within Eclipse, using the PiPlug Deploy view.”

You will need Eclipse installed on your PC and a Raspberry Pi with a Raspbian image flashed to it and updated.

Firstly we need to install the PiPlug apps in Eclipse on our host PC (mine is 64-bit Ubuntu 14.04), to do this go to HELP > INSTALL NEW SOFTWARE and then paste in this link :



Next click WINDOW > SHOW VIEW > OTHER > PIPLUG DEPLOY to add app management. Now we need to clone some example PiPlug apps :

$ git clone https://github.com/Genuitec/piplug-apps.git

If this fails to work (which it did for me) the work around is to download the zip file from here :


Now we need to import the apps into Eclipse (unzip them first) FILE > IMPORT then click the GENERAL tab and choose EXISTING PROJECTS INTO WORKSPACE and run through the next couple of screens, remember to tick the tick boxes or you wont import anything :

Now we need to deploy each of the projects by right-clicking and pressing DEPLOY :


Now we move onto the Raspberry Pi, you will need a basic Raspbian image installed and updated. Then you need to install these modules :

$ sudo apt-get install binfmt-support gnome-mime-data libbonobo2-0 \
libbonobo2-common libbonoboui2-0 libbonoboui2-common libcanberra0 \
libfam0 libgnome2-0 libgnome2-common libgnomecanvas2-0 \
libgnomecanvas2-common libgnomeui-0 libgnomeui-common \
libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libice-dev \
libidl0 libnspr4 libnss3 libnss3-1d liborbit2 libpthread-stubs0 \
libpthread-stubs0-dev libsm-dev libswt-cairo-gtk-3-jni \
libswt-gtk-3-jni libswt-webkit-gtk-3-jni libx11-dev libx11-doc \
libxau-dev libxcb1-dev libxdmcp-dev libxt-dev ttf-dejavu-extra \
x11proto-core-dev x11proto-input-dev x11proto-kb-dev \
xorg-sgml-doctools xtrans-dev libgtk2.0-dev libxtst-dev \
libgl1-mesa-dev libglu1-mesa-dev

After this is complete we install the latest Java 8 runtime :

$ wget –no-check-certificate \ http://www.java.net/download/jdk8/archive/b132/binaries/jdk-8-fcs-b132-linux-arm-vfp-hflt-03_mar_2014.tar.gz

$ cd /opt

$ sudo tar zxvf jdk-8-fcs-b132-linux-arm-vfp-hflt-03_mar_2014.tar.gz

$ sudo update-alternatives –install “/usr/bin/java” “java” “/opt/jdk1.8.0/bin/java” 1

$ java -version

If Java 8 is not running by default (the last command will tell you this)  then :

$ cd /usr/bin

$ sudo rm java

$ sudo ln -s /opt/jdk1.8.0/bin/java java

Now we download the latest PiPlug frontend from github :

$ wget https://github.com/Genuitec/piplug/releases/download/v1.0.2/piplug-frontend-1.0.2.tgz

$ tar -xvzf piplug-frontend-1.0.2.tgz

If you haven’t already booted to the desktop to do any of this then do so with the command startx and finally run the PiPlug frontend with this command :

$ piplug-frontend/piplug

Now you can create and deploy your own apps through your Raspberry Pi. Enjoy !



Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s