Basic Fedora 31+ Installation: Difference between revisions

From WilliamsNet Wiki
Jump to navigation Jump to search
mNo edit summary
Line 12: Line 12:
Many of these packages are already installed, but they are needed later, so we just make sure ...
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 net-tools rsync zsh yum-utils mlocate drpm
  yum -y install sshfs nfs-utils  
  yum -y install sshfs nfs-utils ssmtp psmisc
  yum -y remove firewalld postfix esmtp
  yum -y remove firewalld postfix esmtp
  yum -y update
  yum -y update
Line 19: Line 19:
  sed -i 's/=enforcing/=disabled/g' /etc/selinux/config
  sed -i 's/=enforcing/=disabled/g' /etc/selinux/config
  setenforce 0
  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>.williams.localnet


Enable passwordless sudo:
Enable passwordless sudo:
Line 68: Line 61:
enable references to non-williamsnet addresses for development cluster
enable references to non-williamsnet addresses for development cluster
  scp aslan:/etc/hosts /etc/hosts
  scp aslan:/etc/hosts /etc/hosts
Reboot and verify everything comes up properly
reboot

Revision as of 17:28, 28 November 2020

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