Advertisement
lady_sif

ns_16

Nov 20th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.19 KB | None | 0 0
  1. #!/bin/sh
  2. echo -e "Hello $USER."
  3. echo
  4. echo -e "Today is $(date)"
  5. echo
  6. echo -e "Current working directory : $(pwd)"
  7. echo
  8. echo -e "Install Script for Nameservers"
  9. echo
  10. echo
  11. echo -e "Removing unneeded apps"
  12. yum remove http* -y # Remove unused apps
  13. yum remove php* -y # Remove unused apps
  14. yum remove mysql* -y # Remove unused apps
  15. yum remove bind* -y # Remove unused apps
  16. echo
  17. echo
  18. echo -e "Now we gonna update the server"
  19. yum -y update
  20. echo
  21. echo
  22. echo -e "Install ip tables"
  23. yum install iptables-services -y
  24. echo
  25. echo
  26. systemctl enable iptables
  27. systemctl start iptables
  28. echo
  29. echo
  30. echo -e "Installing Perl and ipset"
  31. yum -y install perl ipset
  32. echo
  33. echo
  34. echo -e "Now to install Cpanel DNS only"
  35. cd /home
  36. curl -o latest-dnsonly -L https://securedownloads.cpanel.net/latest-dnsonly
  37. sh latest-dnsonly
  38. echo
  39. echo
  40. echo -e "Installing CSF firewall"
  41. cd /usr/src
  42. rm -fv csf.tgz
  43. wget https://download.configserver.com/csf.tgz
  44. tar -xzf csf.tgz
  45. cd csf
  46. ./install.cpanel.sh
  47. perl /usr/local/csf/bin/csftest.pl
  48. echo
  49. echo
  50. echo -e "Installing CSE"
  51. cd /usr/src
  52. rm -fv /usr/src/cse.tgz
  53. wget https://download.configserver.com/cse.tgz
  54. tar -xzf cse.tgz
  55. cd cse
  56. sh install.sh
  57. rm -Rfv /usr/src/cse*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement