官方地址:https://cn.ubuntu.com/download/raspberry-pi
清华镜像:https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cdimage/ubuntu/releases/22.04.1/release/
下载地址:https://www.raspberrypi.com/software/
烧录:
多等一会,使用路由器后台查看树莓派的ip
ssh连接
ssh 用户名@ip地址
随后输入密码即可登入
查看当前网络设置
cat /etc/netplan/50-cloud-init.yaml
修改为:(注意接口名称可能需要和原配置eth0保持一致)
network:renderer: networkdethernets:ens33:addresses:- 192.168.1.247/24nameservers:addresses: [4.2.2.2, 8.8.8.8]routes:- to: defaultvia: 192.168.1.1version: 2
使上述修改生效
sudo netplan apply
查看接口的 ip 地址
ip addr show ens33