Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- passwd root
- 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*
- bash minstall.sh install-extra-repositories
- Do you want to update the package list? <N>
- Do you want to install the Debian Multimedia repository? <N>
- Do you want to optimise the default repositories? <Y>
- Do you want to install the DotDeb repository? <Y>
- Do you want to install the OpenStatus repository? <N>
- Do you want to clean the package cache? <N>
- invoke-rc.d sendmail stop
- bash minstall.sh clean-packages
- Do you still want to run this module? <Y>
- Do you want to continue <Y>
- Remove /etc/sasldb2? <Yes>
- bash minstall.sh install-ssh
- Do you want to update the package list? <N>
- Do you want to clean the package cache? <N>
- echo MaxAuthTries 2 >> /etc/ssh/sshd_config
- bash minstall.sh install-extra-packages
- Do you want to update the package list? <N>
- Do you want to clean the package cache? <N>
- bash minstall.sh configure-general
- Do you want to change the default system shell? <Y>
- Use dash as the default system shell (/bin/sh)? <Yes>
- Do you want to change the system timezone? <Y>
- Do you want to disable BASH history? <Y>
- Do you want to disable extra getty instances? <Y>
- bash minstall.sh http-install-nginx
- Do you want to update the package list? <N>
- Do you want to clean the package cache? <N>
- ln -s /usr/share/nginx/www/ /home/www
- bash minstall.sh http-install-php
- Do you want to update the package list? <N>
- Do you want to clean the package cache? <N>
- apt-get install php5-cli
- bash minstall.sh http-install-exim
- Do you want to update the package list? <N>
- Do you want to clean the package cache? <N>
- bash minstall.sh http-install-mysql
- Do you want to update the package list? <N>
- Do you want to clean the package cache? <Y>
- echo "nameserver 8.8.8.8" > /etc/resolv.conf
- echo "nameserver 8.8.4.4" >> /etc/resolv.conf
- echo alias ls=\'ls --color=auto\' >> ~/.bashrc
- apt-get install fail2ban
- nano /etc/fail2ban/jail.local
- [DEFAULT]
- ignoreip = 127.0.0.1
- bantime = 86400
- maxretry = 3
- [ssh]
- enabled = true
- port = ssh
- filter = sshd
- logpath = /var/log/auth.log
- maxretry = 3
- cd ~; rm -rf *Minstall* mini.tgz .bash_history; reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement