Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo -e "Hello $USER."
- echo
- echo -e "Today is $(date)"
- echo
- echo -e "Current working directory : $(pwd)"
- echo
- echo -e "Install Script for Nameservers"
- echo
- echo
- echo -e "Removing unneeded apps"
- yum remove http* -y # Remove unused apps
- yum remove php* -y # Remove unused apps
- yum remove mysql* -y # Remove unused apps
- yum remove bind* -y # Remove unused apps
- echo
- echo
- echo -e "Now we gonna update the server"
- yum -y update
- echo
- echo
- echo -e "Install ip tables"
- yum install iptables-services -y
- echo
- echo
- systemctl enable iptables
- systemctl start iptables
- echo
- echo
- echo -e "Installing Perl and ipset"
- yum -y install perl ipset
- echo
- echo
- echo -e "Now to install Cpanel DNS only"
- cd /home
- curl -o latest-dnsonly -L https://securedownloads.cpanel.net/latest-dnsonly
- sh latest-dnsonly
- echo
- echo
- echo -e "Installing CSF firewall"
- cd /usr/src
- rm -fv csf.tgz
- wget https://download.configserver.com/csf.tgz
- tar -xzf csf.tgz
- cd csf
- ./install.cpanel.sh
- perl /usr/local/csf/bin/csftest.pl
- echo
- echo
- echo -e "Installing CSE"
- cd /usr/src
- rm -fv /usr/src/cse.tgz
- wget https://download.configserver.com/cse.tgz
- tar -xzf cse.tgz
- cd cse
- sh install.sh
- rm -Rfv /usr/src/cse*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement