Skip to content

Commit 8efb104

Browse files
mhutchfabaff
authored andcommitted
Fix some hass/homeassistant inconsistencies (home-assistant#1731)
1 parent e700eac commit 8efb104

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

source/getting-started/installation-virtualenv.markdown

+15-15
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This can be anywhere you want. As example we put it in `/srv`. You also need to
4444

4545
```bash
4646
$ sudo mkdir /srv/homeassistant
47-
$ sudo chown hass /srv/homeassistant
47+
$ sudo chown homeassistant /srv/homeassistant
4848
```
4949

5050
### {% linkable_title Step 3: Become the new user %}
@@ -73,21 +73,21 @@ $ virtualenv -p python3 /srv/homeassistant
7373
$ source /srv/homeassistant/bin/activate
7474
```
7575

76-
After that, your prompt should include `(hass)`.
76+
After that, your prompt should include `(homeassistant)`.
7777

7878
### {% linkable_title Step 6: Install Home Assistant %}
7979

80-
Once your virtualenv has been activated, you don't need to `sudo` any of your `pip` commands. `pip` will be installing things in the virtualenv, which the `hass` user has permission to modify.
80+
Once your virtualenv has been activated, you don't need to `sudo` any of your `pip` commands. `pip` will be installing things in the virtualenv, which the `homeassistant` user has permission to modify.
8181

8282
```bash
83-
(hass)$ pip3 install --upgrade homeassistant
83+
(homeassistant)$ pip3 install --upgrade homeassistant
8484
```
8585

8686
And that's it... you now have Home Assistant installed, and you can be sure that every bit of it is contained in `/srv/homeassistant`.
8787

8888
### {% linkable_title Finally... Run Home Assistant %}
8989

90-
There are two ways to launch Home Assistant. If you are **in** the virtualenv, you can just run `hass` and it will work as normal. If the virtualenv is not activated, you just use the `hass` executable in the `bin` directory mentioned earlier. There is one caveat... Because Home Assistant stores its configuration in the user's home directory, we need to be the user `hass` user or specify the configuration with `-c`.
90+
There are two ways to launch Home Assistant. If you are **in** the virtualenv, you can just run `hass` and it will work as normal. If the virtualenv is not activated, you just use the `hass` executable in the `bin` directory mentioned earlier. There is one caveat... Because Home Assistant stores its configuration in the user's home directory, we need to be the user `homeassistant` user or specify the configuration with `-c`.
9191

9292
```bash
9393
$ sudo -u homeassistant -H /srv/homeassistant/bin/hass
@@ -101,13 +101,13 @@ Upgrading Home Assistant is simple, just repeat steps 3, 5 and 6.
101101

102102
### {% linkable_title Starting Home Assistant on boot %}
103103

104-
The [autostart instructions](/getting-started/autostart/) will work just fine, just be sure to replace `/usr/bin/hass` with `/srv/hass/bin/hass` and specify the `hass` user where appropriate.
104+
The [autostart instructions](/getting-started/autostart/) will work just fine, just be sure to replace `/usr/bin/hass` with `/srv/homeassistant/bin/hass` and specify the `homeassistant` user where appropriate.
105105

106106
### {% linkable_title Installing python-openzwave %}
107107

108108
If you want to use Z-Wave devices, you will need to install `python-openzwave` in your virtualenv. This requires a small tweak to the instructions in [the Z-Wave Getting Started documentation](/getting-started/z-wave/)
109109

110-
Install the dependencies as normal (Note: you will need to do this as your normal user, since `hass` isn't a sudoer).
110+
Install the dependencies as normal (Note: you will need to do this as your normal user, since `homeassistant` isn't a sudoer).
111111

112112
```bash
113113
$ sudo apt-get install cython3 libudev-dev python3-sphinx python3-setuptools
@@ -116,17 +116,17 @@ $ sudo apt-get install cython3 libudev-dev python3-sphinx python3-setuptools
116116
Then, activate your virtualenv (steps 3 and 5 above) and upgrade cython.
117117

118118
```bash
119-
(hass)$ pip3 install --upgrade cython==0.24.1
119+
(homeassistant)$ pip3 install --upgrade cython==0.24.1
120120
```
121121

122122
Finally, get and install `python-openzwave`.
123123

124124
```bash
125-
(hass)$ mkdir /srv/homeassistant/src
126-
(hass)$ cd /srv/homeassistant/src
127-
(hass)$ git clone https://github.com/OpenZWave/python-openzwave.git
128-
(hass)$ cd python-openzwave
129-
(hass)$ git checkout python3
130-
(hass)$ PYTHON_EXEC=`which python3` make build
131-
(hass)$ PYTHON_EXEC=`which python3` make install
125+
(homeassistant)$ mkdir /srv/homeassistant/src
126+
(homeassistant)$ cd /srv/homeassistant/src
127+
(homeassistant)$ git clone https://github.com/OpenZWave/python-openzwave.git
128+
(homeassistant)$ cd python-openzwave
129+
(homeassistant)$ git checkout python3
130+
(homeassistant)$ PYTHON_EXEC=`which python3` make build
131+
(homeassistant)$ PYTHON_EXEC=`which python3` make install
132132
```

0 commit comments

Comments
 (0)