Category: Linux

Linux: How to Add a Line into Crontab from Command Line

The easy method: newline=@reboot /usr/bin/numlockx(crontab -l && echo "$newLine") | crontab - Alternative (longer version)…

How to Install Visual Studio Code on Linux Mint 20.04

Linux Mint versions earlier than 20.04 would allow a user to install snapd, prior to…

Linux: How to Manually Create a USB Bootable Drive for ESXi

Step 1: Find the USB mount root@kimlinux:/home/kim# ls /dev/s*/dev/sda /dev/sdb1 /dev/sdb3 /dev/sdc1 /dev/sg1 /dev/snapshot /dev/stdin/dev/sdb…

How To Install Zabbix Client on CentOS 8

# Open the commonly known Zabbix ports firewall-cmd --zone=public --add-port=10050/tcp --permanent firewall-cmd --zone=public --add-port=161/tcp --permanent…

Linux: Using Bash to Search for Files Matching Certain Extensions

# using tree: list any files in a directory parentDirectory=/home tree --prune $parentDirectory # using…

How To Install Microsoft Edge on Ubuntu / Debian / Linux Mint

Step 1: Add Microsoft Repository curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpgsudo install -o root…

How to Install Internet Explorer on Ubuntu 20.04

Step 1: Install PlayonLinux kim@kimlinux:~# sudo apt install playonlinux -y Step 2: Install Internet Explorer…

Linux DNS Networking

DNS client on Linux: /etc/resolv.conf specifies the nameservers for resolver lookups. The order of lookup…

Linux Mint 20: How to Disable the Annoying Keyring Prompts for Passwords

Update 03/2023: https://blog.kimconnect.com/linux-how-to-bypass-annoying-login-keyring-prompts/ The default installation of Linux Mint expects that the user would login…

How To Configure Greylog Client on CentOS 8 Linux

Step 1: Access http://[your-graylog-server]:[portNumber]/system/inputs to obtain this info such as show in this example: Syslog_UDP…

Bash Shell Quick If Then and Case Switch Statements

protocol=udp # or tcp # If-then implementation if [$protocol == udp] then prefix=@ else prefix=@@…

How to Create USB Bootable Drive on Ubuntu

Navigate to Start Menu > System Tools > Startup Disk Creator Verify that the Source…

CentOS 8 SSH Daemon Notes

# How to check sshd logs tail -f -n 50 /var/log/secure|grep sshd # Limit sessions…

An Issue with RSA Key On CentOS 8

Error message seen by checking SSH Daemon status: [root@linux1 testadmin]# service sshd statusRedirecting to /bin/systemctl…

How to Disable SELINUX on CentOS 8

SELinux is a sort of system-call firewall, where processes are in their run spaces. When…

Network Time Protocol for CentOS 8

Check hardware clock [root@sftp testadmin]# hwclock --verbosehwclock from util-linux 2.32.1System Time: 1608158426.341727Trying to open: /dev/rtc0Using…

PowerShell: Maintain Linux Services via SSH Remoting

Version 2: # maintainLinuxServices.ps1 # Version 0.0.2 # Description: this is a simple script to…

PowerShell: Probe Remote Machine for Its OS Type

function probeOsType($server){ $ping=test-connection $server -count 1 $ttl=$ping.ResponseTimeToLive $osType=switch($ttl){ {$_ -le 64} {"Linux"; break} # MacOs…

Linux: Shell Script to Reboot Remote Devices Daily

Set Variables remoteDevice=10.25.0.20username=adminpassword="PASSWORDHERE" Install sshpass if it doesn't exist if ! sshpass -v sshpass &>…

Linux: Create a Shell Script to Watch Services

# create a script to watch services (notice the regex escape for special chars) sudo…