本文是一篇针对本人重装树莓派Raspbian系统操作的记录,对许多地方没有做详细说明,所以更适合对树莓派略有了解的及和我一样有重装系统需求的读者 : - )
使用"SD Card Formatter"格式化SD卡
使用"Win32 Disk Imager"将系统镜像写入SD卡
无视系统关于SD卡的所有报错,打开SD卡,找到config.txt,在其中添加以下内容
max_usb_current=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
hdmi_force_hotplug=1
config_hdmi_boost=4
micro-HDMI选择左边的接口(此步仅针对本人设备)
开机引导,最后一步"检查更新"选择跳过
换阿里云Buster源
sudo nano /etc/apt/sources.list
改为
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
另外
sudo nano /etc/apt/sources.list.d/raspi.list
改为
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main
并且
sudo nano /etc/resolv.conf
改为
nameserver 114.114.114.114
重启树莓派
sudo reboot
重启后
sudo apt-get update && sudo apt-get upgrade -y
安装Vim
sudo apt-get remove vim-common
sudo apt-get install vim
配置
vim ~/.vimrc
改为
set number
syntax on
set tabstop=4
备份当前系统
将能够存储下树莓派系统的SD卡通过读卡器插入树莓派,用附件里的SD Card Copier备份
原文:https://www.cnblogs.com/Clouds42/p/12325784.html