Skip to content

Commit

Permalink
Update Install Instructions for DSM 6.0 (home-assistant#393)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MinchinWeb authored and fabaff committed Apr 15, 2016
1 parent f12bf1a commit 9f1c37d
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions source/getting-started/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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'>

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:

Expand All @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -283,7 +289,7 @@ $ sh hass-daemon restart
- Upgrade Home Assistant::

```bash
$ python3/pip3 install --upgrade homeassistant
$ python3 -m pip install --upgrade homeassistant
```

</div> <!-- INSTALL-INSTRUCTIONS SYNOLOGY -->
Expand Down

0 comments on commit 9f1c37d

Please sign in to comment.