- 一张SD卡(最小4G)
- 计算机,SD读卡器
- 树莓派2,3,4
下载树莓派镜像烧录器
Ubuntu
Windows
MacOS
运行烧录器:选择写入操作系统。进入“Other general-purpose OS”
选择“Ubuntu”
选择“Ubuntu Server 20.04.4 LTS”
选择SD卡。
点击烧录,静静等待完成。
3. 设置wifi信息打开SD卡的system-boot,注意如果是windows系统,不要把sd卡的盘格式化。
修改network-config:
wifis:
wlan0:
dhcp4: true
optional: true
access-points:
:
password: ""
把wifi network name替换为自己的wifi名,把wifi password替换为自己的wifi密码。
如:
wifis: wlan0: dhcp4: true optional: true access-points: "test": password: "123456789"
设置静态IP:
假如在网段192.168.1.0/24中设置地址为192.168.1.17,网关为192.168.1.1,DNS为192.168.1.53.
那么把dhcp4:true 替换为:
ethernets: eth0: addresses: - 192.168.1.17/24 gateway4: 192.168.1.1 nameservers: addresses: [192.168.1.53] optional: true4. 引导Ubuntu Server
接上树莓派电源开机,等待安装完成,并连接上wifi。
使用ssh连接树莓派,确保电脑在同一网段。
检测树莓派的IP是否生效:
Ubuntu与Mac OS
arp -na | grep -i “b8:27:eb”
树莓派4则用:
arp -na | grep -i “dc:a6:32”
Windows:
arp -a | findstr b8-27-eb
树莓派4:
arp -a | findstr dc-a6-32
返回信息:
? (xx.xx.xx.x) at b8:27:eb:yy:yy:yy [ether] on wlp2s0
如果没有返回IP信息,则重新配置网络。或者使用屏幕查看安装信息。
SSH连接:
ssh ubuntu@
收到确认信息:
Are you sure you want to continue connecting (yes/no/[fingerprint])?
输入yes。
5. 如果需要安装桌面则进行如下操作:
sudo apt update sudo apt upgrade sudo apt install xubuntu-desktop sudo apt install lubuntu-desktop sudo reboot



