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.
- Deploying a Ubuntu 18.04.2 Server
- Logging in as Root
- Creating a New User
- Providing Administrative Rights
- 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.
- 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.
- 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.
- Now Select the Server location from the list
- Now, change the droplet name to your own & select the number of droplets that you want to deploy and finally, click the Create button.
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.
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.
- Now, you need to click the “Launch Console” button to open the terminal.
- 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.
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.
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.
SUDO is the command mainly used to do the task with superuser permission. You need to assign the superuser privileges to the new account.
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.
The output will be:
You can control the UFW by using the following commands:
You can also see the current status of your firewall settings:
The output will be:
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.
For more article, please visit our Home Page