Skip to content

Instantly share code, notes, and snippets.

@frenck
Last active February 1, 2023 05:38
Show Gist options
  • Save frenck/32b4f74919ca6b95b30c66f85976ec58 to your computer and use it in GitHub Desktop.
Save frenck/32b4f74919ca6b95b30c66f85976ec58 to your computer and use it in GitHub Desktop.
Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine
Unbuntu is no longer support by the Home Assistant project.
The installation commands previous listed here, are not up 2 date, not recommended, not supported and, therefore, removed.
@fireheadman
Copy link

Any updates to this? trying to install hassio on ubuntu 18.04

@Dorky106
Copy link

bash: line 1: 404:: command not found
Please help

I'm having the same issue.

@Vinestou
Copy link

Hi guys. Line 8 can be replaced with:


curl -Lo installer.sh https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh
bash installer.sh

@frenck
Copy link
Author

frenck commented Nov 21, 2020

This should not be used anymore.

I'm therefore removing the content of this gist.

@gr33k
Copy link

gr33k commented Dec 21, 2020

Why has this been broken? I removed my containers and re-ran the script only to be surprised by 404 errors. I'm running the newer installer.sh and it's ALMOST working ....except that homeassistant frontend won't install it seems. Very sad if this isn't supported anymore.. This was working great on my Fedora 31 system (docker) with a few tweaks to the script (minimal detection of apparmor and dbus).

@snipes040
Copy link

snipes040 commented Dec 21, 2020

@gr33k lol this has been long gone.... Here are the officially supported ways to install HomeAssistant:

https://www.home-assistant.io/docs/installation/

@gr33k
Copy link

gr33k commented Dec 21, 2020

Thank you @snipes040 - I am trying the Supervised version here and the same results - it installs after commenting out dbus and apparmor (Fedora 31..got it working like this in hassio_installer.sh) as expected. However, I still don't have homeassistant installed/running...am I missing something? I don't see any errors and the output shows:

[info] Home Assistant supervised is now installed
[info] First setup will take some time, when it's ready you can reach it here:
[info] http://192.168.10.144:8123

I'm not sure why it's not attempting to install it. Supervisor is setup and working properly as far as I can tell...I can remove the containers and it appears to rebuild/start them. This is great! but no HA ? puzzled here :(
Screen Shot 2020-12-20 at 4 34 50 PM

Note: I am using -d to tell it where my previous installation was located at - not sure if that's relevant perhaps:
sudo ./installer.sh -d /data/Containers/hassio

Script as I am using it is almost like original besides the two commented out lines:
https://paste.thec0de.com/?f3fcd70c26f617c9#4YFwnSdVSSkQcqCSkM1U237S6i3hrnctjSZfxUs8St9D

@gr33k
Copy link

gr33k commented Dec 21, 2020

Sadly nobody has an answer to a script that was working fine before the creator decided to pull the original code.

Could you please put back the old code the way it was - post that it's NOT supported, and make old and new users happy? I hate it when code is pulled folks. There's no need to kill old code that works great for people :(

@frenck
Copy link
Author

frenck commented Dec 21, 2020

@gr33k I guess you meant to say:

"I don't now how to look into revision history in GitHub"

Or

"Where can I find information about installing a Home Assistant Supervised system?"

So revisions can be found here:

image

However, as I stated in the current contents, that is outdated, doesn't work and isn't supported either.

The installer Home Assistant Supervised installer can be found here: https://github.com/home-assistant/supervised-installer


There's no need to kill old code that works great for people :(

I didn't. Your own knowledge of GitHub is the thing lacking here. And honestly, if you don't know how this stuff here on GitHub works already, I would strongly recommend NOT to use the Supervised based installation method. It is expected someone to have an independent and sufficiently of level technical knowledge (which considering your answer is not the case).

@gr33k
Copy link

gr33k commented Dec 21, 2020

@frenck the script itself gets 404 because the links no longer are valid. It would have been nice if they didn't 404 - but if you're saying they wouldn't work anymore anyway....ok fair enough.

I'd love to have a currently supported script that works I suppose - I did use that link you and snipes040 provided. Everything installs except for Home Assistant itself. Any idea why it wouldn't install the container? I've removed the old one and nothing is listening on 8123 of course. How can I debug this? No errors are displayed and I'm not sure what part of the script is particularly failing...I thought supervisor was supposed to create it?

Thank you

@frenck
Copy link
Author

frenck commented Dec 21, 2020

@gr33k I linked the source repository containing the installer script: https://github.com/home-assistant/supervised-installer. Which is actively maintained.

If you need support on setting up an instance, I highly recommend joining the Home Assistant Discord server: https://www.home-assistant.io/join-chat. Please, be sure to have a supported setup, one that matches the requirements listed in the supervised-installer repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment