Basic Fedora 31+ Installation

From WilliamsNet Wiki
Revision as of 17:28, 28 November 2020 by DrEdWilliams (talk | contribs)
Jump to navigation Jump to search

Fedora Distribution Install

Fedora 31 KDE Workstation 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

Many of these packages are already installed, but they are needed later, so we just make sure ...

yum -y install net-tools rsync zsh yum-utils mlocate drpm
yum -y install sshfs nfs-utils ssmtp psmisc
yum -y remove firewalld postfix esmtp
yum -y update

Disable SELinux (no comment)

sed -i 's/=enforcing/=disabled/g' /etc/selinux/config
setenforce 0

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 .

Enable the SSH server (why it's not enabled by default is strange ...)

systemctl enable --now sshd

Enable automatic updates. Parameters can be set in the config files '/etc/dnf/automatic.conf'

yum -y install dnf-automatic
systemctl enable --now dnf-automatic.timer

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 aslan:/etc/hosts /etc/hosts

scp calormen:/etc/rsyslog.d/99-remotelog.conf /etc/rsyslog.d ; systemctl restart rsyslog

Enable mail to central mail server; SSMTP package is not yet in the CentOS 8 epel repo, so we need to 'borrow' it from CentOS 7

# download ssmtp RPM from somewhere
wget http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/s/ssmtp-2.64-14.el7.x86_64.rpm
yum -y install ssmtp-2.64-14.el7.x86_64.rpm
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

Reboot and verify everything comes up properly

reboot