CentOS:- “dnf -y config-manager –set-enabled PowerTools” – “Error: No matching repo to modify: PowerTools.”

Background Playing around with installing applications on our Linux box running CentOS. It is a recently rebuilt Linux box and it is running CentOS version 8. Ran into a little error in the middle of the consequent application installs. We will talk about the error in this post.   Error Error Image Error Text Scenario … Continue reading CentOS:- “dnf -y config-manager –set-enabled PowerTools” – “Error: No matching repo to modify: PowerTools.”

Powershell Core – Update – Linux – CentOS

Background Recent disclosure from Microsoft shares news of Powershell Core security vulnerabilities. Let us quickly review whether we need to apply the patch to our Linux/CentOS box.   Scope Please keep in mind that the vulnerability does not affect Windows Powershell, but Powershell Core. Windows PowerShell runs only on MS Windows. Powershell Core is multi-OS. … Continue reading Powershell Core – Update – Linux – CentOS

WMI – Client – PowerShell & Linux

Background Will like to provide a sample working code for invoking wmic from a Linux box. Our scripting code will be Powershell.   Code Outline Command Line Arguments Targeted hostname using -hostname <target> wmic authentication file using -fileAuthentication <filename> Invoke-Expression Invoke Script using Invoke-Expression Capture Output Parse Captured Output using Operating System ( OS ) … Continue reading WMI – Client – PowerShell & Linux

WMI – Client – Usage on Linux/CentOS – Using An Authentication File

Background Still on WMIC on Linux, let us transition away from providing the user credentials on the command line. We will provide the credentials in a file, secure the file, and specify the file when we invoke the wmic utility.   Outline Active Directory Provision Account Target Computer Computer Management Grant Account permission to Targeted … Continue reading WMI – Client – Usage on Linux/CentOS – Using An Authentication File

WMI – Client – Usage on Linux/CentOS

Background Let us quickly try out some of the options for using wmic application on a Linux host.   Usage Outline Options Review Options Text   Options Here are some of the options:- Option Short Name Option Long Name Meaning Explanation Sample -d --debuglevel Debug Level Set Debug Level 1 2 3 -s --configfile Configuration … Continue reading WMI – Client – Usage on Linux/CentOS

WMI – Client – Installation on Linux/CentOS

Background Recently I was playing around with WMI on an MS Windows machine. I wanted to try the same sample queries from a Linux machine.   Installation Outline RPM Identify RPM Source Download RPM Install RPM Validate wmic RPM Identify RPM Source Here are some sources that avail WMI Clients for Linux:- Organization CentOS Version … Continue reading WMI – Client – Installation on Linux/CentOS

Git – Client Tools – Install on Linux ( Cent-OS )

Background I need Git on the Cent-OS that I am working on. I am on v8 of CentOS. Outline Is Git Installed? Install Git Review Git Install Configure Git Tasks Is Git Installed? which syntax sample output Output Image Output Text Explanation We have confirmation that git is not installed.   Install Git dnf dnf … Continue reading Git – Client Tools – Install on Linux ( Cent-OS )

ClamAV – Installation on CentOS – v8

Background Need an AntiVirus on my CentOS box. AntiVirus ClamAV is free and works on CentOS. Outline Package Verify ClamAV yum yum list installed dnf dnf list installed Install Identify Artifacts Install Artifacts Review Review Packages Configure ClamAV Configure SELinux Configure Services List of Services clamd@.service freshclam.service Configure Service Start Service Review Service Status Tasks … Continue reading ClamAV – Installation on CentOS – v8

Linux – CentOS – Set Timezone

Background Playing around with Linux, queried the system for the current time, and noticed it is a bit off.   OS OS - Linux - CentOS Our OS is CentOS/Version 8. Command hostnamectl We can issue hostnamectl, to get the OS Name and Version. Output     timedatectl Outline timedatectl timedatectl status timedatectl list-timezones timedatectl … Continue reading Linux – CentOS – Set Timezone

Linux – File System – Listing File Systems

Background What is the File System on our disks? Outline Commands df ( Disk Free ) lsblk ( List Information on the block devices ) lshw ( List Hardware ) file ( File Command ) mount ( List Mount Points ) blkid ( List Information on Available Block Devices ) System Configuration File /etc/fstab Commands … Continue reading Linux – File System – Listing File Systems