How To Install Ubuntu 18.04.2 on Digital Ocean Server Using Putty

Deploying Ubuntu 18.04.2 Server, User Privileges and basic Security protocols

This article is suitable only for Ubuntu 18.04 version.

As we mentioned above, This article is suitable only for Ubuntu 18.04.2 versions. To deploy the Ubuntu Server, You just need to have the Digital Ocean account. If you don’t have and then create New Digital Ocean Account and get 100$ free credit in your account.

Jump to:

  1. Deploying a Ubuntu 18.04.2 Server
  2. Logging in as Root
  3. Creating a New User
  4. Providing Administrative Rights
  5. Setuping Firewalls


In this article, we are going to explain creating and deploying Ubuntu 18.04.2 the server on Digital Ocean. Then, we added some information about providing the administrative privileges to the user and basic firewall setups.

Deploying a Ubuntu 18.04.2 Server:

You just need to login to your Digital Ocean account. In the options, you need to click the “Creating a Droplet” option as we have shown in the below image.

Creating the droplet
  • After clicking the “Create a Droplet”, Go to the “Distributions” tab and select the version of your Ubuntu OS. Here we select the 18.04.2. LTS server edition.

Distribution tab

  • Now you have to select the “Plan for your Web Server”
  • We suggest you go with the 15$ or 20$ plan.
  • This plan will run your dynamic apps very smoothly.

Droplet plan

  • Now Select the Server location from the list

Server location

  • Now, change the droplet name to your own & select the number of droplets that you want to deploy and finally, click the Create button.

Creating Ubuntu server.

Logging in as Root:

After deploying the droplet, you will receive an email from the digital ocean and it contains the “IP Address, Username & password” of your server. We suggest you use “Putty” SSH software to connect your server from remote through the secured connection.

Check this too  How To Install WordPress With LAMP Stack on Ubuntu 18.04 DigitalOcean Server!

If you have no idea about “Putty” application and then we suggest you read this one: How to connect to your server through Putty Application.

  • You can access your droplet through the following method. Click the droplet to explore its options and in the left pane, you may able to see an option named as “Access“. Click on that.

Accessing Droplet

  • Now, you need to click the “Launch Console” button to open the terminal.

Launching Console

  • A popup will appear on the screen, The terminal window will appear on the screen.
  • At the end of the window, you may able to see the Droplet IP address and its data.
  • Enter the username and password to logging into your Ubuntu server.

Terminal Window

Information about Root:

In Linux, The Root user is identified as the super administrator. This root user will have the ultimate administrator privileges. You just need to very careful with your account otherwise a small mistake can collapse the whole server.

Creating a New User:

Now you are already logged in your droplet and follow the below steps to create a new user.

adduser Jim

The above code will add the new user and you need to replace the “Jim” with your own username. Then you will be asked some questions and following that it will ask you to enter the password for the created account. We suggest you use a strong password and don’t forget it.

Providing Administrative Rights:

The newly created account is considered as the normal account with normal privileges and so you need to upgrade it to the superuser and then only you may able to do the Administrator privileges.

Check this too  How To Install [LEMP] Linux, NginX, MySQL & PHP on Ubuntu 18.04.2 Digital Ocean Server

SUDO is the command mainly used to do the task with superuser permission. You need to assign the superuser privileges to the new account.

usermod -aG sudo Jim

The above command will help you convert your account into the superuser account. If you logged in with your normal account and you need to perform some task and then you simply add “SUDO” in front of every command to perform the tasks.

Setuping Firewalls- Basic:

In Ubuntu, it is very easy to set up the firewall settings. This Ubuntu server will use UFW to make sure that all the request is from secured. You can control certain services by using proper firewall settings.

Many profiles can register their services on UFW. OpenSSH is also a service, which allows us to connect to the server. OpenSSH is default registered in UFW list. You can see the list of application that registered in the UFW by using the following command.

ufw app list

The output will be:


Available applications:

You can control the UFW by using the following commands:

ufw allow OpenSSH – Allows OpenSSh
ufw disallow OpenSSH – Disallows OpenSSH

Note: Don’t copy the whole line, Copy the command before the “-“

You can also see the current status of your firewall settings:

ufw status

The output will be:


Status: active

To Action From
— —— —-
OpenSSH ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)

That’s it, Folks. Now you sucessfully setup the firewall settings to your Ubuntu server.


As we said above, we completely covered every topic that is essential for creating Ubuntu 18.04.2 on Digital Ocean. Digital Ocean is comparatively best for shared and reseller hosting at affordable prices. If you have any queries or correction in this article, please mention us the below comment or contact us on our website.

Check this too  How To Install [LAMP] Linux, Apache, MySQL & PHP on Ubuntu 18.04.2 Digital Ocean Server
Article Review
  • Article Explanation
  • Method Working
  • Content Clarity
  • Topics Covered
  • Images Explanation


For more article, please visit our Home Page

Written by Jim Moriarty

Hello, Am Jim from Arizona, Big Fan of Holmes. Server-side handler, Network Engineer & currently working for Tec Robust. I write a server-based article.

Contact me:
tecrobust [@]
Sub: Message to Jim.

How To Install [LAMP] Linux, Apache, MySQL & PHP on Ubuntu 18.04.2 Digital Ocean Server

Video Tutor: How to use GPing Tool to Check Server Status