树莓派4B系统安装
01|软件准备
02|系统安装与远程连接
第一步:准备SD卡以及读卡器,用于系统软件烧录,通过SD Card Formatter格式化存储卡;
第二步:通过Win32 Disk Imager软件将Raspbian系统的镜像文件(raspbian-buster-full.img)烧录至SD卡中;
第三步:将SD卡插入卡槽内,连接显示器、鼠标、键盘,打开电源开机;
第四步:进行系统设置,开启SSH功能,并通过ifconfig查看本机IP;
第五步:通过Putty远程连接树莓派。
03|注意事项
1. 键盘布局设置
第一步:在终端命令窗口输入如下命令进行键盘布局设置
1
sudo dpkg-reconfigure keyboard-configuration
第二步:选择通用的104键PC键盘(Generic 104-key PC)
第三步:在键盘layout选择Other,选择English(US)
2. VNC远程连接树莓派
第一步:远程连接树莓派,输入命令sudo raspi-config,选择第五项“5 Interfacing Options”,选择第三项“Vnc”开启
第二步:通过Vnc Viewer工具连接
出现“connot currently show the desktop”问题
修改树莓派配置,选择第7项:Advanced Options ,继续选择第五项:Resolution,选择屏幕显示模式:DMT Mode 85 1280x720 60Hz 16:9
3. Windows远程桌面连接
第一步:输入命令sudo apt-get install tightvncserver xrdp,安装软件
第二步:电脑通过Win+r打开运行窗口,输入:mstsc,打开windows连接程序,输入IP连接树莓派
4. 修改镜像源
第一步:输入命令sudo nano /etc/apt/sources.list,编辑文件
第二步:将文件内容修改如下
1
2
3
4
5
6
# deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# 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-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi