Advertisement
Guest User

Minstall

a guest
Aug 5th, 2012
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. passwd root
  2.  
  3. cd ~; rm -rf *Minstall* mini.tgz; wget --no-check-certificate -O mini.tgz http://www.github.com/maxexcloo/Minstall/tarball/master; tar zxvf mini.tgz; cd *Minstall*
  4.  
  5. bash minstall.sh install-extra-repositories
  6. Do you want to update the package list? <N>
  7. Do you want to install the Debian Multimedia repository? <N>
  8. Do you want to optimise the default repositories? <Y>
  9. Do you want to install the DotDeb repository? <Y>
  10. Do you want to install the OpenStatus repository? <N>
  11. Do you want to clean the package cache? <N>
  12.  
  13. invoke-rc.d sendmail stop
  14.  
  15. bash minstall.sh clean-packages
  16. Do you still want to run this module? <Y>
  17. Do you want to continue <Y>
  18. Remove /etc/sasldb2? <Yes>
  19.  
  20. bash minstall.sh install-ssh
  21. Do you want to update the package list? <N>
  22. Do you want to clean the package cache? <N>
  23.  
  24. echo MaxAuthTries 2 >> /etc/ssh/sshd_config
  25.  
  26. bash minstall.sh install-extra-packages
  27. Do you want to update the package list? <N>
  28. Do you want to clean the package cache? <N>
  29.  
  30. bash minstall.sh configure-general
  31. Do you want to change the default system shell? <Y>
  32. Use dash as the default system shell (/bin/sh)? <Yes>
  33. Do you want to change the system timezone? <Y>
  34. Do you want to disable BASH history? <Y>
  35. Do you want to disable extra getty instances? <Y>
  36.  
  37. bash minstall.sh http-install-nginx
  38. Do you want to update the package list? <N>
  39. Do you want to clean the package cache? <N>
  40.  
  41. ln -s /usr/share/nginx/www/ /home/www
  42.  
  43. bash minstall.sh http-install-php
  44. Do you want to update the package list? <N>
  45. Do you want to clean the package cache? <N>
  46.  
  47. apt-get install php5-cli
  48.  
  49. bash minstall.sh http-install-exim
  50. Do you want to update the package list? <N>
  51. Do you want to clean the package cache? <N>
  52.  
  53. bash minstall.sh http-install-mysql
  54. Do you want to update the package list? <N>
  55. Do you want to clean the package cache? <Y>
  56.  
  57. echo "nameserver 8.8.8.8" > /etc/resolv.conf
  58. echo "nameserver 8.8.4.4" >> /etc/resolv.conf
  59.  
  60. echo alias ls=\'ls --color=auto\' >> ~/.bashrc
  61.  
  62. apt-get install fail2ban
  63. nano /etc/fail2ban/jail.local
  64.  
  65. [DEFAULT]
  66. ignoreip = 127.0.0.1
  67. bantime = 86400
  68. maxretry = 3
  69.  
  70. [ssh]
  71. enabled = true
  72. port = ssh
  73. filter = sshd
  74. logpath = /var/log/auth.log
  75. maxretry = 3
  76.  
  77. cd ~; rm -rf *Minstall* mini.tgz .bash_history; reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement