«

香橙派Orange Pi Zero2安装Armbian后禁用WIFI和蓝牙

时间:2022-4-17 10:44     作者:izilzty     分类:


最近需要一个DNS缓存服务器,所以入手了一块香橙派Zero2,板子本身自带了WIFI和蓝牙但是目前用不上,我就寻思能不能给它关掉,查了一些资料以后成功关掉了,并且还歪打正着降低了系统资源占用率,空闲时从1.0降到0.1左右。目前安装的系统版本为Armbian 22.02 Bullseye,具体步骤如下,还进行了其他一些微小调整:

1. 禁用WIFI和蓝牙驱动模块

sudo nano /etc/modules

注译掉里面的模块:

# uwe5622_bsp_sdio
# sprdbt_tty
# sprdwl_ng

保存退出。

因为已经禁用了WIFI和蓝牙,所以相应的服务也可以禁用了:

sudo systemctl disable wpa_supplicant
sudo systemctl disable aw859a-bluetooth

2. 卸载蓝牙支持

 sudo armbian-config

使用以下选项卸载蓝牙支持:

Network -> Remove Bluetooth support

3. 删除21天自动检查更新

sudo apt purge unattended-upgrades
sudo apt autoremove
sudo rm -r /var/log/unattended-upgrades

4. 重启系统

sudo reboot

5. 更换国内软件源并升级

更新系统软件源:
https://mirrors.tuna.tsinghua.edu.cn/help/debian/

更新Armbian软件源:

sudo nano /etc/apt/sources.list.d/armbian.list

注译第一行,并在下面添加

deb http://mirrors.tuna.tsinghua.edu.cn/armbian/ bullseye main bullseye-utils bullseye-desktop

保存退出。

sudo apt update
sudo apt upgrade

首次执行update以后可能会卡一段时间,等待它完成即可。

6. 更换NTP服务器地址

sudo nano /etc/chrony/chrony.conf

找到pool 2.debian.pool.ntp.org iburst
替换为 pool pool.ntp.org iburst

保存退出。

sudo systemctl restart chronyd