Advertisement
techblog

install HA

Aug 15th, 2018
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | None | 0 0
  1. #Become the new user (When acting as the user "homeassistant" sudo is not needed).
  2. sudo su -s /bin/bash homeassistant
  3.  
  4. #setup the new virtual environment
  5. virtualenv -p python3 /srv/homeassistant
  6.  
  7. #Activate the virtual environment (After that, your prompt should include (homeassistant)).
  8. source /srv/homeassistant/bin/activate
  9.  
  10. #Install home assistant!
  11. pip3 install --upgrade homeassistant
  12.  
  13. #Run command (to logout from the user)
  14. exit
  15.  
  16. #Test that HA is working
  17. sudo -u homeassistant -H /srv/homeassistant/bin/hass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement