Update Install Instructions for DSM 6.0 (#393)

Changes from DSM 5.2:

- Synology Python package is now Python 3.5 (was 3.4)
- it appears the install location for the Python binaries has changed
- does not assume `pip` is installed with the Python package (it wasn't on my machine)
- `-r` wasn't an option for `chown` or `chmod`, but `-R` is (applies the commands recursively. I'm not sure whether this was originally a typo, or I have a different version of these commands
- `chmod` flags set to `660` for the `/volume1/homeassistant` directory made it so that the admin users can't enter it. `664` seems to work well.
This commit is contained in:
MinchinWeb 2016-04-15 15:44:17 -06:00 committed by Fabian Affolter
parent f12bf1a0e0
commit 9f1c37d3c5

View File

@ -97,7 +97,7 @@ You have to restart Home Assistant (`hass` itself or with the help of the autost
<div class='install-instructions synology' markdown='1'> <div class='install-instructions synology' markdown='1'>
The following configuration has been tested on Synology 415+ running DSM 5.2-5644 Update 3. The following configuration has been tested on Synology 413j running DSM 6.0-7321 Update 1.
Running these commands will: Running these commands will:
@ -111,10 +111,16 @@ Using the Synology webadmin:
SSH onto your synology & login as admin or root SSH onto your synology & login as admin or root
Check the path to python3 (assumed to be /usr/local/python3/bin) Check the path to python3 (assumed to be /volume1/@appstore/py3k/usr/local/bin)
```bash ```bash
$ cd /usr/local/python3/bin $ cd /volume1/@appstore/py3k/usr/local/bin
```
Install PIP (Python's package management system)
```bash
$ python -m ensurepip
``` ```
Use PIP to install Homeassistant package Use PIP to install Homeassistant package
@ -141,7 +147,7 @@ DNAME="Home Assistant"
# Others # Others
USER="homeassistant" USER="homeassistant"
PYTHON_DIR="/usr/local/python3/bin" PYTHON_DIR="/volume1/@appstore/py3k/usr/local/bin"
PYTHON="$PYTHON_DIR/python3" PYTHON="$PYTHON_DIR/python3"
HASS="$PYTHON_DIR/hass" HASS="$PYTHON_DIR/hass"
INSTALL_DIR="/volume1/homeassistant" INSTALL_DIR="/volume1/homeassistant"
@ -240,21 +246,21 @@ esac
Create links to python folders to make things easier in the future: Create links to python folders to make things easier in the future:
```bash ```bash
$ ln -s /usr/local/python3/bin python3 $ ln -s /volume1/@appstore/py3k/usr/local/bin python3
$ ln -s /usr/local/python3/lib/python3.4/site-packages/homeassistant $ ln -s /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/homeassistant
``` ```
Set the owner and permissions on your config folder Set the owner and permissions on your config folder
```bash ```bash
$ chown -r homeassistant:users /volume1/homeassistant $ chown -R homeassistant:users /volume1/homeassistant
$ chmod -r 660 /volume1/homeassistant $ chmod -R 664 /volume1/homeassistant
``` ```
Make the daemon file executable: Make the daemon file executable:
```bash ```bash
$ chmod -r 777 /volume1/homeassistant/hass-daemon $ chmod 777 /volume1/homeassistant/hass-daemon
``` ```
Copy your configuration.yaml file into the config folder Copy your configuration.yaml file into the config folder
@ -283,7 +289,7 @@ $ sh hass-daemon restart
- Upgrade Home Assistant:: - Upgrade Home Assistant::
```bash ```bash
$ python3/pip3 install --upgrade homeassistant $ python3 -m pip install --upgrade homeassistant
``` ```
</div> <!-- INSTALL-INSTRUCTIONS SYNOLOGY --> </div> <!-- INSTALL-INSTRUCTIONS SYNOLOGY -->