Category Archives: FAQ

How to Automatically Renew LetsEncrypt Certificates and Restart Your Web Server

Edit your crontab by typing crontab -e and then add the following line. In my example, I am restarting Litespeed, but you could restart Nginx or Apache by changing it like this: This will check your certificates every day at … Continue reading

Posted in Linux | Leave a comment

How to Obtain a Let’s Encrypt SSL Certificate Using the WebRoot Plugin

Once you’ve installed certbot, run the following command after replacing the relevant variables with your information. Here’s what we’re doing:

Posted in FAQ, Linux | Leave a comment

List all IPs connected to your server along with connection count

Here’s how you can find out which IPs are connected to your Linux server, and how many times each IP is connected: Group by IP: Group by IP (but Handle IPv6): Group by IP and Port:

Posted in Linux | Leave a comment

How to restore network / internet access after replacing your NIC or Motherboard in Linux

When changing your network card or motherboard, your Mac address will change and this will cause your config to become incorrect. I recently had this problem after the motherboard of my server failed and I have to replace it. This … Continue reading

Posted in FAQ, Linux | Tagged , | Leave a comment

How to set a static IP address in Linux via command line

To set a static IP address in Linux, simple edit /etc/network/interfaces and change your interface settings using the example below: In this example, I’m setting my IP address to 192.168.1.100. # The primary network interface auto eth0 iface eth0 inet … Continue reading

Posted in Linux | Tagged | Leave a comment

The Correct Way to Set Nameservers in Ubuntu 12.04 and up

If you’ve specified nameservers in resolv.conf on Ubuntu 12.04+, you’d probably find that rebooting would erase the nameserver information that you entered. If you edit the resolv.conf you will see the following message: # Dynamic resolv.conf(5) file for glibc resolver(3) … Continue reading

Posted in Ubuntu | Tagged , | Leave a comment

Recursively CHMOD Only Files or Directories via Command Line

Using the commands below, you can recursively chmod a large number of files or directories. Directories find . -type d -exec chmod 755 {} \; Files find . -type f -exec chmod 644 {} \; Important: Remember to the command … Continue reading

Posted in FAQ | Tagged , , , | Leave a comment

How to Shutdown or Reboot Windows in a Remote Desktop Session

Restarting Windows during a Remote Desktop Session can prove to be way more difficult than it should since there the obvious methods are missing during a RDP session. To shut down a remote computer when you are using Remote Desktop, … Continue reading

Posted in Windows 7 | Tagged , , , | Leave a comment

Yum Update: How to temporarily or permanently exclude certain packages

This tutorial is useful if you’ve found yourself in a scenario where you want to run yum update, but you want to hold back certain packages. Temporarily Excluding Certain Packages: To temporarily hold back a package when running yum update … Continue reading

Posted in Centos | Tagged , , | Leave a comment

How to check which version of Ubuntu you’re running

Type the following in a terminal window and type lsb_release -a The output should look something like this: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.1 LTS Release: 12.04 Codename: precise

Posted in Ubuntu | Tagged , | Leave a comment