From 9f1c37d3c53103a84c84d5d7a6acd1e54210ffa4 Mon Sep 17 00:00:00 2001 From: MinchinWeb Date: Fri, 15 Apr 2016 15:44:17 -0600 Subject: [PATCH] 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. --- source/getting-started/index.markdown | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/source/getting-started/index.markdown b/source/getting-started/index.markdown index 352d0a21bcb..e8128992ab4 100644 --- a/source/getting-started/index.markdown +++ b/source/getting-started/index.markdown @@ -97,7 +97,7 @@ You have to restart Home Assistant (`hass` itself or with the help of the autost
-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: @@ -111,10 +111,16 @@ Using the Synology webadmin: 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 -$ 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 @@ -141,7 +147,7 @@ DNAME="Home Assistant" # Others USER="homeassistant" -PYTHON_DIR="/usr/local/python3/bin" +PYTHON_DIR="/volume1/@appstore/py3k/usr/local/bin" PYTHON="$PYTHON_DIR/python3" HASS="$PYTHON_DIR/hass" INSTALL_DIR="/volume1/homeassistant" @@ -240,21 +246,21 @@ esac Create links to python folders to make things easier in the future: ```bash -$ ln -s /usr/local/python3/bin python3 -$ ln -s /usr/local/python3/lib/python3.4/site-packages/homeassistant +$ ln -s /volume1/@appstore/py3k/usr/local/bin python3 +$ ln -s /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/homeassistant ``` Set the owner and permissions on your config folder ```bash -$ chown -r homeassistant:users /volume1/homeassistant -$ chmod -r 660 /volume1/homeassistant +$ chown -R homeassistant:users /volume1/homeassistant +$ chmod -R 664 /volume1/homeassistant ``` Make the daemon file executable: ```bash -$ chmod -r 777 /volume1/homeassistant/hass-daemon +$ chmod 777 /volume1/homeassistant/hass-daemon ``` Copy your configuration.yaml file into the config folder @@ -283,7 +289,7 @@ $ sh hass-daemon restart - Upgrade Home Assistant:: ```bash -$ python3/pip3 install --upgrade homeassistant +$ python3 -m pip install --upgrade homeassistant ```