Installing Home Assistant Supervised on Ubuntu 18.04.4

I should have a Debian version up later today

I’ve not seen that guide for some time, but from memory it was the old ‘hass.io’ install. If it used the script that no longer works, then it was essentially the same as this. I just forked the script and edited out the errors that stopped it working.

You don’t need Portainer, but I find it useful. Always be careful when using Portainer, you can cause yourself problems.

You could do that, but not something that I have done or recommend.

/usr/share/hassio/homeassistant

I would suggest, backup your YAML and storage files, format and start over.

1 Like

Thank you for the reply,

What’s the benefit of using Portainer and is the installation method I posted above the correct?

Portainer can be handy if you have an issue with a Docker container and want to access logs, delete and remove images and containers. If you don’t know what you are doing, you can cause issues for yourself by deleting the wrong container/image, so always use caution.

I install Portainer using this command.

sudo docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
1 Like

Thank you for this excellent detailed guide. I did this type of install a while back and would have appreciated a guide like this at that time. I see where you linked to the “Backing up and Restoring your configuration” document earlier in the post, but I don’t see a link to the other document “Install Samba, Portainer and MQTT on Ubuntu Server 18.04.04”. Would it be possible for you to link to that, for completeness?

I’d like to be able to do all I normally do in a venv (modify system files) so I need to get my feet wet before making the switch.

In your post you had this directory as the config directory, do the HA core files also exist here? I am talking about files like this: core/homeassistant/components/neato at dev · home-assistant/core · GitHub and also the python libraries that get installed. Sometimes gotta dig deep to fix something real quick so I normally edit those.

Sorry, I misunderstood the initial question. It’s been a little while I have needed to get in and edit like this, but I believe this should get you to the correct location.

sudo docker exec -t -i homeassistant /bin/bash
cd /usr/src/homeassistant/homeassistant/components
1 Like

Thanks for the guide, good job! I hope it can repair my broken system :slight_smile:

On thing:
1.10) Next will be Installer Update . We do necessarily need to update the installer, so select CONTINUE WITHOUT UPDATING.
I assume you mean: We do not necessarily need to update the installer

Yes, thanks for the correction.

Ran this - worked excellent - Restored my config backup…all good.

Rebooted…but now nothing is in my docker. HA is not starting.

carsten@nuc-server:~$ sudo docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
carsten@nuc-server:~$ sudo docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

I am clearly missing something here to restart the docker after reboot of Ubuntu…please assist

Edit (thanks Jason):
I ran the curl command again…after reboot it came up fine. Also had remembered my restore…weird :slight_smile:

1 Like

Hey, great guide - thank you very much for this! I just installed it on my HTPC running Ubuntu LTS 18.04. I can see the containers in portainer as well. Now my questions:

  • Using the Google Drive backup should work in theory, right? I just that on my PI to restore and backup all of my config (link: https://github.com/sabeechen/hassio-google-drive-backup)

  • Are there any steps necessary to use a CC2531 stick (or Z-Wave stick) in order to use Zigbee2MQTT for example? Or should that work out of the box when I plug in my zigbee stick into my HTPC?

Yes. If you have made a snapshot, download it from Google drive to you PC and transfer it to /usr/share/hassio/backup on the new machine. Depending on what add-on you used, they may not all restore, but you can reinstall easily.

I didn’t have any issues moving from one machine to another with zigbee2mqtt when I restored a backup. You may need to reconfigure the address of the CC2531 in the zigbee2mqtt config.

1 Like

Would there be any value to explain the security risk involved in running an unexamined shell script? For example, Pi-hole’s installation instructions mention it and offer alternatives:
Pi-hole: One step automated install

FWIW, when the installation script was still available from the official repo, I reviewed it prior to executing it. It only took a few minutes and gave me insight into what it was doing to my server.

I don’t disagree. I’ll add that as an edit tomorrow when I don’t have the contents of a bottle of red wine in me :wink:

2 Likes

Thanks and cheers! :wine_glass:

1 Like

Great guide, but please change the title to include (on intel/amd). I received my brand new Rbpi 4 8 Gb this afternoon, but the guide does not really work. Anyway, I’m running already ubuntu and HA from a HDD.

Good idea, I will do that. I have an updated Pi install guide using Raspberry Pi OS (Raspbian) coming tomorrow.

3 Likes

@kanga_who thank you for your continued work on community based documentation. It’s folks like you that allowed me to try and succeed at migrating to HA. I always knew that Home Assistant was where I would end up because of the its HUGE footprint, but just never had the time to wrap my head around all the moving parts. It can be very intimidating when you don’t understand the various terms and even more confusing when trying to pick an install method.
It was walk-throughs like the ones that you are creating that allowed me to get my feet wet without the fear of drowning.
I just wanted to say that I really appreciate you taking the time to put these together. I’ve had to make documentation in the past and it’s a painfully tedious task and can be really exhausting because you have to constantly try to think like someone you are not.
Bravo sir :clap:

2 Likes

Thanks mate. I’m glad you find it helpful. :+1:

Thanks for the reply! Before doing that, I actually just the “restore” button from the GUI under supervisor --> snapshots…and it worked! Even Zigbee2MQTT is up an running as a docker container, didn’t even have to reconfigure the adress of the CC2531. So maybe add that to the guide, super easy to restore. Just did a snapshot with the Google Drive add-on (https://github.com/sabeechen/hassio-google-drive-backup), turned off the Raspi, ran the script to install it on my linux machine and did a restore!

The only thing that did not work was HACS, obviously. i wanted to reinstall it but I am not able to locate the folder you mentioed. I am not able to see anything under my usr - no share, no hassio, nothing. Where are the config files located?

Thanks in advance!

EDIT: nevermind, I am just a linux noob. Found the folder.

1 Like

TIA.

Just as I get Raspbian working on my new SSD - your timing could hardly be better. Waiting with bated breath.