树莓派OS环境搭建
硬件设备:树莓派5、网线、SD卡
镜像烧入
官网下载烧入上位机
https://www.raspberrypi.com/software/
PC插入sd卡
没有miniHDMI转HDMI记得勾选预装ssh
安装vnc
树莓派端
开启树莓派的VNC服务
sudo raspi-config
进入GUI交互
PC端
安装vnc windows服务
https://www.realvnc.com/en/connect/download/viewer/
更换树莓派os apt源
都不使用HTTPS
修改 raspberrypi
进入清华软件源地址
https://mirrors.tuna.tsinghua.edu.cn/help/raspberrypi/
复制源链接
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bookworm main
添加至树莓派内部list(将原来的源注释)
/etc/apt/sources.list.d/raspi.list
修改 raspbian
进入清华软件源地址(这里换成浙大的源)
https://mirrors.tuna.tsinghua.edu.cn/help/raspbian/
根据系统架构选择源码源
uname -m
进入对应架构的网址(pi5为aarch64),记得选对应depin版本(12(bookworm)),不使用使用 DEB822 格式
https://mirrors.tuna.tsinghua.edu.cn/help/debian/
复制源链接
deb https://mirrors.zju.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.zju.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.zju.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.zju.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
添加至树莓派内部list(将原来的源注释)
/etc/apt/sources.list
更新源和软件
sudo apt update
sudo apt upgrade -y