镜像
https://mirrors.tuna.tsinghua.edu.cn/centos-altarch/7.9.2009/isos/aarch64/images/
在烧录好的 SD 卡 boot 目录中,创建一个名为 ssh 的空文件夹,连接树莓派
在烧好Raspbian系统的TF卡boot分区新建 wpa_supplicant.conf 文件,内容如下(修改自己的WIFI名和密码,key_mgmt根据路由器配置),保存后启动树莓派即可自动连接WIFI。
country=CNctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevupdate_config=1network={ssid="MERCURY_605D62"psk="taoya1230.0"key_mgmt=WPA-PSKpriority=1}
network={ssid="MERCURY_605D62"scan_ssid=1psk="taoya1230.0"key_mgmt=WPA-PSK}
系统账号密码
默认用户名 root 密码 centos
WIFI
https://zhuanlan.zhihu.com/p/35143635
:::info 列出附近wifi :::
nmcli dev wifi list

:::info 连接wifi :::
nmcli dev wifi connect <name> password <password> 不指定网卡连接wifinmcli dev wifi connect <name> password <password> ifname wlan1 [profile_name] 指定网卡> 例子nmcli dev wifi connect MERCURY_9F8B passwd Mj520125888
文本界面:nmtui
图形界面:nm-connection-editor
解决树莓派4 安装centos根目录空间不足
pi@raspberry:~$ /usr/bin/rootfs-expand# 确定是否加sudopi@raspberry:~$ sudo /usr/bin/rootfs-expand
安装BT
:::warning ERROR: Make python env fielded. 提示这个错误 :::
yum -y install gcc automake autoconf libtool make
替换yum镜像源
# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manually picking other mirrors.## If the mirrorlist= does not work for you, as a fall back you can try the# remarked out baseurl= line instead.##[base]name=CentOS-$releasever - Base#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=osbaseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/os/$basearch/gpgcheck=1enabled=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32#released updates[updates]name=CentOS-$releasever - Updates# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updatesbaseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/updates/$basearch/gpgcheck=1enabled=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32#additional packages that may be useful[extras]name=CentOS-$releasever - Extras# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extrasbaseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/extras/$basearch/gpgcheck=1enabled=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plus# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplusbaseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
