正确显示中文

1
sudo apt install ttf-wqy-zenhei
1
sudo raspi-config

把光标移到Localisation Options上

翻到最下面的选项,勾上zh_CN,UTF-8

然后选择默认语言,选择zh_CN

设置完成之后,reboot重启就可以看到熟悉的中文了

设置静态无线IP(有点小问题,用到再说)

如果用有线就不用那么麻烦了。

确认是否安装了 dhcpcd:

1
sudo apt list --installed | grep dhcpcd

如果没有安装,可以使用以下命令安装它:

1
sudo apt install dhcpcd5

启用 dhcpcd 服务:

1
2
sudo systemctl enable dhcpcd
sudo systemctl start dhcpcd

检查是否使用了 NetworkManager:

1
sudo systemctl status NetworkManager

如果 NetworkManager 正在运行,可能它覆盖了 dhcpcd 的设置。你可以通过 nmcli 来设置静态IP,例如:

1
nmcli con show

找到 wlan0 的连接名称,然后设置静态IP(假设连接名称是 MyWifiConnection):

1
2
3
4
sudo nmcli con mod preconfigured ipv4.addresses 192.168.124.21/24
sudo nmcli con mod preconfigured ipv4.gateway 192.168.124.1
sudo nmcli con mod preconfigured ipv4.method manual
sudo nmcli con up preconfigured

通过ifconfig查看网卡:

image-20241008143532831

编辑文件:

1
sudo vi /etc/dhcpcd.conf

添加配置项:

1
2
3
4
5
6
7
8
9
#无线
interface wlan0
inform 192.168.124.22
static routers=192.168.124.1

interface wlan0
static ip_address=192.168.124.22/24
static routers=192.168.124.1
static domain_name_servers=8.8.8.8 8.8.4.4
1
2
3
4
#有线
interface eth0
inform 192.168.124.22
static routers=192.168.124.1

退出保存然后重启树莓派:

1
sudo reboot

启动脚本

1
chmod +x pi.sh
1
./pi.sh proxy

安装1Panel

image-20241008182757340

安装Alist、小雅、小雅清理工具

image-20241008183525056

根据如下三个网址的提示完成token的填写
阿里云盘Token(32位):https://alist.nn.ci/zh/guide/drivers/aliyundrive.html

阿里云盘OpenToken(335位):https://alist.nn.ci/tool/aliyundrive/request.html

阿里云盘转存目录folderid:https://www.aliyundrive.com/s/rP9gP3h9asE

image-20241008184537599

安装内网穿透

成功,但有效期只有24小时,够用了