一、镜像版本
Debian Buster with Raspberry Pi Desktop
二、配置静态IP地址
修改文件/etc/dhcpcd.conf
, 在文件末尾追加自定义配置
sudo cat >> /etc/dhcpcd.conf << EOF
interface eth0
static ip_address=192.168.0.160/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
interface wlan0
static ip_address=192.168.0.161/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
EOF
三、关闭图形模式
运行命令sudo raspi-config
:



最后保存即可。
四、开启SSH服务
运行命令sudo raspi-config
:



最后保存即可。
五、安装Docker
修改国内源,树莓派4B使用国内源(buster版本)
sudo vim /etc/apt/sources.list
# 增加为文件的第一行,注释掉其他所有行
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
运行命令
sudo curl -sSL https://get.docker.com | sh
网友评论