Category

Linux

22 articles in this category

Creating a New LVM Volume

April 8, 2023 4 min read

Once you have added a new disk to your system, make sure it can be seen using the lsblk command. You should see something similar to the following.…

Adding a hard drive in Linux

November 12, 2022 5 min read

When a new drive is added in Linux, it will not automatically appear and be usable. It will need to be partitioned and formatted for proper use first.…

Creating a self signed certificate

November 12, 2022 2 min read

You may need to run a secure web server at some time which will require an SSL certificate. Even if you choose to have a commercial certificate, you…

Crontab – How it is used

November 12, 2022 2 min read

Crontab is a great utility to automate scripts and processes on your Linux/Unix/Mac machine. Regular users and root each have access to this utility. To check the cron…

Enable color coding when using the ls command

November 12, 2022 1 min read

By default color coding is disabled for the ”’ls”’ command under Ubuntu. If you wish to enable it simply add the following to your ”’.bashrc”’ file alias ls='ls…

FTP – Read only access to user directory

November 12, 2022 1 min read

First limit permissions on the ftp home directory to allow read and download capabilities # chmod 540 ftp_home/ Then to any file added I make read only #…

Generating and using RSA keys for SSH logins

November 12, 2022 2 min read

Sometimes using an interactive SSH login to a remote system is not desired. For instance if you have created rsync scripts to automate backups of one system to…

MariaDB/MySQL – How to set up MySQL replication

November 12, 2022 6 min read

Note: It is recommended to uninstall and then reinstall mysql and attendant packages on the slave if it has been used a a slave for replication previously. There…

MariaDB/MySQL – Recover root password

November 12, 2022 1 min read

Here are commands you need to type for each step (login as the root user): Step 1.  Stop MariaDB service. # systemctl stop mariadb Step 2.  Start MariaDB server w/o…

Show disk usage in descending order

November 12, 2022 1 min read

If you need to find the amount of disk space being consumed in Linux, you can show it recursively through your directories as follows. $ sudo du -ahx…