diff --git a/sass/custom/_paulus.scss b/sass/custom/_paulus.scss index 68a093af9cb5..0a140ea0a569 100644 --- a/sass/custom/_paulus.scss +++ b/sass/custom/_paulus.scss @@ -189,5 +189,42 @@ p.note { } } +.prep-instructions-container { + #generic-prep, #fedora-prep, #centos-prep, .prep-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-prep:checked ~ .menu-selector.generic, + #fedora-prep:checked ~ .menu-selector.fedora, + #centos-prep:checked ~ .menu-selector.centos + { + border-bottom-color: $blue; + } + + #generic-prep:checked ~ .prep-instructions.generic, + #fedora-prep:checked ~ .prep-instructions.fedora, + #centos-prep:checked ~ .prep-instructions.centos + { + display: block; + } + + .prep-instructions { + margin-top: 20px; + } +} + diff --git a/source/getting-started/index.markdown b/source/getting-started/index.markdown index 220084e9f748..de8a2831f923 100644 --- a/source/getting-started/index.markdown +++ b/source/getting-started/index.markdown @@ -18,8 +18,77 @@ footer: true
+

Preparation

+ +
+ + + + + + + + +
Installing and running Home Assistant on your local machine is easy. Make sure you have Python 3.4 and git installed and execute the following code in a console: + +
+ +
+

The preparation of a Fedora 22 host will only take a couple of minutes. First install Python 3.4, git 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 git 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.

+ +
Step 1. Install the tools for the Software Collection
+ +```bash +sudo yum -y install scl-utils +``` + +
Step 2. Make the repository available.
+ +```bash +sudo yum -y install rhscl-rh-python34-*.noarch.rpm +``` + +
Step 3. Install Python 3.x
+ +```bash +sudo yum -y install rh-python34 +``` + +
Step 4. Start using software collections:
+ +```bash +sudo scl enable rh-python34 bash +``` + +
+ +
+ +
+ + + + + + +

Installation

+

```bash git clone --recursive https://github.com/balloob/home-assistant.git @@ -87,7 +156,7 @@ eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" ``` -

Step 2. Install requirements

+
Step 2. Install requirements
```bash sudo apt-get install python3-dev @@ -138,3 +207,4 @@ python3 -m homeassistant
###[Next step: configuring Home Assistant »](/getting-started/configuration.html) +