环境:Debian
Debian GNU/Linux 11 \n \l
安装步骤
- 安装依赖
apt-get install \
jq \
wget \
curl \
udisks2 \
libglib2.0-bin \
network-manager \
dbus -y
- 安装 Docker-CE
任意方法,建议采用国内源。常用清华。
$ docker --version
Docker version 20.10.14, build a224086
- 安装OS-Agent 重点
按照官方guide提供的下载地址,没有arm64的deb包,需要进行手工操作
- wget整个源码并解压
https://github.com/home-assistant/os-agent/archive/refs/tags/1.2.2.tar.gz
- wget os-agent_1.2.2_linux_arm64.tar.gz 并解压
https://github.com/home-assistant/os-agent/releases/download/1.2.2/os-agent_1.2.2_linux_arm64.tar.gz
- 执行以下命令
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
检查日志