Quick start
update OS
Install python3.9
Install Home Assistant core
# lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
~# python3.9 --version
Command 'python3.9' not found, but can be installed with:
apt install python3.9
part 1:Install home assisant core 2022.3.0 on Ubuntu 20.04
Step 1: update Ubuntu 18.04.6 LTS to Ubuntu 20.04 for home assisant core 2022.3.0
lsb_release -a
output
# lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-162-generic x86_64)
New release '20.04.4 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get update
reboot
do-release-upgrade
Step 2: Install Python 3.9 and the dependencies
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5 libturbojpeg0-dev tzdata
sudo apt install python3.9
apt install python3.9-venv
python3.9 --version
output
root@vultr:~# python3.9 --version
Python 3.9.5
CREATE AN ACCOUNT
sudo useradd -rm homeassistant -G dialout,gpio,i2c
CREATE THE VIRTUAL ENVIRONMENT
sudo mkdir /srv/homeassistant
sudo chown homeassistant:homeassistant /srv/homeassistant
Create a virtual environment for Home Assistant Core.
sudo -u homeassistant -H -s
cd /srv/homeassistant
python3.9 -m venv .
source bin/activate
Python virtual environment + Home Assistant Core + Service
part 2:remote
buy a domain from www.namesilo.com step by step
Useful links
https://www.home-assistant.io/installation/linux#install-home-assistant-core