Skip to content

Instantly share code, notes, and snippets.

@davidvidmar
Last active May 3, 2020 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save davidvidmar/2b275916c331f6bea15fc3281f73e43c to your computer and use it in GitHub Desktop.
Save davidvidmar/2b275916c331f6bea15fc3281f73e43c to your computer and use it in GitHub Desktop.
Install HASS.IO on Ubuntu Server 18.04
# 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