树莓派4B踩坑centos

1、下载系统
https://mirrors.huaweicloud.com/centos-altarch/7.7.1908/isos/armhfp/CentOS-Userland-7-armv7hl-RaspberryPI-Minimal-4-1908-sda.raw.xz
解压得到CentOS-Userland-7-armv7hl-RaspberryPI-Minimal-4-1908-sda.raw

2、下载内存卡修复工具SDFormatter.exe
image.png

格式化sd卡,切记不要用win的格式化,木有用的!!!

3、win32diskimager-1.0.0-install.exe烧入sd卡即可


image.png

4、插卡入树莓派,通电开机,插入网线。


image.png

路由器里面找到ip地址链接ssh
账户root
密码centos

5、df -Th查看磁盘大小


image.png

如没认到全部磁盘大小,直接用
/usr/bin/rootfs-expand
即可!!!

6、wifi设置
教程 https://segmentfault.com/a/1190000013376776?utm_source=tag-newest

nmcli connection modify 'chuchu' wifi-sec.key-mgmt wpa-psk
nmcli connection modify 'chuchu' wifi-sec.psk 'chuchu1021'
nmcli connection up 'chuchu'
nmcli d show wlan0
nmcli dev wifi con duoduo password chuchu1021 name duoduo

推荐教程:https://blog.csdn.net/cpongo3/article/details/89334129
固定ip设置
https://blog.csdn.net/Hanniel/article/details/86710900
踩坑无线网卡
https://blog.csdn.net/chenkaifang/article/details/82531696
vi etc/sysconfig/network-script/ifcfg-0000 #0000是wifi的名字

BOOTPROTO=static #静态IP
IPADDR=192.168.0.160 #IP地址
GATEWAY=192.168.1.1 #默认网关
NETMASK=255.255.255.0 #子网掩码

你可能感兴趣的:(树莓派4B踩坑centos)