Minor changes

This commit is contained in:
Fabian Affolter 2019-02-14 14:33:42 +01:00
parent bfad4a5c4e
commit d7777727cf
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F
3 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,7 @@ footer: true
Python 3.5.3 or later is required.
Setup Python and `pip`
Setup Python and `pip`:
```bash
$ sudo apt-get update
@ -23,10 +23,12 @@ $ sudo apt-get install python3-dev python3-pip
Now that you installed python, there are two ways to install Home Assistant:
1. It is recommended to install Home Assistant in a virtual environment to avoid using `root`, using the [VirtualEnv instructions](/docs/installation/virtualenv/)
2. Alternatively, you can install Home Assistant for the user you created when first booting Armbian:
```bash
$ sudo pip3 install homeassistant
$ hass --open-ui
```
Running these commands will:
- Install Home Assistant

View File

@ -20,6 +20,7 @@ First of all install the software collection repository as root. For example, on
```bash
$ yum install centos-release-scl
```
Install some dependencies you'll need later.
```bash

View File

@ -23,14 +23,14 @@ and Home Assistant itself.
$ pip3 install homeassistant
```
To isolate the Home Assistant installation a [venv](https://docs.python.org/3/library/venv.html) is handy. First create a new directory to store the installation and adjust the permissions.
To isolate the Home Assistant installation a [`venv`](https://docs.python.org/3/library/venv.html) is handy. First create a new directory to store the installation and adjust the permissions.
```bash
$ sudo mkdir -p /opt/homeassistant
$ sudo useradd -rm homeassistant -G dialout
$ sudo chown -R homeassistant:homeassistant /opt/homeassistant
```
Now switch to the new directory, setup the venv, and activate it.
Now switch to the new directory, setup the `venv`, and activate it.
```bash
$ sudo -u homeassistant -H -s