Home
About Me
Résumé
Portfolio
DevOps
C/C++
Drupal
Java
PHP
Ruby
Symfony
WordPress
Blog
Astronomy
Fitness
Photography
RDBMS
Technology
WWF
Pictures
Instagram
Galleries
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
Contact
Search for:
Search Button
Home
About Me
Résumé
Portfolio
DevOps
C/C++
Drupal
Java
PHP
Ruby
Symfony
WordPress
Blog
Astronomy
Fitness
Photography
RDBMS
Technology
WWF
Pictures
Instagram
Galleries
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
Contact
Search for:
Search Button
DevOps
Systems Administration
CentOS
August 28, 2022
Table of Contents
CentOS 7 & 8
(Community Enterprise Operating System)
Red Hat Backporting
Amazing Utilities
top
i
Toogle: Iddle
u
Filter by: effective
Understanding top
i
Toogle: Iddle
u
Filter by: effective
Understanding nice command
htop
lsof
iftop
netstat
traceroute
kill a user
kill a process
Kill Example – How to kill Apache Service on Linux
Killall Example – How to kill Apache Service on Linux
kill -3
How to find basic hardware information
How to install Gnome Desktop
Time is off
curl: (1) Protocol “sftp” not supported or disabled in libcurl
Permission denied … because search permissions are missing on a component of the path
Cron Jobs
nslookup is missing
CentOS has crashed
Sudo is ignoring my aliases
Sudo cannot run my aliases
Bitbuket pipeline changes the owner and permission of files
sed: can’t read 1d: No such file or directory
Shutdown, suspend, reboot
Ownership and permissions
No package htop available
Installing ScreenFetch
Stress Testing
Using stress
Using stress-ng
Hacking with SELinux
Turn on SELinux
Turn off SELinux
Turn off SELinux (at the configuration level)
Verify status
Completely shutdown SELinux
AWS EFS conflicts with SELinux
CloudWatch – Adding Disk Space Alarm
Log Rotation
Journalctl, where are my logs from yesterday?
Automation & Orchestration 1: Ansible vs Chef vs Puppet
Automation & Orchestration 2: Docker vs Kubernetes vs Mesos
Background Jobs
My own experiments (1)
My own experiments (2)
Extending partition & filesystem
Cron Jobs did not run
Upgrading to CentOS 8
How to upgrade CentOS 7 to CentOS 8 Server
Environment Specification:
Gathering System Information of CentOS 7:
Installing EPEL yum Repository on CentOS 7:
Installing Required Packages on CentOS 7:
Removing Duplicate/Unused Packages and Configurations:
Switch the Package Manager from YUM to DNF:
Upgrading CentOS 7 server to Latest Stable Version:
Upgrading Yum Repositories from CentOS 7 to CentOS 8:
Upgrading CentOS 7 to CentOS 8 Server:
Verify Software Versions after Upgrade to CentOS 8:
How to Set Linux Process Priority Using nice and renice Commands
Understanding the Linux Kernel Scheduler
Understanding Process Priority and Nice Value
How to Check Nice Value of Linux Processes
How to Run A Command with a Given Nice Value in Linux
Change the Scheduling Priority of a Process in Linux
Terminal colors – nano
Nice command
Cannot rsync from remote
Route Tables
UNIX/Linux Closing ports
umask
Reclaim Disk Storage
chcon – Operation not supported
7.1. Temporary Changes: chcon
7.2. Persistent Changes: semanage fcontext
matchpathcon
mount.nfs: access denied by server while mounting
Problem:
Solution for test servers:
Solution for dawnoflife server:
mount.nfs4: Connection timed out
The “tls” option is required when mounting via “iam”
Connection reset by peer
System Updates – unfinished transactions remaining
SELinux is disabled
/bin/zsh: Permission denied
Attempt a + b: Restore centos user access (Failed)
Attempt c: Disabling SELinux (Succeeded)
Services
SSH Timeouts
Method 1
Method 2
Difference between method 1 and method 2
Immutable files
Adding storage as an additional volume to a database server
How to get PPID from PID
[oh-my-zsh] theme ‘puma’ not found
Removing old kernels
inodes
Linux /etc/passwd explained
Linux /etc/group explained
CPU Utilization
Disabling crons
Disk Utilization
dos2unix
Extending filesystems
Incorrect sudo password
Log rotation
Memory Utilization
Mismatching hostnames
Mounting filesystems
Mounting NFS filesystems
Mounting XFS filesystems
Network Utilization
Why DNF?
A quick guide to DNF for yum users
The DNF package manager offers robust features for installing, updating, and removing packages.
CLI commands that differ in DNF and yum
DNF Automatic
dnf-automatic-timer.png
Basic DNF commands useful for package management
Summary
Installing AWSCLI
CentOS: How To Install an Apache, MySQL, and PHP (LAMP) Stack on CentOS
Update your CentOS
Install Apache 2.4
Install MySQL
Install PHP 7.2
Configure HTTPS
This instance is underutilized
How to start, start, and restart Apache
Unable to connect to MySQL Server from the web application
Let’s Encrypt certificate expiration notice for domain “victordiaz.ca”
remi-release-8.rpm
No package matching ‘php-pecl-mcrypt’ found
How to remove PHP
Setting up Mailx
SMTP Configuration for a Gmail email account
SMTP Configuration for a ROM email account
Testing
Setting up Postfix
Installing Postfix
Installing Dovecot
Installing SquirrelMail
Introduction
Installing SimpleSAMLphp
Installing Apache Solr 7
Creating cores
Configuring Solr 7 with Drupal 7
Solr cannot be re-installed
Solr search does not display any results
Solr search results shows no images
WARNING: UNPROTECTED PRIVATE KEY FILE!
Unable to SCP to remote VM
Could not open a connection to your authentication agent
Too many authentication failures
pbcopy: command not found
SSH Allow Password For One User, Rest Only Allow Public Keys [duplicate]
Unable to SSH to remote VM
Updating to latest version of SSH
error: Bind to port 60 on 0.0.0.0 failed: Permission denied
Unable to login from UofT
Unable to login from home
Increasing timeout session
Get Fingerprint
Got myself locked out (high severity)
Got myself locked out (medium severity)
Cannot rsync from remote
kex_exchange_identification: read: Connection reset by peer
Operation timed out
Operation timed out (2)
Operation timed out (3)
Creating .pub from .pem
sudo pwfeedback – Nasty Linux, macOS sudo bug found and fixed
Adding/Deleting Users on a CentOS 7 Server
Adding Users
Changing User password
Granting Sudo Privileges to a User
Managing Users with Sudo Privileges
Deleting Users
Locking/Unlocking Users
Conclusion
Adding Bitbucket user
Unable to login to CentOS
Creating Groups
Removing user from group
Restring user access with sudo and sudoers
Using SUDO without a password
Using nano as editor with visudo
How to Change the login shell of the user
Downloading files owned by other users
Listing allowed commands per user
Disabling user accounts
For Systems with Password Authentication
For Systems with SSH Key Authentication
Enabling user accounts
For Systems with Password Authentication
For Systems with SSH Key Authentication
Get Fingerprint
SSH Access
Enabling/Disabling Groups
Grant/Revoke system access from all users in the group
Grant/Revoke file access from all users in the group
Using Access Control Lists (ACL)
YUM – keeping software packages up-to-date
Yum-security
How to display a list of updated software and security fix
How to find out whether updates exist for packages that are already installed on my system
To update specified packages
List all installed packages
Find out if httpd package installed or not on the system
Lists all packages that are available to install all packages that are installed on system
Lists all packages that are available for installation
How to search for packages by name
How to see detailed information about a package
How to show dependencies list for a package
How to downgrade a package to an earlier version
How to reinstall a package again
How to remove / uninstall the specified packages [ RPM(s) ]
How to remove unneeded/unwanted packages/deps
Display the list of available packages
Display list of group software
Install all the default packages by group
Update all the default packages by group
Remove all packages in a group
Display description and contents of a package group
Display what package provides the file
How to clean yum cache
How to list software repositories
See information about enabled yum repositories
How to view and use yum history
How to see help about yum command
You need to be root to perform this command.
How to view installed packages
How to remove installed packages
How to install php 7.2
Yum install is not working (To be completed on the weekend)
Error: Package: glibc-devel
No package htop available
File contains parsing errors: file:///etc/yum.repos.d/pgdg-redhat-all.repo
WP-CLI is missing
SSL/TLS Certificates
ECC (Elliptic Curve Cryptography)
Apache: Create CSR & Install SSL Certificate (OpenSSL)
Create a CSR using OpenSSL & install your SSL certificate on your Apache server
Testing Your SSL/TLS Certificate Installation
Troubleshooting
Apache Server Configuration
MACOS – SSL Certificate (Self Signed)
ROMLX12 – SSL Certificate (Signed by CA)
ROMLX122 – SSL Certificate (Self Signed)
ROMLX777 – SSL Certificate (Self Signed)
Trusted vs Self-signed
Building an TLS Certificate
SSL Configuration Generator
Self-signed Certificates
Self-signed Wildcard Certificate (*.puma) does not work
Your connection is not private
Another common error was: (BasicConstraints: CA == TRUE !?)
Another common error was: server certificate does NOT include an ID which matches the server name
Final openssl.cnf
Self-signed SSL Certificate does not specify Subject Alternative Names
ERR_CERT_COMMON_NAME_INVALID
How to verify CSR information
dyld: Library not loaded
deprecated key derivation used
Insecure TLS ciphers
Forward Secrecy
Your site could not complete a loopback request
SSL/TLS ciphersuites supported
How to determine if I need to upgrade my web servers to TLS 1.2
302 Moved
How do I remove passphrase requirement in Apache?
HTTPS Everywhere breaks down ROM-OMNI data exchange communication
How to create a .pfx/.p12 certificate
How to create PEM-encoded private key, cert, and chain
Installing Let’s Encrypt SSL/TLS Certificate
Certificate renewal – Let’s Encrypt certificate expiration notice for domain “victordiaz.ca”
Let’s Encrypt renewal failed
Let’s Encrypt renewal failed – 2
Insecure TLS ciphers
Forward Secrecy
Certificate renewal
Certificate renewal for “*.rom.on.ca”
*.rom.on.ca vs *.rom.ca
Failed to update database
Certificate and private key do not match
2048 vs 4096
Protecting *.victordiaz.ca, *.drupal.victordiaz.ca, *.symfoy.victordiaz.ca, and *.wordpress.victordiaz.ca subdomains (On the same EC2 server)
Renewal Time
Adding virtual host: jenkins.victordiaz.ca
Adding virtual host: wordpress.victordiaz.ca
Let’s Encrypt renewal failed – 3 (LATEST)
Problem:
Solution:
Upgrading OpenSSL
How to install an existing SSL Certificate to Tomcat running on Windows Server 2016
Step 1. Convert P7B certificate into PFX (See T43 below)
Step 2. Import PFX certificate into Java Keytool
Step 3. Update Tomcat Configuration
server.xml
web.xml
Atlassian JIRA Service
Step 4. Update Jira Configuration
Setup: Tomcat is misconfigured
Re-indexing Jira
Koomar TLS delivery (TO BE REVIEWED)
Possible conflicts between *.rom.on.ca and {{ HOST_NAME }} SSL Certificates
Digicert SSL Certificate is revoked
Certificate renewal for “{{ HOST_NAME }}”
Certificate renewal for “{{ HOST_NAME }}” (2)
Test 1 – Failed
Test 2 – Failed
Test 3 – Succeeded
Test 4 – Succeeded
DRP
Where is your private key?
My questions to Digicert
Q1
Answer
Q2
Answer
Q3
Answer
Q4
Answer
Converting File Formats
Protecting *.clov3r.net, *.drupal.clov3r.net, *.symfoy.clov3r.net, and *.wordpress.clov3r.net subdomains
Protecting *.drupal.victordiaz.ca, *.symfoy.victordiaz.ca, and *.wordpress.victordiaz.ca subdomains (On different EC2 servers)
Protecting jenkins.victordiaz.ca and nagios.victordiaz.ca (On different EC2 servers)
centos
,
devops
,
Linux
,
systems-administration
Written By victord On August 28, 2022