请选择 进入手机版 | 继续访问电脑版

 找回密码
 立即注册
查看: 545|回复: 0

diban系统安装homeassistant运行代码

[复制链接]

8

主题

0

回帖

101

积分

管理员

积分
101

开拓者勋章

发表于 2023-6-30 20:45:38 | 显示全部楼层 |阅读模式
查看本机ip命令
  1. ip addr show
复制代码

普通用户获取管理员权限:
  1. su -
复制代码

配置软件包:
  1. cat <<EOF > /etc/apt/sources.list
  2. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
  3. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
  4. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
  5. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
  6. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
  7. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
  8. deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
  9. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
  10. EOF

  11. apt update &&  apt upgrade -y

  12. apt-get install sudo
复制代码

更新Home Assistant Supervised 依赖库的命令:
  1. apt-get install \
  2. jq \
  3. wget \
  4. curl \
  5. udisks2 \
  6. libglib2.0-bin \
  7. network-manager \
  8. dbus -y
复制代码

下面是安装Docker-CE的命令:
  1. curl -fsSL get.docker.com | sh
复制代码

安装OS agent:
  1. wget https://github.com/home-assistant/os-agent/releases/download/1.5.1/os-agent_1.5.1_linux_x86_64.deb

  2. dpkg -i os-agent_1.5.1_linux_x86_64.deb
复制代码


重启系统命令:
  1. sudo reboot
复制代码

安装Home Assistant Supervised:
  1. su -

  2. wget https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb

  3. dpkg -i homeassistant-supervised.deb
复制代码


重启系统命令:
  1. sudo reboot
复制代码


配置HACS
  1. wget -O - https://get.hacs.xyz | bash
复制代码

重启系统命令

  1. sudo reboot
复制代码



您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|CNOD社区 ( 苏ICP备12056560号-1 )

GMT+8, 2024-3-29 07:51 , Processed in 0.047634 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表