安装系统
-
安装系统比较简单,官网下载镜像,我选择的是官方推荐的raspbian ,使用balenaEtcher刷入镜像,在sd卡目录新建ssh空白文件(开启ssh,方便后续连接ssh)
-
树莓派插入刷好镜像的sd卡,插上网线,连电开机,通过路由器后台查看树莓ip后,通过ip登陆ssh,默认账户pi,密码raspberry。
替换国内源
nano /etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
nano /etc/apt/sources.list.d/raspi.list
deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main
#ctrl+o保存,crtl+x退出,然后 apt-get update 更新源