mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Minor changes
This commit is contained in:
parent
bfad4a5c4e
commit
d7777727cf
@ -13,7 +13,7 @@ footer: true
|
|||||||
|
|
||||||
Python 3.5.3 or later is required.
|
Python 3.5.3 or later is required.
|
||||||
|
|
||||||
Setup Python and `pip`
|
Setup Python and `pip`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo apt-get update
|
$ 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:
|
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/)
|
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:
|
2. Alternatively, you can install Home Assistant for the user you created when first booting Armbian:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo pip3 install homeassistant
|
$ sudo pip3 install homeassistant
|
||||||
$ hass --open-ui
|
$ hass --open-ui
|
||||||
```
|
```
|
||||||
|
|
||||||
Running these commands will:
|
Running these commands will:
|
||||||
|
|
||||||
- Install Home Assistant
|
- Install Home Assistant
|
||||||
|
@ -20,6 +20,7 @@ First of all install the software collection repository as root. For example, on
|
|||||||
```bash
|
```bash
|
||||||
$ yum install centos-release-scl
|
$ yum install centos-release-scl
|
||||||
```
|
```
|
||||||
|
|
||||||
Install some dependencies you'll need later.
|
Install some dependencies you'll need later.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -23,14 +23,14 @@ and Home Assistant itself.
|
|||||||
$ pip3 install homeassistant
|
$ 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
|
```bash
|
||||||
$ sudo mkdir -p /opt/homeassistant
|
$ sudo mkdir -p /opt/homeassistant
|
||||||
$ sudo useradd -rm homeassistant -G dialout
|
$ sudo useradd -rm homeassistant -G dialout
|
||||||
$ sudo chown -R homeassistant:homeassistant /opt/homeassistant
|
$ 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
|
```bash
|
||||||
$ sudo -u homeassistant -H -s
|
$ sudo -u homeassistant -H -s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user