mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-29 14:26:50 +00:00

* 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.
1.4 KiB
1.4 KiB
layout, title, description, date, sidebar, comments, sharing, footer
layout | title | description | date | sidebar | comments | sharing | footer |
---|---|---|---|---|---|---|---|
page | Installation on Fedora | Installation of Home Assistant on your Fedora computer. | 2017-03-01 07:00 | true | false | true | true |
Fedora is an operating system based on the Linux kernel, developed by the community-supported Fedora Project. There are releases for x86 and x86_64 including ARM and other architectures.
Install the development package of Python.
$ sudo dnf -y install python3-devel redhat-rpm-config
and Home Assistant itself.
$ pip3 install homeassistant
To isolate the Home Assistant installation a venv is handy. First create a new directory to store the installation and adjust the permissions.
$ 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.
$ sudo -u homeassistant -H -s
$ cd /opt/homeassistant
$ python3.6 -m venv .
$ source bin/activate
Install Home Assistant itself.
$ pip3 install homeassistant colorlog
Check the autostart section in the documentation for further details and the Firewall section if you want to access your Home Assistant installation.