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.
@mercenaruss
Copy link

Hello to everyone, when I try to run the last command it responds:

[Info] Install supervisor Docker container                                                                                                               
[Info] Install supervisor startup scripts                                                                                                                
[Info] Install AppArmor scripts                                                                                                                          
[Info] Run Hass.io  

I'm trying to run it in Container station on QNAP, with a Ubuntu system v 16.04 LXC
Any suggestions?
Thank you very much for the help.

Can you provide some instructions/installation method on this?
I have QNAP TS-253Be and trying hard to not use VM.
thank you in advance.

@sciaio
Copy link

sciaio commented Feb 27, 2020

Can you provide some instructions/installation method on this?
I have QNAP TS-253Be and trying hard to not use VM.
thank you in advance.

Hi @mercenaruss

Unfortunately I abandoned the installation via docker or LXC because of many complications. I am currently using it on a linux VM in Virtualization Station on Ubuntu 18.04, and with a core and 1 GB of RAM it is more than enough.

@wasn-eu
Copy link

wasn-eu commented Feb 27, 2020

any news on this failure ?

OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused "write sysctl key kernel.domainname: open /proc/sys/kernel/domainname: permission denied"": unknown")#033[0m

@dheath73
Copy link

I'm trying this script on Debian 10 and got to the end then when I run this command:-
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s

I get this:-
bash line 1: 404:: command not found

Has the github location changed as hassio is now called Home Assistant?

Thanks

@dheath73
Copy link

Just looking around and I think it might have changed to this link now??

curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s

I'll try it and let you know how I get on.

@dheath73
Copy link

Yep, I can confirm the link has changed and is working. Please use this one in the future:-

curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s

@ADX88
Copy link

ADX88 commented Apr 1, 2020

I am using OMV(openmediavault) where already docker and portainer is installed on.
Now I wanted to install hassio in my docker.

After doing the following commands:
sudo -i
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
apt-get install apparmor-utils avahi-daemon dbus jq network-manager socat
curl -sL https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh | bash -s -- -m raspberrypi3

i cannot reach my OMV and portainer installation.
Anyone idea what broke my installation?

@drmilos
Copy link

drmilos commented Apr 3, 2020

Yep, I can confirm the link has changed and is working. Please use this one in the future:-

curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s

Worked several days ago. Today it doesn't work.

@falithurrahman
Copy link

Is there any update on this issue?

Yep, I can confirm the link has changed and is working. Please use this one in the future:-
curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s

Worked several days ago. Today it doesn't work.

Is there any update on this issue? I am having the same problem. Thanks

@abdelamrani
Copy link

I encountered the same error (bash: line 1: 404:: command not found) while running the command curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s
Using the command from the official website did the trick :
docker run --init -d --name="home-assistant" -e "TZ=America/New_York" -v /PATH_TO_YOUR_CONFIG:/config --net=host homeassistant/home-assistant:stable

@abdelamrani
Copy link

I encountered the same error (bash: line 1: 404:: command not found) while running the command curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s
Using the command from the official website did the trick :
docker run --init -d --name="home-assistant" -e "TZ=America/New_York" -v /PATH_TO_YOUR_CONFIG:/config --net=host homeassistant/home-assistant:stable

This was for Home Assistant and not HASSIO.
The command for HASSIO docker installation is curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s
The link has changed.

@mqzabin
Copy link

mqzabin commented May 9, 2020

Actually, as I saw, theres no relation between this script and debian/ubuntu based distros. It's work for any non-obscure distro.

@JePeSWE
Copy link

JePeSWE commented May 12, 2020

When trying to run this curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s
I get this msg:
[Warning] This installer is no longer supported.
[Warning]
[Warning] Home Assistant might work today, tomorrow maybe not.
[Warning]
[Warning] If you want more control over your own system, run
[Warning] Home Assistant as a VM or run Home Assistant Core
[Warning] via a Docker container.
[Warning]
Please typ "not supported" to continue this installation
bash: rad 17: syntaxfel nära den oväntade symbolen ”then”

