欢迎光临散文网 会员登陆 & 注册

玩客云_HomeAssisten

2023-08-17 18:40 作者:番茄是水果つ  | 我要投稿


所需硬件

  1. 玩客云一台;

  2. USB公对公数据线;

  3. 拆机螺丝刀,摄子等;

  4. SD卡/TF卡/U盘/硬盘一个(可选,玩客云自带存储8G,系统用掉30%,可用空间太少)

软件工具

https://l0s.lanzoue.com/b047fyx7g?password=eujb

软件工具 1. *晶晨 s805 刷机工具 2.USBWriter 3.*putty

镜像 https://www.123pan.com/s/fd7zVv-tAJ7H.html提取码:2233

一. 拆机(未刷过第三方固件的需要拆)

二、开始刷机

1、运行【USB Burning Tool】刷机工具,

点击【文件->导入烧录包】选择【Armbian_23.08.0-minimal.线刷.img】,

然后勾选【擦除flash】和【擦除bootloader】

最后点击【开始】按钮。*

如 无法启动请先刷 底包.img



当出现【100%烧录成功】时点击【停止】然后关闭软件、拔掉电源和USB线即可。

默认root账户 密码1234

查看时区

 root@onecloud:~# date -R
 Wed, 19 Jul 2023 08:02:33 +0000
 root@onecloud:~# cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime
 root@onecloud:~# date -R
 Wed, 19 Jul 2023 16:02:52 +0800

更新

 apt update & apt upgrade

更新软件源 (Debian11[bullseye])

 root@onecloud:~# sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
 root@onecloud:~# nano /etc/apt/sources.list # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
 # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
 
 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
 # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
 
 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
 # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
 
 # deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
 # # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
 
 deb https://security.debian.org/debian-security bullseye-security main contrib non-free
 # deb-src https://security.debian.org/debian-security bullseye-security main contrib non-free


安装 1panel

 curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && bash quick_start.sh

安装成功后,控制台会打印面板访问信息,可通过浏览器访问 1Panel:

 http://目标服务器 IP 地址:目标端口/安全入口
 
 
 

  • 如果使用的是云服务器,请至安全组开放目标端口。

  • ssh 登录 1Panel 服务器后,执行 1pctl user-info 命令可获取安全入口(entrance)

软件商店有





安装Docker  (1Panel 会自动安装Docker)

 root@onecloud:~# curl -fsSL https://test.docker.com -o test-docker.sh
 root@onecloud:~# sudo sh test-docker.sh '可能用到
 #启动 docker
 systemctl start docker  
 #设定开机自动启动docker
 systemctl enable docker  
 #查看docker运行状态
 systemctl status docker  
 #查看 docker 版本信息
 docker version
 #把当前用户加入 docker 用户组
 sudo usermod -a -G docker root    
 #重启 docker 服务
 sudo systemctl restart docker
 #将用户在docker用户组中移除,安全!
 sudo gpasswd -d root docker #拉取hass的最新版镜像
 docker pull homeassistant/home-assistant:latest
 #创建容器并运行
 docker run -d --restart always --name="hass" -v /home/hass/config:/config -p 8123:8123 homeassistant/home-assistant:latest systemctl enable docker #设置docker开机自启动
 docker update --restart=always hass # 设置homeassistant开机自启动


玩客云_HomeAssisten的评论 (共 条)

分享到微博请遵守国家法律