Open dushaoshuai opened 1 year ago
使用 Raspberry Pi Imager 安装 Ubuntu Server 22.04.1 LTS 时,已经做了如下配置:
但是使用 sudo nmap -sn 192.168.0.0/24 扫描局域网时,仍未找到树莓派的 IP,一开始还以为自己配置有问题,后来在 Ubuntu 官网上找到了原因。
sudo nmap -sn 192.168.0.0/24
原来 Raspberry Pi Imager 并未正确配置网络,需要手动在 SD 卡上非启动分区上的 /etc/netplan/ 文件夹下新建 50-cloud-init.yaml 文件:
/etc/netplan/
50-cloud-init.yaml
wifis: wlan0: dhcp4: true optional: true access-points: "home network": password: "123456789"
Install Ubuntu on a Raspberry Pi How to install Ubuntu Server on your Raspberry Pi
使用 Raspberry Pi Imager 安装 Ubuntu Server 22.04.1 LTS 时,已经做了如下配置:
但是使用
sudo nmap -sn 192.168.0.0/24
扫描局域网时,仍未找到树莓派的 IP,一开始还以为自己配置有问题,后来在 Ubuntu 官网上找到了原因。原来 Raspberry Pi Imager 并未正确配置网络,需要手动在 SD 卡上非启动分区上的
/etc/netplan/
文件夹下新建50-cloud-init.yaml
文件:See also
Install Ubuntu on a Raspberry Pi How to install Ubuntu Server on your Raspberry Pi