换源

刷机后先换成清华大学开源软件站的源,速度很快。把/etc/apt/source.list文件的内容换成下面的内容。

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free

设置时区

echo "Asia/Shanghai" > /etc/timezone && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

删除默认dns

rm /etc/resolvconf/resolv.conf.d/head && touch /etc/resolvconf/resolv.conf.d/head && systemctl restart network-manager.service

停用红外支持

systemctl stop lircd.service lircd-setup.service lircd.socket lircd-uinput.service lircmd.service

删除红外模块

apt remove -y lirc && apt autoremove -y

更新软件包

apt update && apt upgrade -y

个性化设置

armbian-config

设置主机名

hostnamectl set-hostname 主机名

网络设置

nmtui

查看系统信息

/etc/update-motd.d/30-armbian-sysinfo

4.19以上内核开启BBR

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

扫描二维码,在手机上阅读!