Your opinion helps us make a better documentation.
Was this page helpful?
Deploying an Ubuntu 20.04 LTS (Focal Fossa) Instance on Scaleway
Reviewed on 05 March 2025 • Published on 02 December 2021
Ubuntu
focal-fossa
Important
Ubuntu 20.04 LTS (Focal Fossa) will reach its End of Standard Support in May 2025. For security and maintenance reasons, we strongly recommend using a more recent version of Ubuntu for your deployment.
We recommend using a newer version of Ubuntu, such as Ubuntu 22.04 LTS (Jammy Jellyfish) or later, for your Scaleway Instance. This will ensure you receive the latest security updates and features.
Ubuntu is one of the most popular Linux distributions. First released in 2004, Ubuntu quickly became the favorite Linux distribution for users around the world, mostly because it is easy to install and use.
Ubuntu is developed and maintained by the company Canonical and a large community. Their commercial and community teams release new versions of the distribution every six months and collaborate to produce a single, high-quality release with long-term support (LTS) every two years.
In this tutorial, you will learn how to deploy an Instance with Ubuntu 20.04 LTS (Focal Fossa) from the Scaleway console and configure it for hosting your apps and websites.
The root account is the admin user on Linux systems and has full administrative privileges.
Therefore, it is not recommended to use the root account regularly. A malicious command executed as root can damage the system, even by accident.
We recommend that you create a regular user account for daily operations. The steps for doing this are outlined later in this tutorial.
Click your Instance name on the Instances list. Your Instance’s information displays.
Navigate to the SSH command section and click Copy to copy the command into the clipboard.
Open a terminal and paste the command in the terminal:
ssh root@your_instance_id
Tip
A warning about host authenticity appears upon the first connection to the Instance. Accept it to proceed.
Ubuntu uses the Advanced Packaging Tool (APT) to manage its 60,000+ pre-compiled software packages.
The APT package index is a collection of available packages, and it generates the repositories defined in the file /etc/apt/sources.list, and from the directory /etc/apt/sources.list.d.
Run the following command to update the APT package index:
apt update
Upgrade the packages already installed on your Instance to the latest version available in Ubuntu’s repositories by running the following command:
apt upgrade
To install additional software packages, use the apt install command:
apt install packagename
Tip
For more information about how to use the APT package manager, run the following command: apt help, or refer to our documentation on how to manage packages.
As previously mentioned, we do not recommend always connecting to your Instance as root. Instead, create additional regular users to log into your Instance.
Run the following command to create a new user, named scaler:
adduser scaler
Answer the questions, starting with the account password. Make sure to use a strong password and optionally fill in any of the other information. Confirm the response to each question by pressing Enter.
Add the users to the superdoers group (sudo) to be able to launch administrative tasks from this user, without the need to log in as root.
adduser scaler sudo
You can now run commands with administrative permissions by prefixing your command with sudo. For example: sudo apt upgrade.
Add the public SSH key information for the user by opening the file ~/.ssh/authorized_keys in a text editor and pasting the public key:
nano ~/.ssh/authorized_keys
Tip
You can generate your SSH key pair on Linux or macOS directly from a terminal. On computers running Windows you can use PuTTYgen to generate your key pair.
Thank you for the feedback!
Your opinion helps us make a better documentation.