进入系统后台
sudo systemctl enable hassio-apparmor.service
sudo systemctl enable hassio-supervisor.service
sudo systemctl start hassio-supervisor.service
sudo systemctl enable docker
docker update --restart=always homeassistant
restart
进入系统后台
sudo systemctl enable hassio-apparmor.service
sudo systemctl enable hassio-supervisor.service
sudo systemctl start hassio-supervisor.service
sudo systemctl enable docker
docker update --restart=always homeassistant
restart
更新地址
https://gitlab.com/ineo6/hosts/-/raw/master/next-hosts
https://blog.misaka.cyou/2023/03/12/cf-warp-yxip
树莓派下使用下列命令优选ip
wget -N https://gitlab.com/Misaka-blog/warp-script/-/raw/main/files/warp-yxip/warp-yxip.sh && bash warp-yxip.sh
iPad使用iSH
wget -N https://gitlab.com/Misaka-blog/warp-script/-/raw/main/files/warp-yxip/warp-yxip.sh && bash warp-yxip.sh
安装后需要手动升级到最行版本方可登录进账号
1、增加一个用户(需选中允许此人登录)并设置密码
2、在加载项中加载mqtt broker
3、在集成中添加mqtt并配置第1步设置的用户名和密码
sudo apt-upgrade
sudo apt install samba samba-common-bin
mkdir /path/to/shared-directory
sudo chmod 777 /path/to/shared-directory
配置Samba共享设置。编辑配置文件/etc/samba/smb.conf
,在文件末尾添加以下内容:
[SharedDirectory]
path = /path/to/shared-directory
read only = no
browsable = yes
增加权限
sudo smbpasswd -a pi
重启Samba服务:
sudo systemctl restart smbd nmbd
在/etc/rc.local文件的exit 0前面增加以下一行代码
sudo mount /dev/nvme0n1 /home/pi/ssd &
Tailscale 是一个 VPN 服务,可以让你的树莓派通过安全链接互联制连接到其他设备。以下是在树莓派上安装 Tailscale 的步骤:
sudo apt update
curl https://tailscale.com/install.sh | SH_INSTALL_DATA_DIR=/var/lib/tailscale sudo bash
sudo systemctl enable tailscaled
sudo systemctl start tailscaled
sudo tailscale up
tailscale status
以上步骤会引导你完成在树莓派上安装和设置 Tailscale 的过程。需要注意的是,在实际使用时,你可能需要根据你的网络环境和需求进行相应的配置调整。