-
-
Save bonelifer/04b76977c6f31c938f28dafff231b354 to your computer and use it in GitHub Desktop.
Install HASS.IO on Ubuntu Server 18.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://www.juanmtech.com/set-up-hassio-in-docker-and-in-an-ubuntu-server/ | |
# last update: 26 Oct 2019, DaVidmar | |
# | |
# update system and packages | |
# | |
apt-get update | |
apt-get upgrade | |
# INSTALL DOCKER | |
# install prerequisites | |
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
# download pgp keys & verify: 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
apt-key fingerprint 0EBFCD88 | |
# add docker repo | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
# install docker | |
apt-get install docker-ce docker-ce-cli containerd.io | |
# see if docker is running ok | |
docker run hello-world | |
# enable docker | |
systemctl enable docker | |
# INSTALL HASS.IO | |
# install prerequisites | |
apt-get install apparmor-utils avahi-daemon dbus jq network-manager socat | |
# install hass.io | |
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s | |
# available at 192.168.XX.XX:8123 | |
# INSTALL PORTAINER | |
# create docker volume | |
docker volume create portainer_data | |
docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer | |
# available at 192.168.XX.XX:9000 | |
# OTHER | |
# disable systemd service so AdGuard can work | |
sudo systemctl disable systemd-resolved.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment