Author

jhudgins

Creating a New LVM Volume

April 8, 2023

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

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

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

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

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

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

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 – Recover root password

November 12, 2022

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

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…