Update Ubuntu 24.04

How to Update Ubuntu to 24.04 LTS (Noble Numbat)

Introduction Ubuntu 24.04 LTS was launched on April 25th, 2024. As this version is an LTS (Long-Term Support) release, it will be supported for 5 years. In this post we are going to explain how to update your Ubuntu using the CLI. Backup Do a backup of important data before start. It is important because the update action has some risks and could damage the system. Update your packages It鈥檚 a good practice to have your packages updated before starting the system update process....

April 30, 2024 路 1 min 路 Yvoictra
Ubuntu DNS Servers

How to get configured DNS servers in Ubuntu

In some situations could be needed to know exactly which DNS server is being used by an Ubuntu host. There are several ways to get this info, however the best option I have found is to use the resolvectl service. This service is in charge of the name resolution of the local applications. You can use it executing resolvectl status or just resolvectl. The command will return the DNS servers configured in each network interface, and which one is currently being used....

April 28, 2024 路 1 min 路 Yvoictra
Generate static web with Hugo and NGINX

Generate a static website with Hugo and NGINX

Introduction During the last few years, I have started several blogs (not much success, it must be said). A technology one, my photography web, and a blog with personal matters, which I decided to close. All of them were made with the same CMS platform: WordPress. WordPress has some advantages, such as its ease of use or the great community behind it. However, I was tired of the huge amount of resources I needed to deploy the CMS and give a good experience to the readers of my blog....

August 13, 2023 路 6 min 路 Yvoictra
Change language in Ubuntu

How to change your language and local configuration in Ubuntu

Introduction After installing a new Ubuntu system, I always set the language configuration to fit my local environment. Locales configuration Connect to a terminal of your machine and execute next command: sudo dpkg-reconfigure locales After this, you will see a list of languages and countries. You have to select with space bar the language and country you need. In my case, as I live in Spain, I have selected es_ES.UTF-8. It is recommended to choose UTF-8 version....

July 28, 2023 路 2 min 路 Yvoictra

Extract your public IP address from terminal

It鈥檚 quite useful to have at your fingertips the option of getting your public IP address. Here I will give you various commands to get the IP. Note not all of them have IPv6 service, so only works with IPv4. IPv4 & IPv6 If you have a connection to the Internet with IPv6, by default, it will be used this interface. However you could force the IPv4 use just adding the -4 option to the curl command....

November 17, 2022 路 1 min 路 Yvoictra

Compress or decompress files in Linux environments

Introduction In some circunstances it鈥檚 not easy to know the commands which exist to compress or decompress files in Linux (and Unix) environments. In this posts, I have wrote all the commands I have used for this. File Types TAR files Pack: tar -cvf file.tar file1 file2 file3 Unpack: tar -xvf file.tar See content: tar -tf file.tar GZ files Compress: gzip -9 file Decompress: gzip -d file BZ2 files Compress: bzip2 file Decompress: bzip -d file....

November 15, 2022 路 1 min 路 Yvoictra
Monitor Ubuntu Server with Grafana and Prometheus

How to Monitor an Ubuntu Server with Grafana and Prometheus

Grafana is an open source metric analytics & visualization tool which can help us to monitor the system with a nice Dashboard. Installing Grafana Grafana is available in the APT packages repository, however it could not be the latest version, so we鈥檒l use the official Grafana repository. First, it is needed to install the software needed before install Grafana. sudo apt install -y apt-transport-https sudo apt install -y software-properties-common wget Next step is to download the GPG Key, in order to install signed packages:...

November 13, 2022 路 3 min 路 Yvoictra
How to set up Wi-Fi on Debian

How to set up Wi-Fi on Debian running on the Raspberry Pi 4

First off, as a prerequisite it is needed to have a CLI access to the Debian OS. It can be done using a keyboard and a screen connected to the Raspberry Pi, or using a SSH connection. If you have followed the post of how to install Debian On a Raspberry Pi 4, you should be able to access with SSH using the Ethernet (RJ45) port. Also, you should have the SSID and the password of your Wi-Fi connection, and it should be enabled the DHCP protocol in your router....

November 2, 2022 路 3 min 路 Yvoictra