Getting Started – openHAT

Getting openHAT Up & Running

What You Need

Pine A64+ Board
Power Supply That Provides 5V 2.0 Amps
A PC With A SD Card Reader
A Minimum 8GB MicroSD Card
Disk Imaging Utility Etcher (Linux/Windows/Mac)

Step 1 Preparation


openHAB Image base on Ubuntu Linux Longsleep image

  • You need to agree on Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX in order to download
  • openHAB Image Download
  • Suitable for 1GB/2GB Pine A64+ Board, not advise to run on 512MB Pine A64 Board
  • This is a “headless” build, the setup process thru serial console, no digital video output.
  • Login with
    • username: openhab
    • password: changeit
  • Execute script to resize the root partition in order to fully utilize the SD Card
  • Includes Oracle JDK 1.8.0
  • openHAB is installed in /opt/openhab
  • openHAB is started as a system service, you can use systemctl for it:
    • sudo systemctl status openhab
    • sudo systemctl stop openhab
    • sudo systemctl start openhab
  • Initial boot can take a few minutes before http://openhab:8080 becomes available.
  • For getting started with openHAB, please refer to

You will require Disk Imaging Utility Etcher (Linux/Windows/Mac) to write the image to your SD card. Download Etcher Linux/Windows/Mac version accordingly and install into your PC.

Step 2 Imaging SD Card

Let’s insert your MicroSD card into your PC/laptop card reader (may require micro to sd converter card) then proceed to use Etcher.

You should see the following


Now click on “Select image” to select the openHAT image you previously downloaded.  Once selected, click “Select drive” select your SD card drive.  To burn the image to your SD card simply click on “Flash!”.

Once the image has been written to your SD card be sure to close the application and to eject/remove your SD card safely from Windows/Linux/Mac.

Step 3 Booting

Now insert your SD card into the PINE A64+ and power it on by connecting the power adapter cable to the MicroUSB port.

This is a “headless” build, the setup process thru serial console, no digital video output.

Once booted, login with the provided credentials for the image downloaded and execute the following commands:

sudo -i

The preceding commands will resize your root partition to max available space your SD card can provide.