As I have mentioned a few times on this blog I tend to use DigtialOcean to spin up servers for testing and to host some of my projects. I also still use CentOS 7 as my preferred OS.
Each time I boot a droplet I run few a couple of tasks to get the server how I prefer it.
- Run a yum update
- Enable swap
- Install & configure Fail2Ban
- Enable firewalld
- Install vim-enhanced, deltarpm & enable EPEL
As I am lazy and sometimes re-launch instances several times when working on a project I decided to write a quick script to do the above so I don’t have to.
You can call the script by running;
curl -fsS https://raw.githubusercontent.com/russmckendrick/DOBootstrap/master/do-bootstrap.sh | bash
I recommend that you only run this on CentOS 7 droplet.