镜像

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。

  1. country=CN
  2. ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
  3. update_config=1
  4. network={
  5. ssid="MERCURY_605D62"
  6. psk="taoya1230.0"
  7. key_mgmt=WPA-PSK
  8. priority=1
  9. }
  1. network={
  2. ssid="MERCURY_605D62"
  3. scan_ssid=1
  4. psk="taoya1230.0"
  5. key_mgmt=WPA-PSK
  6. }

系统账号密码

  1. 默认用户名 root 密码 centos

WIFI

https://zhuanlan.zhihu.com/p/35143635

:::info 列出附近wifi :::

  1. nmcli dev wifi list

image.png

:::info 连接wifi :::

  1. nmcli dev wifi connect <name> password <password> 不指定网卡连接wifi
  2. nmcli dev wifi connect <name> password <password> ifname wlan1 [profile_name] 指定网卡
  3. > 例子
  4. nmcli dev wifi connect MERCURY_9F8B passwd Mj520125888

文本界面:nmtui

图形界面:nm-connection-editor

解决树莓派4 安装centos根目录空间不足

  1. pi@raspberry:~$ /usr/bin/rootfs-expand
  2. # 确定是否加sudo
  3. pi@raspberry:~$ sudo /usr/bin/rootfs-expand

安装BT

:::warning ERROR: Make python env fielded. 提示这个错误 :::

  1. yum -y install gcc automake autoconf libtool make

替换yum镜像源

  1. # CentOS-Base.repo
  2. #
  3. # The mirror system uses the connecting IP address of the client and the
  4. # update status of each mirror to pick mirrors that are updated to and
  5. # geographically close to the client. You should use this for CentOS updates
  6. # unless you are manually picking other mirrors.
  7. #
  8. # If the mirrorlist= does not work for you, as a fall back you can try the
  9. # remarked out baseurl= line instead.
  10. #
  11. #
  12. [base]
  13. name=CentOS-$releasever - Base
  14. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
  15. baseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/os/$basearch/
  16. gpgcheck=1
  17. enabled=1
  18. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
  19. file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
  20. #released updates
  21. [updates]
  22. name=CentOS-$releasever - Updates
  23. # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
  24. baseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/updates/$basearch/
  25. gpgcheck=1
  26. enabled=1
  27. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
  28. file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
  29. #additional packages that may be useful
  30. [extras]
  31. name=CentOS-$releasever - Extras
  32. # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
  33. baseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/extras/$basearch/
  34. gpgcheck=1
  35. enabled=1
  36. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
  37. file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
  38. #additional packages that extend functionality of existing packages
  39. [centosplus]
  40. name=CentOS-$releasever - Plus
  41. # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
  42. baseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/centosplus/$basearch/
  43. gpgcheck=1
  44. enabled=0
  45. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
  46. file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32