How to install Home Assistant Supervisor on Debian Server

I have done this on a Virtual Box VM, but the steps will be more of less similar if you are going on a standalone machine, Rasberry PI or an Intel NUC

As of April 2020 the latest official support of Home Assistant Supervisor is Debian 10 (Buster)

Prerequisites

  • Latest version of VirtualBox
  • Active intenet connection

Create a virtual machine on VirtualBox with these specs

  • 2 GB Ram
  • 8 GB HDD (Minimum)
  • Check Enable EFI (System -> Motherboard
  • Select Bridged Adapter (On Network tab)

Download Debian

Click here to download Debian 10 (amd64 netinstall IOS)

Install Debian on VirtualBox

  • Attach the downloaded IOS file to IDE Secondary Device 0
  • Start the VM. You will be greeted with Debian installer
  • Select your desired installation method and proceed till Software selection screen
  • Select only SSH server as we are trying to create a Debian server we don’t need desktop environment.
  • Complete the installation and boot up the VM

Setup remote SSH for root user: (Optional)

By default Debian doesn’t allow us to do SSH for root user

  1. On the VM login into the root user
  2. Edit ssh_config

3. Update

4. Restart SSH server

This will enable us to SSH into the root user

Install Docker on Debian

Login into the terminal as root user once the systems startsup. If you have enabled SSH remote access you will also be able to SSH into the machine.

Make sure you login to the root user

You show see the message Hello from Docker!. Now we are ready to install Supervisor

Install Home Assistant Supervisor

Once you see the above message wait for 5 mins and open the IP address. If will take longer if your internet connection is poor.

For geeks to know what is really happening during that 5 mins. Continuously do docker ps. You will see that homeassistant daemon creating docker containers one by one.

You will now have Home Assistant Supervisor up and running on a Debian Server.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store