-
Recent Posts
- How to Automatically Renew LetsEncrypt Certificates and Restart Your Web Server
- How to Create an Admin User With All Privileges on MariaDB / MySQL
- How to Obtain a Let’s Encrypt SSL Certificate Using the WebRoot Plugin
- List all IPs connected to your server along with connection count
- How to restore network / internet access after replacing your NIC or Motherboard in Linux
Recent Comments
Archives
Categories
Meta
Author Archives: Anthony
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 Create an Admin User With All Privileges on MariaDB / MySQL
First, login to the server as root. If your MySQL / MariaDB installation is not set up to allow you in without a password, add the -p flag. This will prompt you for your root password. Once you’re in, run … Continue reading
Posted in MySQL / MariaDB
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
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
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
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
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
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 centos exclude kernel, yum exclude kernel, yum exclude packages
Leave a comment