受欢迎的博客标签

How to Install Home Assistant core 2022.3.0 on Ubuntu 20.04(vultr VPS) Step by Step

Published
sudo apt install python3.9
​

 

part :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

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

:~# 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 :remote

buy a domain from www.namesilo.com step by step

 

 

Useful links

 

https://www.home-assistant.io/installation/linux#install-home-assistant-core