Sorry for the last row, its in swedish.
Im runing docker in OVM. curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s this worked before, but now it doesn´t.
/jerry

@NSkyRivers
Copy link

When trying to run this curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s
I get this msg:
[Warning] This installer is no longer supported.
[Warning]
[Warning] Home Assistant might work today, tomorrow maybe not.
[Warning]
[Warning] If you want more control over your own system, run
[Warning] Home Assistant as a VM or run Home Assistant Core
[Warning] via a Docker container.
[Warning]
Please typ "not supported" to continue this installation
bash: rad 17: syntaxfel nära den oväntade symbolen ”then”

Sorry for the last row, its in swedish.
Im runing docker in OVM. curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s this worked before, but now it doesn´t.
/jerry

I have the very same issue when installing hassio on Ubuntu 18.0.4 running on a Oracle VM machine.....

Is there any fix for this or is just not longer supported?

@uherting
Copy link

Is there any fix for this or is just not longer supported?

You can use this script instead: https://raw.githubusercontent.com/uherting/supervised-installer/master/installer.sh

I forked the repository yesterday and changed the installer.sh file only. It is literally the same without the annoying error and the question.

@Gadgit83
Copy link

Gadgit83 commented May 27, 2020

This looks like it was great - but unfortunately as of 26th May 2020 - it would appear that the support from this has been removed. To save hunting for it - for anyone wondering why and what to do about it, see this forum post: https://www.home-assistant.io/blog/2020/05/26/installation-methods-and-community-guides-wiki/ with some apparent back-history for bedtime reading: https://www.home-assistant.io/blog/2020/05/09/deprecating-home-assistant-supervised-on-generic-linux/

@dnowo
Copy link

dnowo commented May 28, 2020

I need some help... while i started hassio supervisor by using command journalctl -f -u hassio-supervisor i've got following errors:

May 28 12:08:00 ubuntu-xenial-armhf-1 systemd[1]: Started Hass.io supervisor.
May 28 12:08:01 ubuntu-xenial-armhf-1 hassio-supervisor[27046]: time="2020-05-28T12:08:01Z" level=error msg="error waiting for container: context canceled"
May 28 12:08:01 ubuntu-xenial-armhf-1 hassio-supervisor[27046]: Error response from daemon: OCI runtime create failed: container with id exists: e2ebd34e2380cd96b534215e90d6b4c0040139abaa05eade7c2642dfd7c53c8f: unknown
May 28 12:08:02 ubuntu-xenial-armhf-1 hassio-supervisor[27046]: hassio_supervisor
May 28 12:08:05 ubuntu-xenial-armhf-1 hassio-supervisor[27046]: docker: Error response from daemon: cgroups: cannot find cgroup mount destination: unknown.
May 28 12:08:05 ubuntu-xenial-armhf-1 hassio-supervisor[27046]: time="2020-05-28T12:08:05Z" level=error msg="error waiting for container: context canceled"
May 28 12:08:05 ubuntu-xenial-armhf-1 systemd[1]: hassio-supervisor.service: Main process exited, code=exited, status=125/n/a
May 28 12:08:05 ubuntu-xenial-armhf-1 docker[27205]: hassio_supervisor
May 28 12:08:05 ubuntu-xenial-armhf-1 systemd[1]: hassio-supervisor.service: Unit entered failed state.
May 28 12:08:05 ubuntu-xenial-armhf-1 systemd[1]: hassio-supervisor.service: Failed with result 'exit-code'.
May 28 12:08:11 ubuntu-xenial-armhf-1 systemd[1]: hassio-supervisor.service: Service hold-off time over, scheduling restart.
May 28 12:08:11 ubuntu-xenial-armhf-1 systemd[1]: Stopped Hass.io supervisor.
May 28 12:08:11 ubuntu-xenial-armhf-1 systemd[1]: Starting Hass.io supervisor...
May 28 12:08:11 ubuntu-xenial-armhf-1 docker[27214]: hassio_supervisor

@chuc2rk
Copy link

chuc2rk commented Sep 16, 2020

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

@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