Basic CentOS 7 Installation
CentOS Distribution Install
Centos 7 minimal install from DVD install disk During install process:
- use custom formatting
- set partition type to 'standard'
- click on 'automatically create partitions
- delete /home partition and increase size of / to fill the disk
- set hostname (if known)
- enable all basic network interfaces (do not rename -- it will crash the installer)
Basic system prep
yum -y install net-tools rsync zsh epel-release yum-cron yum-utils mlocate deltarpm yum -y install sshfs nfs-utils ssmtp yum -y remove firewalld postfix yum autoremove -y NetworkManager NetworkManager-libnm # only if not using as graphic workstation systemctl enable yum-cron systemctl start yum-cron yum -y update
Disable SELinux (no comment)
sed -i 's/=enforcing/=disabled/g' /etc/selinux/config setenforce 0
Reboot and verify everything comes up properly
reboot
System Configuration
Set the system hostname (if not set during installation)
hostnamectl set-hostname <hostname>
Enable passwordless sudo:
- use visudo
- search for 'wheel'
- comment out that line
- uncomment the one below it
Set zsh as the default shell
- chsh to /bin/zsh (both root and ewilliam)
- copy ssh and zsh config files (both root and ewilliam)
scp -r calormen:.ssh . scp calormen:.zshrc . scp calormen:.zlogin .
Setup backup to central file server
- copy scripts from calormen
scp calormen:/etc/cron.daily/backup /etc/cron.daily scp calormen:/usr/local/bin/rsync_backup.sh /usr/local/bin/
- edit rsync_backup.sh, changing target directory and list of directories to backup
- create target directory on storage1 if it doesn't exist
- run /etc/cron.daily/backup to verify proper operation
Enable connection to the central log server
scp calormen:/etc/rsyslog.d/99-remotelog.conf /etc/rsyslog.d ; systemctl restart rsyslog
Enable mail to central mail server
echo "root: ewilliam@williams.localnet" >> /etc/aliases echo "ewilliam: ewilliam@williams.localnet" >> /etc/aliases
enable references to non-williamsnet addresses for development cluster
scp aslan:/etc/hosts /etc/hosts