Raspi3或4 通过ubuntu 安装ha系统 软件安装

WTB 7月前 317


默认提前安装了ubuntu20.4的系统镜像到raspi

安装好ubuntu
root用户添加下面两行命令
echo "199.232.96.133 raw.githubusercontent.com" >> /etc/hosts
echo "20.205.243.166 github.com" >> /etc/host
ubuntu20 install home assistant

sudo apt update
sudo apt upgrade
sudo apt install net-tools network-manager
sudo systemctl start NetworkManager.service
sudo systemctl enable NetworkManager.service
sudo cp /etc/netplan/50-cloud-init.yaml  /etc/netplan/50-cloud-init.yaml.BAK
                50-cloud-init.yaml内容如下
           network:
               version: 2
               renderer: NetworkManager
sudo netplan generate
sudo netplan apply
sudo reboot
sudo nmtui           配置有线和无线网络静态ip地址
sudo apt-get -y install ftpd mc apparmor git watchdog bluez ntpdate
sudo dpkg-reconfigure tzdata   配置时区
sudo apt-get -y install avahi-daemon jq docker.io  
sudo apt install apparmor jq wget curl udisks2 libglib2.0-bin network-manager dbus lsb-release systemd-journal-remote -y
curl -fsSL get.docker.com | sh
sudo usermod -aG docker wtb
sudo reboot

以下命令都是 在sudo su   //root用户下安装
wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_aarch64.deb
dpkg -i os-agent_*
 
 gdbus introspect --system --dest io.hass.os --object-path /io/hass/os      //此名伶校验
 
 wget https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb //下载 homeassistant-supervisor
 
BYPASS_OS_CHECK=true dpkg -i --ignore-depends=systemd-resolved ./homeassistant-supervised.deb             //务必通过此命令安装

reboot

最新回复 (0)
返回
发新帖