ARM64 安装 HomeAssistant Supervisor

ref: https://github.com/home-assistant/supervised-installer

环境:Debian
Debian GNU/Linux 11 \n \l

安装步骤

  1. 安装依赖
apt-get install \
jq \
wget \
curl \
udisks2 \
libglib2.0-bin \
network-manager \
dbus -y
  1. 安装 Docker-CE
    任意方法,建议采用国内源。常用清华。
$ docker --version
Docker version 20.10.14, build a224086
  1. 安装OS-Agent 重点
    按照官方guide提供的下载地址,没有arm64的deb包,需要进行手工操作
cp [source_code_location]/os-agent-1.2.2/contrib/io.hass.conf /etc/dbus-1/system.d
cp [source_code_location]/os-agent-1.2.2/contrib/haos-agent.service /etc/systemd/system
[source_code_location]/os-agent-1.2.2/debian/postinstall.sh

若一切正常

$ systemctl status haos-agent
● haos-agent.service - Home Assistant OS Agent
     Loaded: loaded (/etc/systemd/system/haos-agent.service; enabled; vendor pr>
     Active: active (running) since Sat 2022-04-23 21:31:08 CST; 12min ago
   Main PID: 2149 (os-agent)
      Tasks: 4 (limit: 1051)
     Memory: 6.4M
        CPU: 3ms
     CGroup: /system.slice/haos-agent.service
             └─2149 /usr/bin/os-agent

若有异常,运行journalctl -xe检查日志

posted on 2022-04-23 21:46  BionExit  阅读(1656)  评论(0编辑  收藏  举报

导航