diff --git a/sass/custom/_paulus.scss b/sass/custom/_paulus.scss index a1f761d3932..a52577199fa 100644 --- a/sass/custom/_paulus.scss +++ b/sass/custom/_paulus.scss @@ -102,7 +102,7 @@ h6:hover a.title-link { article.post, article.page, article.listing { img, table { border-radius: 3px; - box-shadow: rgba(0,0,0,0.06) 0 0 10px; + box-shadow: rgba(0,0,0,0.06) 0 0 10px; } img.no-shadow { @@ -120,7 +120,7 @@ article.post, article.page, article.listing { text-align: center; padding-bottom: 3px; font-size: .9rem; - box-shadow: rgba(0,0,0,0.06) 0 0 10px; + box-shadow: rgba(0,0,0,0.06) 0 0 10px; img { display: block; @@ -171,7 +171,7 @@ p.note { &.warning { background-color: #F7F9E1; - + &::before { background-color: rgb(187, 185, 13);; content: "\f071" " Warning " attr(data-title); @@ -217,17 +217,18 @@ p.note { } } -.prep-instructions-container { - #generic-prep, #fedora-prep, #centos-prep, .prep-instructions { +.advanced-installs-container { + + #upstart-install, #systemd-install, .advanced-installs { display: none; } label.menu-selector { display: inline-block; text-align: center; - padding: 10px; + padding: 20px; white-space: nowrap; - border-bottom: 2px solid $grayLight; + border-bottom: 5px solid $grayLight; transition: border-bottom-color .5s; } @@ -235,60 +236,19 @@ p.note { margin-left: 10px; } - #generic-prep:checked ~ .menu-selector.generic, - #fedora-prep:checked ~ .menu-selector.fedora, - #centos-prep:checked ~ .menu-selector.centos + #upstart-install:checked ~ .menu-selector.upstart, + #systemd-install:checked ~ .menu-selector.systemd { border-bottom-color: $blue; } - #generic-prep:checked ~ .prep-instructions.generic, - #fedora-prep:checked ~ .prep-instructions.fedora, - #centos-prep:checked ~ .prep-instructions.centos + #upstart-install:checked ~ .advanced-installs.upstart, + #systemd-install:checked ~ .advanced-installs.systemd { display: block; } - .prep-instructions { - margin-top: 20px; + .advanced-installs { + margin-top: 30px; } } - -.post-instructions-container { - #generic-post, #fedora-post, #debian-post, .post-instructions { - display: none; - } - - label.menu-selector { - display: inline-block; - text-align: center; - padding: 10px; - white-space: nowrap; - border-bottom: 2px solid $grayLight; - transition: border-bottom-color .5s; - } - - label.menu-selector + label.menu-selector { - margin-left: 10px; - } - - #generic-post:checked ~ .menu-selector.generic-post, - #fedora-post:checked ~ .menu-selector.fedora-post, - #debian-post:checked ~ .menu-selector.debian-post - { - border-bottom-color: $blue; - } - - #generic-post:checked ~ .post-instructions.generic-post, - #fedora-post:checked ~ .post-instructions.fedora-post, - #debian-post:checked ~ .post-instructions.debian-post - { - display: block; - } - - .post-instructions { - margin-top: 20px; - } - -} - diff --git a/source/getting-started/advanced.markdown b/source/getting-started/advanced.markdown new file mode 100644 index 00000000000..bf2cf5698d9 --- /dev/null +++ b/source/getting-started/advanced.markdown @@ -0,0 +1,99 @@ +--- +layout: page +title: "Advanced Installation" +description: "Brief advanced installation tutorials." +date: 2015-9-1 22:57 +sidebar: false +comments: false +sharing: true +footer: true +--- + +Here are some general tutorials on how to setup some of the more advanced deployments that are frequently requested. + +
/etc/init.d/
. A sample init script for systems using Upstart is maintained by this project.
+
+To install this script, download it, tweak it to you liking, and install it by following the directions in the header. This script will setup Home Assistant to run when the system boots. To start/stop Home Assistant manually, issue the following commands:
+```bash
+sudo service hass-daemon start
+sudo service hass-daemon stop
+```
+
+When running Home Assistant with this script, the configuration directory will be located at /var/opt/homeassistant
. This directory will contain a verbose log rather than simply an error log.
+
+When running daemons, it is good practice to have the daemon run under its own user name rather than the default user's name. Instructions for setting this up are outside the scope of this document.
+sudo systemctl start home-assistant
should give you a positive feedback.
+
+```bash
+$ sudo systemctl status home-assistant -l
+● home-assistant.service - Home Assistant
+ Loaded: loaded (/usr/lib/systemd/system/home-assistant.service; disabled; vendor preset: disabled)
+ Active: active (running) since Thu 2015-06-25 23:38:37 CEST; 3min 13s ago
+ Main PID: 8557 (python3.4)
+ CGroup: /system.slice/home-assistant.service
+ └─8557 /usr/bin/python3.4 -m homeassistant
+[...]
+```
+
+To get Home Assistant's logging output, simple use journalctl
.
+
+```bash
+sudo journalctl -f -u home-assistant
+```
+The preparation of a Fedora 22 host will only take a couple of minutes. First install Python 3.4 and the other needed packages out of the Fedora Package Collection. This ensure that you receive updates in the future.
- --It's assumed that your user has an entry in the sudoers file. Otherwise, run the commands which needs more privileges as root. -
- -```bash -sudo dnf -y install python3 python3-devel gcc -``` - -CentOS is providing longtime support and often not shipping the latest release of a software component. To run, Python 3.x on CentOS Software Collections needs to be activated.
- -```bash pip3 install homeassistant -hass --open-ui +hass \-\-open-ui ```
Running these commands will:
There is nothing else to do. If you run into any issues, please see the troubleshooting page.
- -If you want to see what Home Assistant can do, you can start the demo mode by running hass --demo-mode
.
In the future, if you want to update to the latest version, run pip3 install --upgrade home-assistant
.
By default, the access to port 8123 is not allowed. If you want to allow other hosts in your local network access, open port 8123.
- -```bash -sudo firewall-cmd --permanent --add-port=8123/tcp -sudo firewall-cmd --reload -``` -Home Assistant will serve its web interface on http://[IP address of the host]:8123.
- -If you want that Home Assistant is lauched automatically, an extra step is needed to setup systemd
. You need a service file to control Home Assistant with systemd
.
You need to reload systemd
to make the daemon aware of the new configuration. Enable and launch Home Assistant after that.
If everything went well, sudo systemctl start home-assistant
should give you a positive feedback.
To get Home Assistant's logging output, simple use journalctl
.
In the future, if you want to update to the latest version, run pip3 install --upgrade home-assistant
.
-Those instructions were written for Fedora 22 Server and Workstation. They may work for Cloud flavor as well but this was not tested. -
- - -Coming soon...
- - - -Installation with Docker is straightforward. Adjust the following command so that /path/to/your/config/
points at the folder where you want to store your config and run it:
This will launch Home Assistant and serve its web interface from port 8123 on your Docker host.
-When using boot2docker on OS X you are unable to map the local time to your Docker container. Replace -v /etc/localtime:/etc/localtime:ro
with -e "TZ=America/Los_Angeles"
(replacing America/Los_Angeles with your timezone)
+When using boot2docker on OS X you are unable to map the local time to your Docker container. Replace -v /etc/localtime:/etc/localtime:ro
with -e "TZ=America/Los_Angeles"
(replacing America/Los_Angeles with your timezone)
Home Assistant uses Python 3.4 which is not shipped with the current Raspbian distibution for the Raspberry Pi. Before installing Home Assistant, you will have to install Python 3.4. -
Home Assistant uses Python 3.4. This makes installation on a Raspberry Pi a bit more difficult as it is not available in the package repository. Please follow the following instructions to get it up and running.
+Once that is complete, installing and running Home Assistant on your local machine is easy. Make sure you have Python 3.4 installed and execute the following code in a console: -Step 1. Install pyenv
- -```bash -curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash -``` - -After the installation is done, run:
- -```bash -nano ~/.bashrc -``` - -Then add these lines to the end of the file and save:
-``` -export PATH="$HOME/.pyenv/bin:$PATH" -eval "$(pyenv init -)" -eval "$(pyenv virtualenv-init -)" -``` - -Log out and then back in so your bashrc is reloaded.
- --NOTE: the rest of the commands are not being run as sudo and will install python etc under you user's home directory. -
- -Step 3. Install python 3.4.2 (this will take a few hours)
- -```bash -pyenv install 3.4.2 -``` - -Step 4. Create Python Virtual Environment
-```bash -pyenv virtualenv 3.4.2 homeassistant -``` - -Step 5. Set the virtual environment
-```bash -cd home-assistant -pyenv local homeassistant -``` - -Step 6. Install Home Assistant
+```bash pip3 install homeassistant +hass \-\-open-ui ``` +
+Running these commands will:
+Step 7. Start it up
+ +If you run into any issues, please see the troubleshooting page. It contains solutions to many of the more commonly encountered issues.
+ +For additional help, in addition to this site, there are three sources: +
In order to update Home Assistant to the latest stable release, simply type the following into a console:
```bash -hass +pip install \-\-upgrade homeassistant +``` +If you would like to stay up to date with the newest unstable builds (alphas, betas, and release candidates), use this command:
+```bash +pip install \-\-upgrade \-\-pre homeassistant ``` -It will be up and running on port 8123
+If you want to see what Home Assistant can do, you can start the demo mode by running hass \-\-demo-mode
. Home Assistant has a few other command line flags that can be displayed by running hass \-\-help
.
From here you may now start configuring Home Assistant to your liking. For more advanced users, the advanced configuration page contains brief tutorials on creating more advanced installations.
-In the future, if you want to update to the latest version, run pip3 install --upgrade home-assistant
.