### Raspberry Pi Installation

Installation openHAB on a Raspberry Pi based on openHAB v1.8.1.
openHAB Folders
Create the folders as user Root
$mkdir /opt/openhab
$mkdir /opt/openhab/addons
openHAB Downloads
Download the files from the openHAB download site:
http://www.openhab.org/getting-started/downloads.html
Select Runtime and AddOns.
Files:
distribution-1.8.1-runtime.zip
distribution-1.8.1-addons.zip
The files are downloaded to a PC, then transferred via WinSCP to the openHAB folders.
The default is initially via user Root with folowing steps:
Login as user Pi and get root priviledges
$sudo -i
$mkdir /home/pi/temp
transfer the files from PC to the temp folder:
$mv /home/pi/temp/distribution-1.8.1-runtime.zip /opt/openhab
$mv /home/pi/temp/distribution-1.8.1-addons.zip /opt/openhab/addons
Note on AddOns:
To save resources, select only the addon bindings as required.
If additional required, copy from a folder which contains all the bindings (like /opt/openhab/addonsall)
Unzip
Unzip the distributions
$cd /opt/openhab
$unzip distribution-1.8.1-runtime.zip
$rm distribution-1.8.1-runtime.zip
Change Ownership from Root to Pi for the openHAB folder structure
This is a must as it enables to make changes as user Pi which is the default login user.
$sudo chown -hR pi:pi /opt/openhab
After doing so, new or changes to items, rules etc. can then be made as user Pi via (for example) WinSCP with an external editor.
Start openHAB
Open a Terminal (either on the Raspberry Pi desktop) or via Putty.
Invoke from the folder /opt/openhab:
$./start.sh
If started first time, it will take some time. Errors might occur as all bindings are loaded but not used.
Pressing Ctrl+C will stop openHAB.
Start openHAB during Boot

Changed: , Category: WebApps openHAB, File: T6C228M1681.htm, ID: 1681