# A DigitalOcean droplet in 10 minutes

## Overview

In [What is this "Linux", anyhow?](../../../../what-is-linux/overview) we briefly covered a number of options for [getting access to a GNU/Linux environment](../../../../what-is-linux/get-you-a-linux). In this guide, we'll discuss one easy option for experimenting with a small server in the cloud.

## What is this "Cloud" Business, Anyway?
[Cloud computing](https://en.wikipedia.org/wiki/Cloud_computing) has been a tech industry buzzword for years now.&nbsp; Most industry buzzwords have a way of fizzling out after a while, but "the cloud" has passed into everyday speech as a routine shorthand for the often-nebulous world of networked software and storage. Used this way, it often comes with a certain amount of hand waving and fuzzy thinking, but you can usually dispel that by remembering that "cloud" is a useful shorthand for "happening on other people's computers".

There are gazillions of companies offering different cloud services, in ways that range from the simple to the brain-hurtingly complex.&nbsp; A lot of the modern internet runs on top of [Amazon's datacenters and networks](https://aws.amazon.com/), for example.

## DigitalOcean
![](https://cdn-learn.adafruit.com/assets/assets/000/023/006/medium800/microcomputers_Screenshot-2014-12-23-13_02_20.png?1423774712)

At $5-10 a month for a server instance, [DigitalOcean](https://www.digitalocean.com/)&nbsp;offers a nice mix of simplicity and reasonable cost. If you'd like to experiment with running a Linux server on the internet, it's a great place to start.

In DigitalOcean terminology, individual servers are called "droplets", and managed by way of a web interface.

# A DigitalOcean droplet in 10 minutes

## Account Setup

![](https://cdn-learn.adafruit.com/assets/assets/000/023/007/medium800/microcomputers_Screenshot-2014-12-23-13_02_35.png?1423774752)

First, you'll need an account.&nbsp; Hit the DigitalOcean home page and click that SIGN UP button.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/008/medium800/microcomputers_Screenshot-2015-02-12-14_00_17.png?1423774874)

You'll want to [pick a good password](https://www.schneier.com/blog/archives/2014/03/choosing_secure_1.html) here, since access to this account gives root access to the servers you host under it.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/009/medium800/microcomputers_Screenshot-2014-12-23-13_08_03.png?1423775282)

Next, check your e-mail for a confirmation message from DigitalOcean, and click the confirmation link inside.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/010/medium800/microcomputers_Screenshot-2014-12-23-13_08_32.png?1423775361)

You should then be asked to provide a credit card number to pay for the account.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/011/medium800/microcomputers_Screenshot-2014-12-23-13_09_26.png?1423775376)

# A DigitalOcean droplet in 10 minutes

## Droplet Creation

![](https://cdn-learn.adafruit.com/assets/assets/000/023/013/medium800/microcomputers_Screenshot-2014-12-23-13_11_22.png?1423775523)

With the bureaucracy taken care of, you're ready to fire up a virtual machine. Click that "Create Droplet" button, and you should see a screen like this one.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/014/medium800/microcomputers_Screenshot-2014-12-23-13_52_21.png?1423775556)

The $5/mo option is more than adequate for most purposes, so let's go with that. Next you'll be asked to select which region the droplet should live in - or more exactly, which of several datacenters you'd like to host it in.

It's often advisable to pick something on your continent just to avoid a slow connection to the server. In this case, I went with New York.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/015/medium800/microcomputers_Screenshot-2014-12-23-13_52_53.png?1423775650)

Next, you'll be prompted to select an **image** containing a pre-installed&nbsp;[distribution](../../../../what-is-linux/what-about-choosing-a-distribution).

Here, I'm going with the latest stable Debian, because that's the most like a Raspberry Pi install of Raspbian. If you're planning to follow along with tutorials in this series, Debian (stable but fairly stale) or Ubuntu (a lot like Debian, but with fresher software and some different design priorities) will usually work well. Other choices are well worth exploring, but keep in mind that there are subtle (or not-so-subtle) differences between the distributions.

There's even an option to use [FreeBSD](https://www.freebsd.org/), an operating system that's a [direct descendant](https://en.wikipedia.org/wiki/Berkeley_Software_Distribution) of the original AT&T Unix codebase. (FreeBSD is well worth exploring in its own right.)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/017/medium800/microcomputers_Screenshot-2014-12-23-13_54_01.png?1423775847)

You also have the option to add an SSH key here. Go ahead, if you know what an SSH key is and have one lying around. Otherwise, we'll get into that in a minute.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/018/medium800/microcomputers_Screenshot-2014-12-23-13_53_30.png?1423776212)

Lastly, there are a variety of configuration options.&nbsp; If you're planning to keep this droplet around for a while, you might want to enable backups now, because it's a little trickier if you change your mind later on.

All set? Click the CREATE DROPLET button and see what happens.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/019/medium800/microcomputers_Screenshot-2014-12-23-13_55_08.png?1423777320)

# A DigitalOcean droplet in 10 minutes

## Connecting to Your Droplet

By now, you should be looking at something like the following.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/020/medium800/microcomputers_Screenshot-2014-12-23-13_56_04_blur.png?1423777836)

If you added an SSH key during the droplet creation process, you're probably already familiar with SSH - just connect directly to the displayed IP address with the username "root".

Otherwise, check your e-mail. You should have a root password waiting.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/021/medium800/microcomputers_Screenshot-2014-12-23-13_56_31.png?1423777948)

## Connecting to the Console in the Browser
DigitalOcean droplets offer in-browser access to the console. Just click that "Console Access" button and enter "root" for the username, followed by the password from your e-mail.&nbsp; You'll be immediately prompted to replace this with a password of your own choosing, and then you should find yourself with a shell prompt.

## Connecting via SSH from Windows
First, [download a copy of PuTTY](http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html). You just need putty.exe from that link, to start.

Next, enter `root@[your ip address]` in the "Host Name (or IP address)" field and hit the "Open" button.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/024/medium800/microcomputers_putty_setup.png?1423784611)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/025/medium800/microcomputers_putty_screenshot_again_again.png?1423784951)

