/ CentOS

Cheatsheet for a new CentOS 7 on Raspberry Pi

Create a sudo user

# adduser <user>
# passwd <user>
# usermod -aG wheel <user>

Disable DHCP and use static IP address (requires reboot)

$ sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO="static"
IPADDR="<ip>"
PREFIX="24"
GATEWAY="<gateway>"
DNS1="8.8.8.8"
DNS2="8.8.4.4"

Enable proxy (requires reboot)

$ sudo vi /etc/yum.conf
[main]
proxy=http://<ip>:<port>

$ sudo vi /etc/environment
http_proxy=http://<ip>:<port>
https_proxy=http://<ip>:<port>
ftp_proxy=http://<ip>:<port>

Enable NTP

$ sudo yum install chrony
$ sudo systemctl start chronyd.service
$ sudo systemctl enable chronyd.service

Enable EPEL repo

$ sudo 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

Install WiFi firmware (requires reboot)

$ curl -O https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/master/brcm80211/brcm/brcmfmac43430-sdio.bin
$ sudo mv brcmfmac43430-sdio.bin /lib/firmware/brcm
$ sudo chown root.root brcmfmac43430-sdio.bin