Amazon Linux - Check If Need Reboot

Below is a BASH script you can use to tell you whether you need to reboot your instance in order to use a later kernel. #!/bin/bash LAST_KERNEL=$(rpm -q --last kernel | perl -pe 's/^kernel-(\S+).*/$1/' | head -1); CURRENT_KERNEL=$(uname -r); if [ $LAST_KERNEL != $CURRENT_…

Read this article

CentOS 7 - Create CentOS 7 Mirror

The tutorial below will show you how to configure a CentOS 7 server with Nginx to act as a mirror for other CentOS 7 servers. Steps First we need to update and install all the necessary packages. sudo yum update sudo yum install -y createrepo rsync nginx Now we need…

Read this article

CentOS 7 - Remove Old Kernels

If your /boot partition is getting filled, you may wish to automatically remove old kernels. I find the best way to do this is to install the yum utilities package and then use a command to delete all but 2 kernels (just in case there is a problem with the…

Read this article

Cloning CentOS Guests - Disable MAC

Today I was scratching my head trying to figure out why my changes to the network to go from DHCP to static IP was not taking effect on my CentOS 7 guest. It turns out that the network configuration is defaulted to including the HWADDR (MAC) address as shown below:…

Read this article

CentOS 6.5 - Install OpenVPN Server

Update I recently updated the script to use the latest openvpn 2.3.6 package that centos grabs, instaed of 2.3.2 which it used to utilize. Ever since then, I have been unable to start the openvpn service. I will hopefully have a fix for this at some…

Read this article