Posts

How To Secure Apache with Let's Encrypt (Certbot) on Ubuntu 20.04

Louis SanchezJuly 29th 2021, 7:35
To access your instance using HTTPS through Apache, you need to follow these steps: Step 1 : Install the Let's Encrypt client, certbot sudo apt-get update sudo apt install certbot python3-certbot-apache Step 2 : Request a certificate from Let's Encrypt sudo certbot --apache -d example.com -d www.example.com Step 3 :...
58

How To Secure Nginx with Let's Encrypt (Certbot) on Ubuntu 20.04

Louis SanchezJuly 29th 2021, 7:35
To access your instance using HTTPS through NGINX, you need to follow these steps: Step 1 : Install the Let's Encrypt client, certbot sudo apt-get update sudo apt install certbot python3-certbot-nginx Step 2 : Request a certificate from Let's Encrypt sudo certbot --nginx -d example.com -d www.example.com Step 3 :...
50

How to set up ssh keys on ubuntu server 20.04

Louis SanchezJuly 29th 2021, 7:33
Follow these steps to set up public key authentication: Step 1 : Change to the home directory with cd ~/ cd ~/ Step 2 : Create a .ssh directory if it doesn't already exist mkdir .ssh Step 3 : Create a file named authorized_keys under the .ssh directory touch .ssh/authorized_keys...
75

How to Set permissions on files and directories on ubuntu server 20.04

Louis SanchezJuly 29th 2021, 7:28
Viewing permissions Step 1 : Use the ls command to list the access permissions of files and directories. ls -l Step 2 : In each line, we see several fields of information. 1 : The permission strings 2 : The link count for the object 3 : The user that...
143

How to Add User to Sudoers in Ubuntu Server 20.04

Louis SanchezJuly 29th 2021, 7:33
Add User to Sudoers Step 1 : To give additional users access to sudo, all you would need to do is add them to the sudo group sudo usermod -aG sudo myuser Configure sudo Step 2 : User with sudo privileges access to everything, and that may or may not...
79

How to Manage passwords and password policies on ubuntu server 20.04

Louis SanchezJuly 29th 2021, 7:34
Set an expiration date on a user's password Step 1 : Type chage -l username command to display expiration date on a user's password. sudo chage -l myuser Step 2 : When creating user accounts, The chage command allows you to force a password change for a user when he...
69

How to Manage Groups on Ubuntu server 20.04

Louis SanchezJuly 29th 2021, 7:35
List all groups Step 1 : The /etc/group file contains information regarding the groups that have been created on your system. Go ahead and take a look at this file on your system: cat /etc/group Creating new groups Step 2 : The groupadd command allows you to create new groups....
64

How to Create and remove users on ubuntu server 20.04

Louis SanchezJuly 29th 2021, 7:28
Creating users Creating users in Ubuntu can be done with one of either of two commands: adduser and useradd useradd Step 1 : First, Creating a User with specific home directory sudo useradd -d /home/username -m username Step 2 : If you list the storage of /home, you should see...
61

How to use SysBench on Ubuntu Server 20.04

Louis SanchezJuly 29th 2021, 7:28
Sysbench is a benchmarking tool to evaluate a system running database under intensive load. It is also being used as a tool to evaluate the performance of multiple cloud service providers. Step 1 : Before using Sysbench, we will need to install it. sudo apt-get install sysbench Step 2 :...
177

How to monitor storage performance on Ubuntu Server 20.04

Louis SanchezJuly 29th 2021, 7:57
The Ubuntu server provides tons of utilities to ease network monitoring and administration. Step 1 : Install the sysstat package as follows. sudo apt install sysstat Step 2 : The first command we will look at is vmstat vmstat Step 3 : There's one more option, -p, that displays partition-specific...
145