Skip to content

Instantly share code, notes, and snippets.

@abola
Last active May 29, 2018 20:30
Show Gist options
  • Save abola/886418ee63dcea79b8513cac660dbec8 to your computer and use it in GitHub Desktop.
Save abola/886418ee63dcea79b8513cac660dbec8 to your computer and use it in GitHub Desktop.
Basic settings after CentOS7 minimal installed
###
# Disable SElinux
#
mv /etc/selinux/config /etc/selinux/config.ori
echo "SELINUX=disabled" > /etc/selinux/config
echo "SELINUXTYPE=targeted" >> /etc/selinux/config
###
# Install NTP service
#
yum -y install ntpdate
echo "# do ntpdate everyday " >> /var/spool/cron/root
echo "10 5 * * * /usr/sbin/ntpdate tock.stdtime.gov.tw" >> /var/spool/cron/root
echo "" >> /var/spool/cron/root
###
# CentOS 7 removed "ifconfig" command on minimal install
# if you need "ifconfig" command. install "net-tools" package
#
yum -y install net-tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment