Guides > Hass.io > NUC Install
 

 

I originally just put the Hass.io image directly on my Intel NUC's SSD but ran into problems

    • When I first used Etcher to burn the Hass.io image to a USB drive, I thought things went pretty smoothly. The flash drive copied itself to the SSD and Hass.io was running. The only problem was ResinOS wasn't allowing my USB drive for my zwave (Aeotech 5) through so my zigbee and z-wave support was missing. So instead I read that installing Debian, a linux distro, for the NUC allows you to install docker and hass.io within docker. So I embarked on the goal of getting that working..

Installing Hass.io on Intel NUC6CAYH

    • Use Etcher to burn the Debian 9 image to a USB drive
    • Power on the NUC and boot from the USB drive. Load Debian.
    • Log onto the front end of Debian and then go to Utilities and select Terminal
    • Once in Terminal, type "su" (without quotes)
    • It will prompt you to set up a username and password for root
    • Then install docker-ce following this guide: https://docs.docker.com/install/linux/docker-ce/debian/#install-docker-ce-1

      SET UP THE REPOSITORY

      Update the apt package index:

    • $ sudo apt-get update  

      Install packages to allow apt to use a repository over HTTPS:

      Jessie or newer (Debian 9 is "stretch" and is newer)

      $ sudo apt-get install \       apt-transport-https \       ca-certificates \       curl \       gnupg2 \       software-properties-common

      Add Docker’s official GPG key:

      $ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -  

      Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of

      the fingerprint.

      $ sudo apt-key fingerprint 0EBFCD88    pub   4096R/0EBFCD88 2017-02-22       
      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88  uid  
      Docker Release (CE deb) <docker@docker.com>  sub   4096R/F273FCD8 2017-02-22  

      Use the following command to set up the stable repository. You always need the stable repository, even if you want to install builds from the edge or test repositories as well. To add the edge or test repository, add the word edge or test (or both) after the word stable in the commands below.

      Note: The lsb_release -cs sub-command below returns the name of your Debian distribution, such as jessie.

      To also add the edge repository, add edge after stable on the last line of the command.

      x86_64 / amd64

      armhf

      $ sudo add-apt-repository \     "deb [arch=amd64] https://download.docker.com/linux/debian \     $(lsb_release -cs) \     stable"

      INSTALL DOCKER CE

      Note: This procedure works for Debian on x86_64 / amd64, Debian ARM, or Raspbian.

      1. Update the apt package index.

        $ sudo apt-get update  
      2. Install the latest version of Docker CE, or go to the next step to install a specific version:

        $ sudo apt-get install docker-ce

       

      Verify that Docker CE is installed correctly by running the hello-world image.

      x86_64:

      $ sudo docker run hello-world

      UPGRADE DOCKER CE

      To upgrade Docker CE, first run sudo apt-get update, then follow the installation instructions, choosing the new version you want to install.

      Uninstall Docker CE

      Uninstall the Docker CE package:

        $ sudo apt-get purge docker-ce  

      Images, containers, volumes, or customized configuration files on your host are not automatically removed. To delete all images, containers, and volumes:

      $ sudo rm -rf /var/lib/docker
    • Install jq but typing this in the Terminal:
    • apt-get install jq

    • In Debian Terminal, enter the following to install the Hass.io image (also see this link). Run the following command as root:
      curl -sL https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install | bash -s
To see if it worked and Home Assistant is running, open your web browser and go to: http://<YourNUC'sLocalPAddressHere>:8123 or http://hassio.local:8123

Copyright © 2018 brett0wens.com. All Rights Reserved.