20 Commits

Author SHA1 Message Date
RockBomber
cbd38fbaea Adding definition of logfile variable to rc.d script (#11646)
With this instruction a have an error after starting service:
```
# sysrc homeassistant_enable="YES"
homeassistant_enable:  -> YES
# service homeassistant start
install: : No such file or directory
Starting homeassistant.
daemon: open: Permission denied
/usr/local/etc/rc.d/homeassistant: WARNING: failed to start homeassistant
```
There is needs to define logfile variable in rc.d script
2020-01-07 15:54:33 +01:00
Troy Prelog
a4e6ff1e7a Update Freenas docs (#11585)
* updated rc.d script

Add extra_commands

	check_config - checks config using `hass --script check_config`
	upgrade - stops HA / upgrade / checks config / starts HA (only starts if config check passes)
	test - simple test to check directories / activate venv / check version of python and homeassistant
	restart - (modified) check_config / stop HA /start HA (only restart if config check passes)

NOTE: All extra_commands REQUIRE bash to be installed
	`pkg install bash`

I also removed the check_config from the pre_start function because because it will prevent HA from starting
if the configuration is missing (Like a clean install from example). NO BUENO!

Another case to consider haveing no configuration even after initial install is troubleshooting or testing.
For instance with rc.d script createing a fresh config is simple.

Let's suppose my working config is at
	`/home/hass/homeassistant`

Now to get a clean configuration I can just do this
	service homeassistant stop
	sysrc sysrc homeassistant_config_dir="/home/hass/ha_test_config"
	service homeassistant start

That's it! Configuration wise, it's a clean install. To switch back to working config I just
	service homeassistant stop
        sysrc sysrc homeassistant_config_dir="/home/hass/homeassistant"
        service homeassistant start

Awesome right?! But that doesn't work if check_config fails during pre_start

* add pkgs

These are not required to install HA but they are quickly missed once you start to actual use it. Let's just avoid
some fustration from the start. I don't think this list should be all inclusive but these basic things seem to be
frequently needed from the start.

	autoconf |
	gmake    | - looking at you Z-Wave, Stream, IKEA Tradfri
	pkgconf  |

	bash - Give me bash or give me death! Seriously, it makes life easier. There's not alot of *BSD focus
		around HA. I only use *BSD because of FreeNAS -- Typically (with the exception of jails) FreeNAS is webui.
		I'm ok with Linux cli and it's very similiar to FreeNAS but not the same. It's not bash. I don't think it
		needs to be for the root user either. But having bash installed and used by the HA user makes it easier
		to follow along with exising documentation for other virtualenv type installs when trying to further expand
		your HA installation

* give me bash or give me death!

Most people won't notice a differene but we'll know in our hearts we did the right thing.

* fix typo

I'm lucky I can spell my name

* whitespace

* use venv

Use the built-in venv instead of virtualenv which must be installed seperate.
2020-01-05 10:29:16 +01:00
Alexander Schneider
ea749a53ba Update ZWave installation instructions (#11589) 2020-01-02 13:02:36 +01:00
Ville Skyttä
4567163c1f Grammar and spelling fixes (#11455) 2019-12-14 18:16:50 +01:00
Eirik Z
6a7b7430bb Fixed two errors (#11005)
Added the group rights for the dev files, and a missing asterisk in the ls command
2019-10-27 10:09:27 +01:00
Eirik Z
eeaecd9e98 Added zwave instructions (#10965) 2019-10-26 14:29:19 +02:00
Robin
c270342dde Add instructions for upgrading Home Assistant on FreeNAS (#10900) 2019-10-20 12:10:25 +02:00
Eirik Z
40edfd7d9d My own notes from running it was wrong (#10799)
Verified full procedure from start to finish is working, tested three times in a freenas jail
2019-10-15 19:22:40 +02:00
Eirik Z
5b41bb0abc Update with working instructions (#10663)
* Update with working instructions

Old instructions failed to include virtualenv, also failed to actually start HA as the config directory it default creates was wrong, and empty.

* Minor changes
2019-10-08 15:57:05 +02:00
Robin
1386728091 Remove hashes in front of commands (#10219)
On the website they look like commented lines
2019-08-25 12:25:46 +02:00
SimonThoustrup
0315f476c2 Change sequence of commands to virtualenv before activate (#9980) 2019-07-27 23:40:57 +02:00
Franck Nijhof
c464056402
Making our website faster, cleaner and prettier (#9853)
* 🔥 Removes octopress.js

* 🔥 Removes use of root_url var

* 🔥 Removes Octopress generator reference from feed

* 🔥 Removes delicious support

* 🔥 Removes support for Pinboard

* 🔥 Removes support for Disqus

* 🔥 Removes support for Google Plus

* ↩️ Migrate custom after_footer to default template

* ↩️ Migrate custom footer to default template

* ↩️ Migrate custom header to default template

* 🔥 Removes unused template files

* 🚀 Places time to read directly in post template

* 🚀 Removes unneeded capture from archive_post.html template

* 🔥 🚀 Removes unused, but heaving sorting call in component page

* 🚀 Merged javascripts into a single file

* 🔥 Removes more uses of root_url

* 🚀 Removal of unneeded captures from head

* 🔥 🚀 Removal of expensive liquid HTML compressor

* 🔥 Removes unneeded templates

* 🚀 Replaces kramdown with GitHub's CommonMark 🚀

* 💄 Adds Prism code syntax highlighting

*  Adds support for redirect in Netlify

* ↩️ 🔥 Let Netlify handle all developer doc redirects

* ✏️ Fixes typo in redirects file: Netify -> Netlify

* 🔥 Removes unused .themes folder

* 🔥 Removes unused aside.html template

* 🔥 Removes Disqus config leftover

* 🔥 Removes rouge highlighter config

* 🔥 Removes Octopress 🎉

* 💄 Adjust code block font size and adds soft wraps

* 💄 Adds styling for inline code blocks

* 💄 Improve styling of note/warning/info boxes + div support

* 🔨 Rewrites all note/warning/info boxes
2019-07-15 22:17:54 +02:00
Franck Nijhof
1833c32a2c Cleans up front matter (#9835)
* Sets front matter defaults

* Removes default front matter from section templates/pages

* Removes default front matter from addon pages

* Removes default front matter from integration pages

* Removes default front matter from posts

* Removes default front matter from docs pages

* Removes default front matter from other pages

* Fixes blog category pages
2019-07-11 14:35:08 -07:00
jasonbuechler
8ca60a728f pkg-update doesn't have "assume yes" flag (#9218)
I'm guessing the -y was meant to be on pkg upgrade, instead?

from pkg help update:
     pkg update [-fq] [-r reponame]
     pkg update [--{force,quiet}] [--repository reponame]
2019-04-16 09:16:21 +02:00
David Beitey
c27b6ad50b Update install docs for FreeNAS 11.2 (#9206)
* Update install docs for FreeNAS 11.2

This includes some best-practice improvements (such as running Home
Assistant as a limited-access user vs root), using Python 3.7 to install
and adding a BSD-style service to manage and test configuration.

* Fix typo
2019-04-13 13:33:35 +02:00
Florian Klien
d3589d9518 typos fixed (#6582) 2018-10-07 10:58:35 -04:00
overkill32
5e3e8f59a5 Update freenas.markdown (#4307)
* Update freenas.markdown

The example provided for a chained command to mkdir /home and /home/.homeassistant was missing the second mkdir command.  A copy and paste of this example would fail.

* Update freenas.markdown

Updated mkdir commands to use '-p' option.
2018-01-03 21:34:05 +01:00
John
b714fe0af7 added home folder creation as not there by default (#3297)
added home folder creation as not there by default
2017-09-03 07:37:56 -04:00
Otto-G
9a39b8e1ec Add auto start code and information for Z-wave stick (#2857)
* Add auto start code and information for Z-wave stick

* Update format
2017-06-20 21:28:40 +02:00
Greg
f09c0ddc55 added install instructions for FreeNAS, added the logo image as well (#2392) 2017-04-07 21:37:56 +02:00