Skip to content

树莓派安装说明

官网地址

安装镜像工具

官网地址下载

使用 scoop 安装镜像工具

sh
scoop install extras/raspberry-pi-imager

ip寻址

提示

后续操作都是基于 ip 来进行操作的

  • 方案一
    • 使用 hdmi 连接屏幕,控制台输入 hostname -I 即可
  • 方案二
    • 使用路由器加网线组成内网通过路由器查看 ip 地址
  • 方案三
    • 使用读卡器读取 SD 储存卡找到 nano/etc/wpa_supplicant/wpa_supplicant.conf 修改相关配置连接 wifi 通过路由器查询地址

默认密码

yml
username: pi
password: raspberry

树莓派配置

bash
raspi-config

配置root远程登录

需要重启

bash
sudo passwd root

sudo passwd -u root

# /etc/ssh/sshd_config
PermitRootLogin without-password
# 修改为
PermitRootLogin yes

开启ssh

bash
# 开启 ssh
systemctl start ssh
# 设置开机启动
systemctl enable ssh

启用树莓派VNC服务

sh
sudo raspi-config

# Interfacing options -> vnc enable

修改镜像源

修改镜像源参考地址

编辑 /etc/apt/sources.list 文件,删除原文件所有内容,用以下内容取代:

sh
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib

编辑 /etc/apt/sources.list.d/raspi.list 文件,删除原文件所有内容,用以下内容取代:

sh
deb http://mirrors.aliyun.com/raspberrypi/ buster main ui

树莓派中文输入法

bash
apt-get update

# 安装 google 输入法
apt-get install -y fcitx fcitx-googlepinyin

sudo reboot

Site developed by Aomd.