更新地址
https://gitlab.com/ineo6/hosts/-/raw/master/next-hosts
simply-static
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121更新地址
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 的过程。需要注意的是,在实际使用时,你可能需要根据你的网络环境和需求进行相应的配置调整。
docker开机自动启动容器,以homeassistant为例(设置为只要docker守护进程启动,容器就会自动重启):
docker update --restart=always homeassistant
解释:
Docker 容器在默认情况下不会在系统启动时自动启动。这是因为 Docker 容器有自己的生命周期,并且在创建容器时,你需要明确指定是否要在启动 Docker 守护进程时自动启动容器。
解决方法:
docker run
命令时,加上 --restart
选项来指定重启策略。例如:docker run -d --restart=always 容器镜像
这里的 -d
表示后台运行,--restart=always
表示无论退出代码是什么,只要 Docker 守护进程启动,容器就会自动重启。docker update
命令来更新容器的重启策略。例如:docker update --restart=always 容器名或ID
docker-compose.yml
文件中为服务设置 restart: always
。例如:services:your-service:image:容器镜像restart:always
确保你的 Docker 版本支持该功能,并且在启动容器之前或更新容器配置后,检查 Docker 守护进程是否配置为在启动时自动启动:
sudo systemctl enable docker
以上步骤可以确保在系统启动时自动启动 Docker 容器。