Creating Your First Droplet - DigitalOcean Tutorials
Tags: beginners, tutorial, devops, digitalocean
Published: 2023-09-12 04:36:12

## Introduction

In the previous [tutorial](https://blog.devarshi.dev/what-is-digitalocean-everything-you-need-to-know) we discussed the basics of DigitalOcean and how to get started with the platform. In this tutorial, we will explore the process of creating your first droplet on DigitalOcean.

Feel free to checkout the below video I made for this tutorial as well.

{% youtube _WA8f7k_9Nw %}

## But what exactly is a droplet?

To understand a droplet, let's start with some internet magic. When you enter a web address like `google.com` in your browser, your computer and operating system work behind the scenes to translate that address into something called an **IP address**. You can actually see the IP address your computer used by navigating to a tool like [KeyCDN IP Location finder](https://tools.keycdn.com/geo).

![google-homepage](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/whkfm001494r80zdakd8.png)

**An IP address** is associated with a computer somewhere on our planet. It represents the computer that sends you all the web content you see on your screen. For example, when you visit Google's homepage, that IP address is responsible for delivering all the HTML elements to your browser.

### If you are considering hosting your own website, here are the basics:

1.  Get yourself a computer _you probably already have one_.
2.  Obtain a public IP address for your computer, which connects it to the internet.
3.  Optionally, register a domain name _like google.com_ for easy access.
4.  Configure your computer to respond to requests, similar to how Google does it.

Now, here comes the interesting part. DigitalOcean helps you skip the first two steps altogether. When you create a droplet on DigitalOcean, you essentially get a virtual computer located anywhere in the world, complete with its own unique IP address.

In other words, a droplet is like your personal virtual computer that is ready to serve your web content to the world. It saves you the hassle of setting up physical hardware and obtaining a public IP address.

## Creating a droplet with DigitalOcean

Now that we understand the basics, let's take a look at the step-by-step process of creating a droplet on DigitalOcean using Ubuntu as the operating system.

1. Sign in to your [DigitalOcean](https://m.do.co/c/645d44d1a7a1) account or create a new one if you don't have an account already.

![digitalocean-dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oioxmxabgvkhf04xmopc.png)

2.  Once you're logged in, navigate to the dashboard and click on the **"Create"** button. Choose the option to create a droplet.

3.  Select the region of the droplet you want create into. If you are just starting out! Prefer selecting the closest region to you for faster network access and less lag!

![digitalocean-region](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m92pidxlwyvbs9djml7e.png)

4.  Select the operating system you want to use, for this tutorial, we will go with Ubuntu 22.04 LTS.

![digitalocean-os](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5tl7sxngizynpdk64jjg.png)

5.  Next, choose the plan and region that best fit your needs. We'll be going with the basic $6 plan.

![digitalocean-plans](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1zlnh7tenjaveem4s49d.png)

6.  You can optionally set up authentication methods such as password authentication or SSH keys. We'll going with the password authentication method for this tutorial.

7.  Finally, give it a name and click on the **"Create Droplet"** button to initiate the creation process.

![digitalocean-cdroplet](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyy3ke3rjcxllcgu37ct.png)

## Connecting to our newly created droplet

After creating your droplet, you will receive the necessary information to access and manage it. To access the droplet, you can use SSH to connect to it.

```
ssh root@<yourdropletipaddress>
```

Once connected to your droplet via SSH, it is a good practice to update the packages on your server. Simply run the appropriate commands to apply updates and upgrade any outdated software.

![droplet-created](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nzpin1m3z4loo0b10zsv.png)

For Ubuntu, you can use the following commands:

```
sudo apt update && sudo apt upgrade -y
```

Moreover, installing useful tools like neofetch can provide you with system information at a glance. To install neofetch, you can use the following command:

```
sudo apt install neofetch -y
```

After successful installation, you can run the `neofetch` command to see your system's configuration details.

![do-neofetch](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eef4rj34pinwiqgz6mb4.png)

Stay tuned for more DigitalOcean tutorials where we will dive deeper into other exciting features and functionalities.

In the meantime, feel free to explore the [playlist](https://www.youtube.com/watch?v=T6a4OxTDc4M&list=PLHb-q3SQD4ifZ5fLtvGI69UGKh-XEDHQa) I have created on DigitalOcean where you can find more informative videos. Happy hosting!

## Conclusion

By following these steps, you are now well on your way to creating your first droplet on DigitalOcean and configuring it to serve your web content. With DigitalOcean's user-friendly interface and powerful infrastructure, hosting your website becomes a seamless experience.

Feel free to checkout the below video I made for this tutorial as well.

{% youtube _WA8f7k_9Nw %}

Thank you for reading! If you found this blog post helpful, please consider sharing it with others who might benefit. Feel free to check out my other blog posts and visit my socials!

- [Profile](https://bio.link/devarshishimpi)
- [Linkedin](https://linkedin.com/in/devarshi-shimpi)
- [Twitter](https://twitter.com/devarshishimpi)
- [Youtube](https://youtube.com/@devarshishimpi)
- [Hashnode](https://devarshishimpi.hashnode.dev)
- [DEV](https://dev.to/devarshishimpi)

### Read more

- [Top 10 VS CODE Extensions You Need In 2022!](https://blog.devarshi.dev/top-ten-vscode-extensions-you-need-in-twentytwentytwo)
- [What Are Docker Images And How To Use Them](https://blog.devarshi.dev/what-are-docker-images-and-how-to-use-them)
- [Everything You Need To Know About Github Copilot!](https://blog.devarshi.dev/everything-you-need-to-know-about-github-copilot)

_This post includes affiliate links; I may receive compensation if you purchase products or services from the different links provided in this article._