Install and setup CentOS7

After making a CentOS 7 minimal install and boot up for the first time. Here are, in my view, the tools and “must do” things that you will meed for day to day work.

Remove Intel Wifi devices firmware (do this only if you don’t use it):

yum remove iwl*

Update CentOS to the latest packages:

yum -y update

Install the tools:

yum install net-tools bind-utils wget vim

If you are in a vmware virtual machine install the virtualization tools:

yum install open-vm-tools

If you need, setup network

nmtui
systemctl restart network.service

Setup aliases, so that messages from services can be sent to the correct email account:

vim /etc/aliases

Change the root: to the correct email account

# Person who should get root's mail
root: your@email

Then issue the fallowing command so that linux uses the new email account:

newaliases

Next setup postfix to send email thru a valid mail server

vim /etc/postfix/main.cf

Using TLS

relayhost = your.mail.server:587
smtp_use_tls=yes

Without TLS

relayhost = your.mail.server

Finaly restart postfix

systemctl restart postfix.service

If you want you can install logwatch

yum install logwatch

The configure it to send you system logs emails

echo "MailTo = email-logs@dominio" >> /etc/logwatch/conf/logwatch.conf