How to Install Home Assistant Core on Ubuntu 18.04(vultr VPS )(without Python env) Step by Step

 

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

 

1.普通安装(未使用Python 虚拟环境安装)

Step 1:Before you start, make sure your system is fully updated

更新源信息,安装更新

sudo apt-get update

sudo apt-get upgrade -y

 

Step 2: Install Python 3.9 and the dependencies
安装Python3

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 tzdata

Step 3:Install a required Python package

python3 -m pip install wheel

Step 4:Install Home Assistant Core

pip3 install homeassistant

 

Step 5:run hass

 

Result output

2022-02-04 12:29:03 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2022-02-04 12:29:03 INFO (SyncWorker_4) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
2022-02-04 12:29:03 INFO (MainThread) [homeassistant.core] Timer:starting

netstat -atnp| grep LISTEN

tcp        0      0 0.0.0.0:8123            0.0.0.0:*               LISTEN      10931/python3       

 

 


python -V

 

python3 --version

Python 3.6.9

Step 6:Create Account on web

Home Assistant 0.103.6

Frontend version: 20191204.1 - latest

 

2.1 普通安装(未使用Python 虚拟环境安装)

pip3 install homeassistant
hass --open-ui

or

2.2 Python 虚拟环境安装

Home Assistant 官方推荐使用 Python 虚拟环境安装 Home Assistant 以避免影响生产环境。
创建虚拟环境: python3 -m venv homeassistant

打开虚拟环境: cd homeassistant

激活虚拟环境: source bin/activate

安装 Home Assistant: python3 -m pip install --upgrade homeassistant

启动 Home Assistant 并打开网页: hass --open-ui

https://www.cnblogs.com/gooutlook/p/9418113.html

 

detail:

 

Once you activate environment prompt will change to

(homeassistant) homeassistant@HASS

 

Useful links

 

https://www.home-assistant.io/installation/generic-x86-64

 

ubuntu下安装Home Assistant

https://blog.csdn.net/weixin_40437029/article/details/106986604

 

 Install Home Assistant  on Ubuntu 18.04 guide

The following are the steps I had to use. The main steps are based on this guide: https://www.home-assistant.io/docs/installation/raspberry-pi/

https://www.jahartley.com/home-assistant-on-ubuntu-18-04/

留下你的评论
*
只有注册用户才能评论。