Spin up a ubuntu server in 5 minutes on DigitalOcean.com

Spin up a ubuntu server in 5 minutes on DigitalOcean.com

In this tutorial I’ll show you how to create your very own cloud hosted server on digitalocean.com

DigitalOcean.com is a cloud hosting provider that makes it very simple for anyone to create and run a virtual server connected directly to the internet.  DigitalOcean.com calls these servers Droplets.  They offer a range of operating systems to choose from including Ubuntu, CentOS, Debian, Fedora, CoreOS, and FreeBSD.

In additional to the above linux-based operating systems they offer many One-Click application droplets, which are basically a server with preinstalled, reconfigured software.  Here is a list of their current One-Click Application droplets.

  • Django – A Popular Python Web Application Framework
  • Docker – Containerized Applications
  • Dokku – mini-Heroku PaaS Server using docker
  • Drone – Continous Integration Server
  • Drupal – A Popular PHP-based Content Management System
  • ELF – Elasticsearch, Logstash, and Kibana Logging Stack
  • FreeBSD AMP – FreeBSD, Apache, MySQL, and PHP Stack
  • Ghost – Open Source blogging platform
  • GitLab – Self-hosted git repository server
  • Joomla – PHP-based Content Management System
  • LAMP – Linux, Apache, MySQL, PHP Stack
  • LEMP – Linux, nginx, MySQL, PHP Stack
  • Magento – A PHP-based eCommerce Application
  • MEAN – MongoDB, ExpressJS, AngularJS, NodeJS Stack
  • MediaWiki – A PHP-based Wiki that powers wikipedia.org
  • MongoDB – A modern NOSQL Database Server
  • Node.js – A server-size Javascript framework
  • ownCloud – Similar to Dropbox but running on your own server
  • Redmine – Ruby-based project management web application
  • Ruby on Rails – Ruby-based Web Application Framework
  • WordPress – A PHP-based blogging platform

For this tutorial we are going to keep it simple by creating a Ubuntu linux server.  To get started you will need to create an account a digitalocean.com.  Use the follow link and you will get $10 credit to play with, $10 will get you 2 months FREE hosting of their smallest droplet size.

 

Signup for DigitalOcean.com and get $10 FREE credit

 

Once you are logged in you will see a big green button that say ‘Create Droplet’. Go ahead and click it and follow along.

  1. Click “Create Droplet”
  2. Enter a Hostname: myfirstserver
  3. Select Size: $5/mo
  4. Region: Choose your preferred region, I chose New York
  5. Available Settings:  Check none since this is just a test
  6. Select Image:  Ubuntu 14.04 x64
  7. Add SSH Keys:  Skip for now
  8. Click “Create Droplet”
2015-05-07 17_25_41-DigitalOcean Control Panel
DigitalOcean.com Control Panel

DigitalOcean.com Create Droplet Screen
DigitalOcean.com Create Droplet Screen
Next you will see a progress bar as your server is provisioned in the background.  At the same time you will receive and email with your new server’s IP Address and root password.

DigitalOcean.com Creating droplet progress screen
DigitalOcean.com Creating droplet progress screen
New Droplet Email Screenshot

New Droplet Email Screenshot
As soon as the server is running you should see screen like this.

DigitalOcean Droplet Overview Screen
DigitalOcean Droplet Overview Screen
So what next?  Well, your new server is running the server version of ubuntu linux which offers a text-based interface.  To access the console from right inside your browser, click the Access tab and click the big blue “Console Access” button.

DigitalOcean Web Console Terminal
DigitalOcean Web Console Terminal
Try logging in with the username root and the password digitalocean emailed you.  On first login you will be prompted to change the root password.  I recommend choosing a strong password, use numbers letters symbols and a length over 12 characters.  I know…but your server is connected directly to the Internet.

Next, lets connect via SSH (Secure Shell) using a dedicated terminal emulator. If you don’t already have one, putty is a quick and free option.  I highly recommend SecureCRT if you spend any amount of time managing servers or routers.  For this tutorial I will use putty, download it over at http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html, I chose the windows installer.

  1. Install and Launch putty
  2. Enter your server’s Hostname [IP Address of Droplet]
  3. Connection type: SSH
  4. Name the Session: myfirstserver and click “Save”
  5. Click “Open” to connect

Putty Connection Dialog
Putty Connection Dialog
The first time you connect to an ssh host you will see a prompt like the following, just go ahead click “Yes”.

Putty SSH Fingerprint Dialog
Putty SSH Fingerprint Dialog
Next, login using the username root and root password you chose in an earlier step.  Once logged in you should see a prompt similar to this.

Putty Server Console
Putty Server Console
That’s it, you setup a server, it’s running, and you are connected!  Now what?  Well it depends what your intentions are, most internet servers run a web servers of some type and serve web pages.

A few notes about your new server.  Now that your server is provisioned and running you are being billed for it.  If you selected the smallest server option this adds up to $5/month.  As log as your server is provisioned you will be billed, even if you power off your server.  So if you created your server to follow along with the tutorial but have no real use for it right now, you can go back into the digitalocean control panel and delete your droplet.

  1. Click the “Destroy” tab
  2. Uncheck scrub data, unless your server contains sensitive data.
  3. Click the big blue “Destroy” button

DigitalOcean Destroy Droplet Screen
DigitalOcean Destroy Droplet Screen
Stay tuned, I will post several followup tutorials that will take you deeper into managing and controlling your server.  Including a tutorial on how to store instead of destroy your droplet without being charged.  One-Click Application Droplets will also be covered.

Check back or Subscribe via email for these forthcoming tutorials

Comments are closed.