PiPlug
PiPlug provides an extensible front-end for the Raspberry Pi allowing small Java plug-ins to be written using Eclipse SWT (very small overhead -- no full Eclipse footprint). The PiPlug runtime connects to a PiPlug daemon that services apps on your local network, with automatic discovery. A plug-in for Eclipse gives you a simple view to upload your apps dynamically to the daemon with them automatically becoming available.
The following is an example view:
The PiPlug front-end gives you a simple and familiar way to deploy applications to your various Pis in your home. You and your family and friends can simply use the cool apps you've built.
Getting Started
To get started, you will first install the PiView plug-in into your Eclipse IDE.
Go to Help : Add/Remove Software
Copy and paste this site into the dialog:
http://genuitec.github.com/piplug/updatesite
Choose to install the PiPlug view into your Eclipse
Use Window : Show View : Other : PiPlug Deploy to add app management
Check out Example applications from GitHub:
git clone https://github.com/Genuitec/piplug-apps.git
Import the projects into your workspace
Choose which examples to deploy, and use the Deploy option in the PiPlug Deploy view
Next, you will install PiPlug on your actual Raspberry Pi.
-
On your Pi, install needed 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
-
Install the latest Java 8 runtime (check version at https://jdk8.java.net/download.html):
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
-
Confirm that Java 8 is activated as default (running java -version), if not:
cd /usr/bin sudo rm java sudo ln -s /opt/jdk1.8.0/bin/java java
-
Download the latest PiPlug front-end 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
-
Run the PiPlug front-end!
piplug-frontend/piplug
Example Applications
Other applications in the example include Zork 1, 2 and 3 games from the Infocom Emulator, a Snake game ported from the SWT example games, and a simple Clock.