ubuntu for raspberry pi WiFi设置
ubuntu18.04 和ubuntu20.04在配置WiFi连接上有些许不一样,记录一下。
ubuntu18.04:
配置文件位置:/etc/netplan/50-cloud-init.yaml
配置如下:(缩进为空格)
network:
ethernets:
eth0:
dhcp4: true
optional: true
wifis:
wlan0:
dhcp4: true
optional: true
access-points:
"wifi ssid":
password: "wifi password"
version: 2
ubuntu20.04:
配置文件位置:/boot/firmware/network-config
(即在FAT32 boot分区里,可以在windows插入TF卡直接编辑boot磁盘下的network-config)
配置跟ubuntu18.04一样