Last active
October 30, 2020 17:40
-
-
Save bmweiner/9c1c71424f40e9226c0d9497beb7ee41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# installs home assistant core on raspberry pi | |
# | |
# source: https://www.home-assistant.io/docs/installation/raspberry-pi/ | |
# | |
# pre-requisite | |
# install Raspberry PI OS | |
# ssh into pi clone this script and execute | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get -y install python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5 | |
sudo useradd -rm homeassistant -G dialout,gpio,i2c | |
cd /srv | |
sudo mkdir homeassistant | |
sudo chown homeassistant:homeassistant homeassistant | |
sudo -u homeassistant -H -s | |
cd /srv/homeassistant | |
python3 -m venv . | |
source bin/activate | |
python3 -m pip install wheel | |
pip3 install homeassistant | |
hass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment