Ubuntu: configure systemd log size

In this tutorial, we will see how to configure the size of systemd logs on an Ubuntu distribution. By default, the logs located in the /var/log/journal folder can take several gigabytes of disk space. As can be seen from the screenshot below, the logs take up 4 Giga of disk space. The configuration of the …

Read more

Update Ansible on Ubuntu

In a previous tutorial, I explained how to install and use Ansible to execute automatic actions on your Windows and Linux servers. Like all applications, Ansible is regularly updated and so to enjoy the latest features and bug fixes, you should also update Ansible. The “problem” when you go through the official repositories of distributions …

Read more

Install Docker on Ubuntu and Debian

In this tutorial, I will walk you through how to install Docker and Docker Compose on Ubuntu and Debian. Installation of Docker and docker-compose from the official repositories Docker and docker-compose are part of the official repositories of both distributions (Ubuntu and Debian), so just run the two commands below: Installing Docker: Installing docker-compose: The …

Read more

Ubuntu: Install a Remote Desktop Server with XRDP

In this tutorial, I will explain how to install xRDP in order to have a remote desktop server (or rather a service) on Ubuntu. The purpose of this installation is not to make a remote desktop farm so that several users can connect to it simultaneously, but to be able to take control of Ubuntu …

Read more

Ubuntu 20.04: add swap space

In this tutorial, I will walk you through how to add swap space on Ubuntu 20.04 and above. A swap space on Linux is a location on the disk, which allows the OS to load the random access memory (RAM), on Windows we find this type of file pagefile.sys By default, on server versions of …

Read more

ncdu: analyze disk space in command line on Linux

In this “‘little” tutorial, I will explain how to view and analyze the space in the command line on Linux with ncdu. If you are adapted from WinDirStat or TreeSize on Windows, the ncdu utility on Linux allows you to have the “same” thing in a terminal. The first thing to do is to install …

Read more

Ubuntu – Extend LVM partition and disk

In this tutorial, I will explain how to extend a disk’s partition and then the LVM disk. To understand what we are going to do in this tutorial, I have a virtual machine with Ubuntu Server 20.04 installed on an LVM disk, following the addition of data, I must increase the storage capacity, for that …

Read more

Ubuntu: show default gateway

Here is how to display the default gateway on Ubuntu from the command line. Ubuntu 20.04 + (without net tools) Ubuntu 18.04 – (with net-tools)

SSH: authentication by keys


In this tutorial, I will explain how to connect to a linux server / computer in SSH without password using a key pair (private / public). Generate the key pair with ssh-keygen To generate a pair of keys, you must have an SSH client available, it is possible to do it from Windows 10 or …

Read more