## Connecting via SSH from OS X or Linux
First, get to a terminal. On the Mac, look for the Terminal in your Applications folder. On Linux, run one of xterm, lxterm, Gnome Terminal, etc. In menus, these can usually be found under "Accessories".

Once you're at a prompt, just invoke SSH like so.

```auto
ssh root@192.168.0.5
```

...replacing `192.168.0.5` with your droplet's IP address.

# A DigitalOcean droplet in 10 minutes

## Basic Configuration & Further Reading

Now that you're logged into a working machine, there are a few basics it'd be good to take care of.

First, you should probably add a non-root user. You can do that with `adduser yourname`, which will interactively prompt you for some info about the new user.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/065/medium800thumb/microcomputers_screencast-2015-02-13-09_52_56.jpg?1448316066)

Again, choose a strong password here.

Next, you'll probably want to give this user the ability to use **sudo** , and disable root logins over SSH.&nbsp; Start by making sure that sudo is installed.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/066/medium800thumb/microcomputers_screencast-2015-02-13-10_06_21.jpg?1448316080)

...then add your new user to the `sudoers` group. In my case, this looks like:

```auto
root@tinycomputer:~# addgroup brennen sudo
Adding user `brennen' to group `sudo' ...
Adding user brennen to group sudo
Done.
```

Finally, tell SSH it shouldn't allow direct root logins any more. Start by opening `/etc/ssh/sshd_config` in nano.

```auto
nano /etc/ssh/sshd_config
```

Next, look for this line:

```auto
PermitRootLogin yes
```

And change to:

```auto
PermitRootLogin no
```

And finally restart the SSH service:

```auto
root@tinycomputer:~# service ssh restart
[ ok ] Restarting OpenBSD Secure Shell server: sshd.
```

## Further Reading
With that out of the way, you're ready to explore.

For command line basics, check out our&nbsp;[What is the Command Line?](../../../../what-is-the-command-line/overview) and [An Illustrated Shell Command Primer](../../../../an-illustrated-shell-command-primer).

For general server administration topics, [DigitalOcean's community support system](https://www.digitalocean.com/community/) is chock full of useful reference material and tutorials.


## Related Guides

- [Wireless NeoPixel Controller](https://learn.adafruit.com/neotrellis-neopixel-controller.md)
- [Adafruit QT Py ESP32 Pico](https://learn.adafruit.com/adafruit-qt-py-esp32-pico.md)
- [FunHouse Mail Slot Detector](https://learn.adafruit.com/funhouse-mail-slot-detector.md)
- [Embedded Linux Board Comparison](https://learn.adafruit.com/embedded-linux-board-comparison.md)
- [No-Code Counters and Email Reports with Adafruit IO Actions](https://learn.adafruit.com/no-code-counters-and-email-reports-with-adafruit-io-actions.md)
- [Skill Badge Requirements: Digi XBee](https://learn.adafruit.com/skill-badge-requirements-digi-xbee.md)
- [PyPortal US Election Calendar](https://learn.adafruit.com/pyportal-electioncal-us.md)
- [An Illustrated Shell Command Primer](https://learn.adafruit.com/an-illustrated-shell-command-primer.md)
- [Schluff - The Sleep Monitor](https://learn.adafruit.com/schluff-the-oshw-sleep-monitor.md)
- [Adafruit Feather M0 WiFi with ATWINC1500](https://learn.adafruit.com/adafruit-feather-m0-wifi-atwinc1500.md)
- [Adafruit HUZZAH ESP8266 breakout](https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout.md)
- [Freq Show: Raspberry Pi RTL-SDR Scanner](https://learn.adafruit.com/freq-show-raspberry-pi-rtl-sdr-scanner.md)
- [Mini-Guide: Getting Started With The WiPy Board](https://learn.adafruit.com/micro-guide-getting-started-with-wipy-board.md)
- [Video Feedback with Raspberry Pi](https://learn.adafruit.com/video-feedback-with-raspberry-pi.md)
- [MAC Address Finder](https://learn.adafruit.com/mac-address-finder.md)
