# Digital Ocean Bootstrap

> Get your CentOS 7 DigitalOcean droplet up and running in no time! Learn how to perform essential tasks for a smooth deployment.

- Canonical: https://www.russ.cloud/2015/06/28/digital-ocean-bootstrap/
- Published: 2015-06-28
- Author: Russ McKendrick
- Tags: Cloud, Linux, Security

---

As I have mentioned a few times on this blog I tend to use [DigtialOcean](https://www.digitalocean.com/?refcode=52ec4dc3647e) to spin up servers for testing and to host some of my projects. I also still [use CentOS 7](/2014/08/03/am-i-an-operating-system-snob/ "Am I an Operating System snob?") 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](/2015/03/08/migration-of-server-swap-space/ "Migration of Server & Swap Space")
- [Install & configure Fail2Ban](/2015/03/29/fail2ban-on-centos-7/ "Fail2Ban on CentOS 7")
- Enable firewalld
- Install vim-enhanced, deltarpm & enable [EPEL](https://fedoraproject.org/wiki/EPEL "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](https://github.com/russmckendrick/DOBootstrap/blob/master/do-bootstrap.sh).

You can call the script by running;

```bash frame="terminal" title="Digital Ocean Bootstrap 1/1"
curl -fsS https://raw.githubusercontent.com/russmckendrick/DOBootstrap/master/do-bootstrap.sh | bash
```


I recommend that you only run this on CentOS 7 droplet.
