Post-install configuration for Centos 8.0.1905 x86_64 minimal installation
Work in progress
The instructions below relate to a minimum install of CentOS 8.0.1905 x86_64 from a DVD1 ISO.
Before installing, modify the kernel command line to include "biosdevname=0 net.ifnames=0" so that the network interface(s) don't get renamed.
- Perform minimal installation of Centos 8.0.1905 x86_64 from DVD1 ISO,
- Remove installation media and reboot,
- Wait for background system processes to complete, i.e., for the system to become idle,
- If required, set "ONBOOT" to "yes" in /etc/sysconfig/network-scripts/ifcfg-eth0 (or whatever the interface is named),
- Edit /etc/default/grub to change GRUB_DEFAULT to 0 (zero), remove "rhgb" and "quiet", add "selinux=0" and "ipv6.disable=1" (and maybe "consoleblank=0"), then run grub2-mkconfig -o /boot/grub2/grub.cfg or grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg on EFI hosts
- Reboot,
- Connect via SSH from here on,
- Remove packages: rpm -e biosdevname tuned selinux-policy selinux-policy-targeted rpm-plugin-selinux audit firewalld irqbalance `rpm -qa iwl*` AND THEN rm -fr /etc/tuned*
- Check: Remove packages: rpm -e biosdevname tuned chrony selinux-policy selinux-policy-targeted rpm-plugin-selinux audit NetworkManager NetworkManager-tui NetworkManager-team kexec-tools timedatex polkit polkit-pkla-compat firewalld irqbalance `rpm -qa iwl*` AND THEN rm -fr /etc/tuned /etc/chrony*
- yum -y install net-tools bind-utils (net-tools gets ifconfig, netstat, etc.)
- Disable IPv6 in /etc/ntp.conf and configure local NTP servers, then use systemctl to enable ntpd and ntpdate services
- May need to massage /etc/sysconfig/network-scripts/ifcfg-eth0
- yum -y update
- Disable IPv6 and set relay_host to smtp.cse.unsw.edu.au in /etc/postfix/main.cf and restart postfix.service. Fix root alias in /etc/aliases and run newaliases. See also Configuring outgoing email for sendmail and postfix,
- Reboot,
- Install cron job to poll for updates: 45 2 * * * yum check-update; yum list > yum.list.txt,
- Install additional packages: yum -y install rsync man-pages lsof strace tcpdump telnet wget bzip2
- Create directory /root/.ssh, copy in authorized_keys, and edit /etc/ssh/sshd_config and set to "no" to UseDNS, PasswordAuthentication and GSSAPIAuthentication. Restart sshd and check configuration using ssh -v ...,
- rm /root/anaconda-ks.cfg
- cd /var/log; rm -fr anaconda audit tuned firewalld
To configure networking for more than DHCP:
- /etc/resolve.conf
- /etc/sysconfig/network
- /etc/sysconfig/network-scripts/ifcfg-eth0