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
Install Debian on a Raspberry Pi

How to install Debian on a Raspberry Pi

I have several Raspberry Pi and in all of them I have used the Ubuntu distro. However I also wanted to use Debian as it is one of the most used Linux distros. Besides Ubuntu is based on Debian, so I guess I will feel confortable with it. Debian vs Ubuntu Debian is more stable than Ubuntu, indeed, it is one of the most stable Linux. The releases in Debian are not as frequent as in Ubuntu, and the software updates in Debian usually don鈥檛 have the latest versions....

October 29, 2022 路 4 min 路 Yvoictra
Mail Server

How to Install a Mail Server in Ubuntu with Postfix

Introduction Nowadays, the knowledge to install a mail server is an important task for any System Administrator. In our case, we are going to see how to deploy a mail server with Postfix on Ubuntu. About Postfix Postfix is a free and open-source MTA (Mail Transfer Agent) which routes and delivers electronic mail (e-mails). As an SMTP server, Postfix implements a first layer of defense against spambots and malware. Can be used to send and receive e-mail....

July 27, 2022 路 15 min 路 Yvoictra