Docker Terms This section defines some of the most useful Docker terms. Docker Image: A set of read-only files. These files are a part of an operating system that is required to run a Docker container. Dockerfile: A simple text file that contains all the commands a user could call in the command line to […]
Red hat linux
Check SSL Certificate mismatch
You can check if an SSL certificate matches a Private Key by using the 3 easy commands below. For your SSL certificate: openssl x509 -noout -modulus -in <file>.crt | openssl md5 For your RSA private key: openssl rsa -noout -modulus -in <file>.key | openssl md5 For your CSR: openssl req -noout -modulus -in <file>.csr | […]
Firewalld Cheat Sheet
Notes and Tips To list all services firewalld is aware in an easy to read format use command firewall-cmd –get-services | tr ” ” “\n” Default firewalld service .xml files can be found under /usr/lib/firewalld/services For all commands that support the –zone= option if no zone is provided it will use the default zone. To make changes persistent add […]
Pacemaker Cheat Sheet
File and Directory Locations LOCATION DESCRIPTION /var/lib/pacemaker/cib/cib.xml Primary cluster configuration file /var/log/cluster/corosync.log Primary cluster log file /usr/lib/ocf/resource.d/heartbeat/ Directory where resource scripts are located Check Cluster Status COMMAND DESCRIPTION pcs cluster status Display status of cluster nodes pcs status –full (double dashes) Display detailed cluster status of nodes and resources pcs resource Display status of all […]
35 Basic Linux Commands in Sinhala
1) pwd command ඔබ සිටින වත්මන් වැඩ කරන ඩිරෙක්ටරියේ (ෆෝල්ඩරයේ) මාර්ගය සොයා ගැනීමට pwd විධානය භාවිතා කරන්න . [prabath@mail ~]$ pwd /home/prabath 2) cal command වත්මන් මාසයේ දින දර්ශනය පෙන්වයි. [prabath@mail ~]$ cal November 2020 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 […]
Setup Let’s Encrypt to Create SSL Certificates
Before you Begin Complete the steps for setting your Server / VPS hostname and timezone. Complete the steps in our Securing Your Server guide to create a standard user account, harden SSH access, and remove unnecessary network services. Update your server’s software packages:CentOS sudo yum update && sudo yum upgrade Debian / Ubuntu sudo apt […]
Securing Asterisk IP-PBX with Fail2Ban
What is Fail2Ban? Any service that is exposed to the internet is susceptible to attacks from malicious parties. If your service requires authentication, illegitimate users and bots will attempt to break into your system by repeatedly trying to authenticate using different credentials. A common example of this is with SSH, which will be the subject […]
Configure Android / IOS notificationfor Network Monitoring With Nagios
Download Source File This PHP API script reads Nagios status.dat file and return the JSON result. This API is desinged for Nagios Client unofficial Nagios status monitoring app. Step 1 Upload nath_status.php to your Nagios web root folder. ###Nagios Core’s 3.5.1 default Web Root folder Web Root Folder – Centos /usr/share/nagios/html/ ###Nagios Core’s default Web Root folder Web […]
How to remove powered by phplist
If that’s what you want to do, the following hack will do it (it looks like a cleaner solution would require figuring out where the [SIGNATURE] in the email template is coming from and removing that). These instructions are for phplist version 2.10.2. Search lists/admin/sendemaillib.php for $text[“signature”] = “\n\n–\nPowered by PHPlist, www.phplist.com –\n\n”; Immediately after that line, add the line (or replace […]
How to re-sync the Mysql DB if Master and slave have different database incase of Mysql replication?
This is the full step-by-step procedure to resync a master-slave replication from scratch: At the master: And copy the values of the result of the last command somewhere. Without closing the connection to the client (because it would release the read lock) issue the command to get a dump of the master: Now you can release the […]