element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Forget Me Not Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Forget Me Not Design Challenge
  • More
  • Cancel
Forget Me Not Design Challenge
Blog HOW-TO: Installing openHAB on the Raspberry Pi
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: tekmeister
  • Date Created: 5 Aug 2014 12:53 PM Date Created
  • Views 1845 views
  • Likes 3 likes
  • Comments 2 comments
  • forget_me_not
  • iot_modern_security
Related
Recommended

HOW-TO: Installing openHAB on the Raspberry Pi

tekmeister
tekmeister
5 Aug 2014

If you've followed my earlier post, you'll have a Pi with up-to-date packages, and you'll know how to log in.

 

The next step is to get openHAB up and running.

 

Java Check

If you are running Raspbian, java is already pre-installed.

 

Check this by running java -version

image

 

Copying files to the Pi

Probably the easiest way to transfer files to/from the Pi is to use SFTP - this is enabled by default on Raspbian. I use the free Filezilla client (WinSCP is another popular free choice).

 

Enter sftp://<IP address of Pi> in the Filezilla host field, and also input the username and password, then click "Quickconnect". After a successful connection you'll be able to see the remote folder on your Pi and you can copy or move files to/from the device.

 

Downloading files from the Pi

You can also download directly from the Pi using a tool called wget. For example, the command:

 

wget https://github.com/openhab/openhab/releases/download/v1.5.0/distribution-1.5.0-runtime.zip

 

will download the latest version of the openHAB runtime to the current folder.

 

Get openHAB

The latest version is 1.50, available from here: openHAB - empowering the smart home

You will need the runtime core and addons.

 

wget https://github.com/openhab/openhab/releases/download/v1.5.0/distribution-1.5.0-runtime.zip
wget https://github.com/openhab/openhab/releases/download/v1.5.0/distribution-1.5.0-addons.zip

 

It's probably a good idea to get the demo setup as well.

wget https://github.com/openhab/openhab/releases/download/v1.5.0/distribution-1.5.0-demo-configuration.zip

 

 

Installing openHAB

Well it seems I was beaten to this bit by fvan with his post ForgetMeNot - Week 1: EnOceanPi and Sensors. He has listed a great guide to unzipping the files and starting openHAB on the Pi.

 

openHAB designer on Windows

In order to run the designer on your Windows PC, you will need to ensure that you have the JVM installed. Installers are available here. If you're not sure which one you need, the "x86 offline" is probably the best bet.

 

The latest designer release is on the openHAB downloads page. Unzip it and run.

 

Syncing between Windows and the Pi

I'm still playing with the best way to develop on Windows and then deploy to the Pi. Installing SAMBA and mounting the share (as per the linked post in "Installing openHAB") will also work for a Windows PC, but I don't like to install too much on the Pi. Currently I'm just running a local copy of openHAB on Windows for testing and then transferring files to the Pi with Filezilla. I plan to look into using Swish to mount the SSH folder.

  • Sign in to reply

Top Comments

  • fvan
    fvan over 11 years ago +1
    I agree that using samba should not be part of the final build (nor configuring a password for the root account etc ...) But as I'm developing directly on the Pi and wanted to avoid the hassle of transferring…
  • dumbo25
    dumbo25 over 9 years ago +1
    Thank you for the directions! I got stuck trying to use openHAB's apt-get. So, I reverted to using download ing the jar zip files using wget like you suggest. I wanted the latest version of openHAB, and…
  • dumbo25
    dumbo25 over 9 years ago

    Thank you for the directions! I got stuck trying to use openHAB's apt-get. So, I reverted to using download ing the jar zip files using wget like you suggest. I wanted the latest version of openHAB, and updated the instructions to download the latest version of openHAB. My changes are here: Install OpenHAB on Raspberry Pi - All

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fvan
    fvan over 11 years ago

    I agree that using samba should not be part of the final build (nor configuring a password for the root account etc ...)

    But as I'm developing directly on the Pi and wanted to avoid the hassle of transferring files over and over again, I concluded this was the most efficient approach during development.


    Frederick

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube