适配于树莓派的CentOS系统安装

系统下载连接:http://mirror.centos.org/altarch/7/isos/armhfp/

请注意,如果是树莓派3/4,一定要从这个 官网下载,否则有可能会出现彩虹屏的情况。

使用烧录工具或者dd命令写入到sd卡中即可。

烧录完成之后记得修改/etc/sysconfig/network-scripts/ifcfg-eth0 中的配置,配置好固定IP地址。

默认用户名为root,密码为centos

使用rootfs-expand命令扩展磁盘空间
lsblk && mount 查找要扩展的分区
resize2fs /dev/mmcblk0p3

nmcli  dnmcli  d  wifi  #查看周围的wifinmcli d wifi connect yourSSID password ‘yourpassword’  #连接wifi
nmcli d  show wlan0  #查看wlan0的状态

配置时间:

timedatectl set-local-rtc 1 # 将硬件时钟调整为与本地时钟一致, 0 为设置为 UTC 时间
timedatectl set-timezone Asia/Shanghai # 设置系统时区为上海

配置epel源:

cat > /etc/yum.repos.d/epel.repo << EOF
[epel]
name=Epel rebuild for armhfp
baseurl=https://armv7.dev.centos.org/repodir/epel-pass-1/
enabled=1
gpgcheck=0

EOF
This entry was posted in Device, PC and other personal devices and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *