-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[Install] Refresh Venv guide #3931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I'd be in favour of using the same location for the virtual environment as is used for Hassbian. Doing that makes it easier to help people regardless of how they've installed it. |
date: 2016-4-16 16:40 | ||
sidebar: true | ||
comments: false | ||
sharing: true | ||
footer: true | ||
redirect_from: /getting-started/installation-virtualenv/ | ||
--- | ||
<p class='note'> | ||
Note: Beginners should check our [Getting started guide](/getting-started/) first. This is for users that require a flexible installation or want to run Home Assistant on any platform. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove Note:
. Again, platform
...no no differentiation about hardware or software. Better leave it out. The note addresses the beginner and shouldn't confuse them.
@@ -1,20 +1,27 @@ | |||
--- | |||
layout: page | |||
title: "Installation in virtualenv" | |||
description: "Instructions how to install Home Assistant in a virtual environment." | |||
title: "Installation: Python virtual envenvironment" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the advantage of starting to prefix the title with the section where the doc is located?
Also, there is a typo in envenvironment
.
```bash | ||
$ cd $HOME | ||
$ mkdir homeassistant | ||
$ virtualenv -p python3 homeassistant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer $ python3 -m venv homeassistant
. As this is the same way it's described in the official Python documentation.
date: 2016-4-16 16:40 | ||
sidebar: true | ||
comments: false | ||
sharing: true | ||
footer: true | ||
redirect_from: /getting-started/installation-virtualenv/ | ||
--- | ||
<p class='note'> | ||
Note: Beginners should check our [Getting started guide](/getting-started/) first. This is for users that require a flexible installation or want to run Home Assistant on any platform. | ||
<p class='note'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's will lead to invalid HTML after rendering if the checks fail.
|
||
```bash | ||
$ sudo adduser --system homeassistant | ||
$ sudo addgroup homeassistant | ||
``` | ||
|
||
Home Assistant stores its configuration in `$HOME/.homeassistant` by default, so in this case, it would be in `/home/homeassistant/.homeassistant` | ||
Home Assistant stores it's configuration in `$HOME/.homeassistant` by default, so in this case, it would be in `/home/homeassistant/.homeassistant`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be its
. Here it should be a possessive pronoun.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😢 thanks... I should refresh my english
### {% linkable_title Finally... Run Home Assistant %} | ||
|
||
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`. | ||
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 it's configuration in the user's home directory, we need to be the user `homeassistant` user or specify the configuration with `-c`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stores its configuration
not stores it's configuration
### {% linkable_title Upgrading Home Assistant %} | ||
|
||
Upgrading Home Assistant is simple, just repeat steps 3, 5 and 6. | ||
The `-H` flag is important. It sets the `$HOME` environment variable to `/home/homeassistant` so `hass` can find it's configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
@@ -94,13 +94,13 @@ $ source /srv/homeassistant/bin/activate | |||
|
|||
## {% linkable_title Run Home Assistant (Basic guide step 4) %} | |||
|
|||
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 it's configuration in the user's home directory, we need to be the user `homeassistant` user or specify the configuration with `-c`. | |||
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`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an extra user
before homeassistant
.
### {% linkable_title Step 0: Install some dependencies %} | ||
### {% linkable_title Basic guide %} | ||
|
||
The basic guide is for testing Home Assistant. Also check the advanced guide below for productional instances. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"...for instances used in production."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐦
#3929