Skip to content

Instantly share code, notes, and snippets.

@bspavel
Last active August 16, 2018 13:17
Show Gist options
  • Select an option

  • Save bspavel/414ad71c36f2cb9b35c81cbbe4519792 to your computer and use it in GitHub Desktop.

Select an option

Save bspavel/414ad71c36f2cb9b35c81cbbe4519792 to your computer and use it in GitHub Desktop.
OpenHAB2 raspberry pi
#!/bin/bash
#http://robot-on.ru/articles/install-openhab-on-raspberry-pi-orange-pi
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install oracle-java8-jdk -y
java -version
wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | sudo apt-key add -
sudo apt-get install apt-transport-https
echo 'deb https://dl.bintray.com/openhab/apt-repo2 stable main' | sudo tee /etc/apt/sources.list.d/openhab2.list
sudo apt-get update -y
sudo apt-get install openhab2=2.1.0-1 -y
sudo apt-get install openhab2-addons=2.1.0-1 -y
sudo apt-get install openhab2-addons-legacy=2.1.0-1 -y
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable openhab2.service
sudo chown -hR openhab:openhab /etc/init.d/openhab2
sudo chown -hR openhab:openhab /usr/share/openhab2
sudo /bin/systemctl start openhab2.service
sudo /bin/systemctl stop openhab2.service
sudo /bin/systemctl restart openhab2.service
sudo /bin/systemctl status openhab2.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment