http://steintoretosse.wordpress.com/2014/02/04/installing-raspbian-and-openhab-on-my-raspberry-pi/
mkdir openhab
cd openhab
wget https://openhab.googlecode.com/files/openhab-runtime-1.3.1.zip
unzip openhab-runtime-1.3.1.zip
wget https://openhab.googlecode.com/files/openhab-demo-configuration-1.3.1.zip
unzip openhab-demo-configuration-1.3.1.zip
Move the openhab/configurations/rules/demo.rules out of the openhab folder, or remove all the rules that include “say” (not yet implemented)
Make sure the openhab/start.sh is runnable:
chmod ug+x start.sh
Make sure the user starting openHAB is in the dialout-group:
sudo usermod -a -G dialout pi
Start openHAB by running
./start.sh
If something goes wrong, look at the post i refer to at bullet points 12 to 14
Open a web browser and go to http://raspberry-ip:8080/openhab.app?sitemap=demo
ZWAVE add the following to the openhab/start.sh script (line starting with java, not at the end, but somewhere in the middle:
1
-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0