- # interface file auto-generated by buildroot
-
- auto lo
- iface lo inet loopback
-
- // 上面是默认的内容,下面是新增的内容,上下之间需要一个空行隔开
- // 接口顶格写,属性的前面有一个tab的缩进
- # The primary network interface
-
- auto eth0
- iface eth0 inet static
- address 192.168.1.113
- network 192.168.1.0
- netmask 255.255.255.0
- broadcast 192.168.1.255
- gateway 192.168.1.1
- # interface file auto-generated by buildroot
-
- auto lo
- iface lo inet loopback
-
- # The primary network interface
-
- auto eth0
- iface eth0 inet dhcp
-
curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xdf00faf1c577104b50bf1d0093d6889f9f0e78d5' |gpg --dearmor| sudo tee /etc/apt/trusted.gpg.d/armbian.gpg
- nano /etc/apt/sources.list
- 加入清华源,替换全部内容
-
- deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
- # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
-
- deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
- # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
-
- deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
- # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
-
- # deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
- # # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
-
- deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
- # deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
nano /etc/apt/sources.list.d/armbian.list
deb http://mirrors.tuna.tsinghua.edu.cn/armbian/ bookworm main bookworm-utils bookworm-desktop
- apt update
- apt upgrade
apt install docker.io