====== New Server Steps ======

=== Disable SELinux ===
<sxh bash>setenforce 0</sxh>

Edit the config:
<sxh>vim /etc/selinux/config >>>disabled</sxh>

=== Install esgtools ===
<sxh bash>curl -L https://tools.esgr.xyz/download.php?f=esgt -o esgt;chmod +x esgt</sxh>

=== Install Packages ===
<sxh bash>yum install -y epel-release</sxh>

== Centos 7 ==
<sxh bash>yum install -y deltarpm</sxh>
<sxh bash>yum install -y wget nc htop lsof mailx bind-utils net-snmp ntp tcpdump mtr iotop ncdu</sxh>

== Centos 8 ==
<sxh bash>yum install -y drpm</sxh>
<sxh bash>yum install -y wget nc htop lsof mailx bind-utils net-snmp tcpdump mtr iotop ncdu chrony</sxh>

== Common ==

<sxh bash>yum groupinstall -y 'Development tools'</sxh>

== Source or Packages ==
[[software:vim|VIM]]  [[software:mc|MC]]  [[software:tmux|tmux]]

or
<sxh bash>yum install -y tmux vim mc</sxh>

=== Update All Packages ===
<sxh bash>yum -y update</sxh>

=== Install CSF ===
[[software:csf|csf]]

=== Update Timezone ===
<sxh bash>rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime</sxh>

=== Setup NTP ===
<sxh bash>
systemctl enable ntpd
systemctl start ntpd</sxh>

=== Setup SNMP ===
<sxh bash>
systemctl enable snmpd
systemctl start snmpd
</sxh>
[[corp:snmpd.conf|]]

=== Setup Syslog ===
<sxh bash>vim /etc/rsyslog.conf</sxh>
<sxh bash>
*.* @gl.esgr.xyz:10514
$PreserveFQDN on</sxh>
<sxh bash>service rsyslog restart</sxh>

=== Configure memcached ===
memcached - local host only