Category: Linux

Bash: How To Join Array With Comma Delimiter

# The following function joins an array of numbers # Limitation: the delimiter is expected…

Puppet Client Server Lab Setup

Server # Setup client machine name sudo vim /etc/hosts ## Insert this line ## xx.xx.xx.xx…

How to Install Selenium for Python on Windows or Linux

Windows # This error would occur if pip is not up to date PS C:\WINDOWS\system32>…

How To Run Python Interactive Command Line Mode (CLI)

Windows PS C:\WINDOWS\system32> python Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit…

Disable and Enable Sleep Mode on a Linux Workstation

The following commands would work on any Linux machine with SystemD (Ubuntu, Linux Mint, Redhat,…

Linux SMB Mount via Command Line Bash Shell

Install smbfs to include these functions smbmount smbunmount Here is a demonstration of smbmount to…

Linux: How To Repair Corrupted Zip File

kimconnect@linuxbox:/media/data/newPhotos $ zip -FF corrupted.zip --out fixed.zip Fix archive (-FF) - salvage what can zip…

Linux: Copy File Contents Into Clipboard

Install XCLIP (if not already installed) sudo apt install xclip -y Reading package lists... Done…

How to Use ImageMagic to Resize Images

Converting PNG to JPG (optimized): # This is an optimized resizing command to convert PNG…

Uhhuh. NMI received for unknown reason 3d on CPU 4

Problem: Message from syslogd@linux03 at Aug 31 04:28:21 ... kernel:[273033.123489] Uhhuh. NMI received for unknown…

Ping Command’s First Packet Toward LDAP Server(s) Takes 2 Seconds to Start

Case 1: Are DNS servers working? dig returns results right away => defined dns servers…

How To Install Graylog in a Kubernetes Cluster Using Helm Charts

The following narrative is based on the assumption that a Kubernetes (current stable version 20.10)…

How to configure Ubiquiti EdgeRouter to send logs to a Syslog Server

Method 1: using text editor # Edit the syslog config sudo vi /etc/rsyslog.d/vyatta-log.conf # Change…

How To Configure Alternative Storage for a Kubernetes (K8s) Worker Node

The below illustration is assuming that one has a local RAID mount being added to…

Ubuntu: Auto Updates Configuration

Prepare the Linux OS: # Install auto-update packages sudo apt install -y unattended-upgrades apt-listchanges #…

Linux: Testing Disk Speed

Below is an exercise in comparing 2 different media: external USB drive vs a SD…

Linux: RSYNC Examples

Following are a few practical uses of this command: # Copying from a Local Directory…

Linux: Commands to Add a New Disk

# Step 1: create partitioning table (gpt or msdos/mbr) device=/dev/sdc sudo parted $device mklabel gpt…

Problem: NextCloud Would Not Start Due to Versioning Variance

This issue has occurred when NextCloud has been upgraded after deployment. Its source docker container…

NextCloud Container PHP Memory Issue as Deployed via Kubernetes

Most common example:Below is a raw text paste of an exercise in resolving the issue…