树莓派3B 4B安装bruster bullseye
由于之前的树莓派操作过太多东西,内部库很复杂配置ROS也出了很多未知问题,所以重新安装raspberry buster bullseye系统,以此篇文章来记录。
下载img
国外镜像由于某些原因下载非常慢,所以同时提供了国内镜像供选择,下载会快很多。
如果内存大于4GB建议选择64位系统。
- raspios_full_armhf 32位官方系统 对应debian bookworm
Index of /raspios_full_armhf/images/raspios_full_armhf-2023-12-06
- raspios_full_arm64 64位官方系统 对应debian bookworm
Index of /raspios_full_arm64/images/raspios_full_arm64-2023-12-06
- raspios_oldstable_full_armhf 32位历史官方系统 对应debian bullseye
Index of /raspios_oldstable_full_armhf/images/raspios_oldstable_full_armhf-2023-12-06
- raspios_oldstable_full_arm64 64位历史官方系统 对应debian bullseye
Index of /raspios_oldstable_full_arm64/images/raspios_oldstable_full_arm64-2023-12-06
- raspios_oldstable_armhf 32位历史官方系统 对应debian buster
Index of /raspios_oldstable_armhf/images/raspios_oldstable_armhf-2023-05-03
- raspios_arm64 64位历史官方系统 对应debian buster
Index of /raspios_arm64/images/raspios_arm64-2021-05-28
web引导界面:
https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit
官方下载地址:
https://downloads.raspberrypi.com/
国内镜像有下边两个可以下载img镜像:
下载方式有不同,上交链接打开后如下,我选择的是raspbian_full下载,具体链接是
2020-02-13-raspbian-buster-full.zip
清华下载方式如下,具体链接是:
https://mirrors.tuna.tsinghua.edu.cn/raspberry-pi-os-images/raspios_full_armhf/images/raspios_full_armhf-2020-12-04/2020-12-02-raspios-buster-armhf-full.zip
烧录
我使用的是Etcher,下载链接是:
https://github.com/balena-io/etcher/releases/download/v1.5.45/balenaEtcher-Setup-1.5.45.exe
安装完成后,装入树莓派即可。
没有键盘的初始化
如果你有鼠标,显示器和一台笔记本电脑就可以使用我的方法,先把鼠标接上树莓派,
开启ssh和vnc,如下操作,打开ssh和vnc权限:
连接wifi
点击右上角wifi图标选择目标wifi链接,会弹出输入密码,如果必须要输密码,我是通过从系统中文件名里复制出来的,连上后再右上角有显示ip地址,这样同一网段的笔记本就可以用vnc远程连接树莓派了。
你也可以用手机开一个热点,用笔记本和树莓派都连上这个热点,连上热点之后在手机上可以看到树莓派的ip。
根据IP连接vnc
初始账号密码如下所示:
账号:pi
密码:raspberry
替换国内源
设置sources.list
这里使用的是阿里云
sudo vim /etc/apt/sources.list
#注释所有后修改为
deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
里边的bullseye根据你安装的版本来修改为buster、bookworm等
修改raspi.list
$ cat /etc/apt/sources.list.d/raspi.list
#deb http://archive.raspberrypi.org/debian/ bullseye main
# 增加下边这行屏蔽其它
deb http://mirrors.aliyun.com/raspberrypi/ bullseye main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ bullseye main
更新软件源:
sudo apt-get update
这样之后你就可以通过笔记本来操作树莓派了。