前言
树莓派买了有快两年了,有时候因为自己操作错误导致系统需要重装,时间长了装机过程都忘了,所以现在重新整理一份,备用。
刻盘
1.Win32DiskImager.exe
位置:D:\SoftWare\A树莓派\Win32DiskImager-0.9.5-binary
2. 系统镜像: 2020-02-13-raspbian-buster-full.img
位置:H:\90系统镜像
基本操作,具体就不细说了。
3.将刻好的盘装入树莓派,插电静等,启动后进入桌面
初始配置
设置初始密码,选择wifi
vnc,ssh启用
重新启动
系统换源
树莓派系统使用的linux是debian系统,所以树莓派启用root和debian是相同的。
debian里root账户默认没有密码,但账户锁定。
当需要root权限时,由默认账户经由sudo执行,Raspberry pi 系统中的Raspbian
默认主机名是 raspberrypi 默认用户是 pi 密码为 raspberry
// 启用 root 账号登录
sudo passwd --unlock root
passwd: password expiry information changed.
1、修改软件更新源,选择中科大的源,删除或修改或注释掉原来的
**sudo nano /etc/apt/sources.list
#Uncomment line below then ‘apt-get update’ to enable ‘apt-get source’
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
deb http://mirrors.aliyun.com/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
2、修改系统更新源
**sudo nano /etc/apt/sources.list.d/raspi.list
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ stretch main ui
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ buster main
3、更新软件源列表、软件版本和内核版本
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo rpi-update
电脑配置较低,更新约1小时左右