mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +00:00
Fedora improvements (#7774)
* Remove group gpio from Installation instructions for Fedora That group doesn't exist on Fedora by default. I believe it makes more sense to add homeassistant to that group later when that group needs to be created. * sudo to homeassistant before virtualenv is activated on Fedora Very similar approach to Debian-based installation needs to be done here. In the previous block of commands user homeassistant is created and directories are chowned to him. If one would try to run followup pip3 install or even hass itself as current user he wouldn't be able to write to those directories or that homeassistant user would be just useless.
This commit is contained in:
parent
be88529373
commit
e74db7b344
@ -27,12 +27,13 @@ To isolate the Home Assistant installation a [venv](https://docs.python.org/3/li
|
||||
|
||||
```bash
|
||||
$ sudo mkdir -p /opt/homeassistant
|
||||
$ sudo useradd -rm homeassistant -G dialout,gpio
|
||||
$ 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.
|
||||
|
||||
```bash
|
||||
$ sudo -u homeassistant -H -s
|
||||
$ cd /opt/homeassistant
|
||||
$ python3.6 -m venv .
|
||||
$ source bin/activate
|
||||
|
Loading…
x
Reference in New Issue
Block a user