Install HASSIO on Raspberry pi 4 Raspbian Buster (with Windows PC)

How to install Hassioon Raspberry 4 - Raspbian Buster (2020-01-18)
After a few days of frustration here is how I installed Hassio on my Raspberry. :sweat:

  1. Download raspbian_latest.zip

  2. Flash using BalenaEtcher

  3. Eject and insert SD card into the PC

  4. Create empty file ssh.txt in the root (in the only one partition accessible from Windows

  5. Create file wpa_supplicant.conf in the root
    This file shoud contain

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
	update_config=1
	country=fr
	
	network={
	    ssid="***My WiFi Network name***"
	    psk="***The password to join my WiFi***"
	    key_mgmt=WPA-PSK
	}
  1. Reboot the Raspberry (wait about 2 minutes, to be sure :))

  2. Find the IP address of booted Raspberry (accessing the WiFi router, using application like ā€œfingā€,

  3. Start a Putty session and connect to the discovered IP address.

  4. Log with username pi and password raspberry

  5. Change this password using the command

pi@raspberrypi:~# passwd

  1. Configure a fixed IP address
    sudo nano /etc/dhcpcd.conf
    Add these lines at the end
	interface wlan0
	static ip_address=**192.168.50.210**/24
	static routers=**192.168.50.1**
	static domain_name_servers=**192.168.50.1**
  1. reboot your device to be sure it uses the correct IP address.
    Note that you may have to clear the arp cache of your PC if the choosen address is not the one it got from its first boot :wink:

  2. Update of Rasbian

sudo -i
apt-get update
apt-get install vlc-bin
apt-get upgrade
  1. reboot
    To get everything OK

  2. Install Docker-ce

sudo apt autoremove

curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh

sudo systemctl enable docker

sudo systemctl start docker

sudo usermod -aG docker pi
  1. Install Hassio using docker
sudo apt-get install jq apparmor-utils socat network-manager

*reboot your device, the network-manager installation seems to make the connection not stable anymore*

sudo apt-get purge modemmanager

sudo -i
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s -- -m raspberrypi4
journalctl -f -u  hassio-supervisor
  1. Connect to http://192.168.50.210:8123 (this is my own configuration, the address you have to put here is the one of your Raspberry :wink: )

  2. Create your local account and let HomeAssistant create the environment

  3. The famous configuration.yaml is located in /usr/share/hassio/homeassistant
    (Thanks Tediore :))

root@raspberrypi:~# ls /usr/share/hassio/homeassistant -al
total 396
drwxr-xr-x  6 root root   4096 Jan 18 12:50 .
drwxr-xr-x 10 root root   4096 Jan 18 09:22 ..
-rw-r--r--  1 root root      2 Jan 18 09:26 automations.yaml
drwxr-xr-x  2 root root   4096 Jan 18 09:26 .cloud
-rw-r--r--  1 root root    388 Jan 18 09:26 configuration.yaml
drwxr-xr-x  2 root root   4096 Jan 18 09:26 deps
-rw-r--r--  1 root root      0 Jan 18 09:26 groups.yaml
-rw-r--r--  1 root root      7 Jan 18 09:26 .HA_VERSION
-rw-r--r--  1 root root 360448 Jan 18 12:50 home-assistant_v2.db
-rw-r--r--  1 root root      0 Jan 18 09:26 scenes.yaml
-rw-r--r--  1 root root      0 Jan 18 09:26 scripts.yaml
-rw-r--r--  1 root root    157 Jan 18 09:26 secrets.yaml
drwxr-xr-x  2 root root   4096 Jan 18 12:47 .storage
drwxr-xr-x  2 root root   4096 Jan 18 09:26 tts

I hope this will help you

Kind regards,
Dom

4 Likes

~/.homeassistant

Thatā€™s for a venv install. For the Hassio on Linux install method the config directory is /usr/share/hassio/homeassistant on the host.

1 Like

Thanks Tediore.

I adapt my original post with your info :wink:

Tediore, I thought the latest versions used /.homeassistant as Tom was referring to ???
Not certain, thatā€™s why I ask.

AFAIK nothingā€™s changed. Only reason I know the location is because Iā€™m running Hassio on Raspbian lite.

What would (should?) that be listed as here?

I was thinking the same thing. I suppose I could add a note showing where the files are at on the host for the generic Linux install instead of just where theyā€™re at in the container.

Is there another version ? :rofl:
I think the last time I installed a desktop version of any flavour of Linux was nearly 20years ago.
Though Iā€™m SOOOOOOOOO pissed off with Windows 10 Iā€™m going to run one soon. (itā€™s just that my software investment will require a venv for that (Arghhhhh !))

tom_l

there are mainly 2 ways to install Hassio :smiley:

  1. Download the full image hassio and boot from this image
    This way prevents you to manage the real host (your Raspberry).
    But, it has the advantage to offer a ā€œplug und playā€ environment
  2. Install Hassio over a running Raspberry (like this method).
    The way to interact with HomeAssistant is the same, but, it let you use the Raspberry for any other application in parallel

Dom

1 Like

Iā€™m not using the Rasbian Lite, but the "
Raspbian Buster with desktop and recommended software"
one :wink:

Dom

1 Like

Not in my mind :stuck_out_tongue:

Although I did (briefly) try out the GNOME desktop environment and it seemed pretty slick.

Thatā€™s what Iā€™m going for but the raspbian install to ssd needs an ssd that plays ball. So far 5 controllers failed even following the guidelines for the last two :sob:

Yikes. Iā€™m using a PNY SSD with a Sabrent adapter if that helps.

I installed it on a Micro SD card (that is made for video).

It does the job (128 GB)

Okay, I just like running all my monitors from my workstation and using Web / ssh for anything else.
Different strokes for different folks. :smiley:

I have both of those (the sabrent was to mount the aeotec z wave stick later) but whatā€™s its purpose here ?

@DominiqueGEORGES an SD is still an SD in my book, Iā€™d still prefer an ssd, they are better designed for the read/write cycles

Maybe I misunderstood you. I meant a Sabrent USB-SATA adapter.

Mutt,
you are right for the higher reliability of an SSD, but ā€¦ yur SSD will be connected thru your USB bus.

This USB bus if far to be a Ferrari.
Questions :

  • Will your Rasberry be faster using a SSD rather than using a high quality Micro SD ?
  • Does it worthwhile to loose a USB port for that ?

I know. I have both.