Installing MySQL on Centos 7 server using Ansible.

November 20, 2016
By
Installing MySQL on Centos 7 server using Ansible.

This is the content of the inventory file on my Ansible server. The remote server is called test1 under the group web-server. # cat hosts test1 The playbook is called mysql-repo.yml. This will install the MySQL Community Repo, you need this to install MySQL. CentOS7 is shipped with MariaDB but since I...
Read more »

Installing and learning Ansible

November 18, 2016
By
Installing and learning Ansible

I am learning Ansible and am documenting my progress. I built two Centos 7 test servers, the main one is called Ansible and the remote server is test1. To install Ansible first add the EPEL Repository for Centos 7 rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm Now you...
Read more »

Harden Windows Server

June 10, 2016
By

These are some steps you can take harden a Windows Server. Disable SSL 2.0, SSL 3.0, TLS 1.0, TLS 1.1 and RC4 cipher. Disabling SSL 3.0 will address the Poodle vulnerability, in addition to that you should also disable SSL 2.0, TLS 1.0 and...
Read more »

Mount Windows CIFS share on Linux server using kerberos keytab

May 4, 2016
By

Use kerberos ticket to mount CIFS shares on a Linux server. You do not need to know the password for the account, nor have the password stored in a file. Create the keytab file for the account my-account, this step must be completed by...
Read more »

Change the IP address of a Windows servers with VMware PowerClI script

April 27, 2016
By

VMware vSphere PowerCLI script to change the IP addresses of Windows servers. $TranscriptFile = “.\change-ip-2.txt” #Stop-Transcript Start-Transcript -Path $TranscriptFile $windowsID = “administrator” $windowsPassword = “MyPassword” Function Set-WinVMIP ($VM, $IP, $SNM, $gateway){ $nics = Get-VMGuestNetworkInterface -VM $VM -GuestUser $windowsID -GuestPassword $windowsPassword | ?{$_.ip -ne $null}...
Read more »

Find VMware Guests with Raw Physical Disks

February 27, 2016
By

VMware vSphere PowerCLI script to find all guests that have RDMs or raw physical disks. $Servers=”vcenter1″ Connect-VIServer $Servers $vms = get-cluster | get-vm Get-VM | Get-HardDisk -DiskType “RawPhysical”,”RawVirtual” | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName | out-gridview -PassThru | Export-Csv -Path .\vm-with-rdm.csv
Read more »

VMware PowerCLI script to list snapshots older than specific days

September 27, 2015
By

A VMware vSphere PowerCLI script to find and email a list of all VMware guests that have snapshot older than 3 days. # List all VM with snapshots # Run as scheduled task with a user with rights to view all VMs Add-PSSnapin VMware.VimAutomation.Core...
Read more »

Configure VMware Datastore Multipath Policy by Disk Type

May 27, 2015
By

Here is a VMware vSphere PowerClI script that will find all datastores that are of the model Hitachi – Open-V, set the multipath policy to RoundRobin if it is anything else. $clustername = ‘clustersomething’ $datastore = get-datastore # Find datastores by HITACHI, model OPEN-V...
Read more »

Scan for new disk without rebooting Linux server

March 6, 2015
By

After you add a new disk on a Red Hat Linux server you can scan for the new disk without rebooting. List the number of scsi host controllers ls /sys/class/scsi_host host0 host1 host2 Run this command to to scan each host0, host1 and host2...
Read more »

Configuring SNMPv3 client on Red Hat Linux

January 28, 2014
By

To configure snmp client version 3 on a Red Hat server you will need to install the packages net-snmp-utils and net-snmp. yum install net-snmp-utils net-snmp Make sure the snmpd service is stopped before you can configure it. service snmpd stop Create a new SNMPv3...
Read more »

VMware converting RAW disk to VMDK

January 27, 2014
By

Convert a Vmware RDM disk to VMDK while guest VM is powered off Power down the guest VM Clone the VM, under select virtual disk format – select Advanced – change the disk format to Thick provisioned. You only need to do this step...
Read more »

Add new disk to Red Hat Linux server, create new filesystem without reboot.

January 27, 2014
By

If you are running a VMware virtual Red Hat Linux server then it is very easy to add a new disk. For physical servers with hot add capability this is also possible. I am going to show you how to add a new disk...
Read more »

Configure the DVD or Linux ISO as software repository for Red Hat Enterprise Linux

September 7, 2012
By

You downloaded and installed Red Hat Enterprise Linux on your server becasue you just want to test it out. During installation you selected base server, after installation you realize that you need to install additional packages. But since you did not purchase the Red...
Read more »

SSH login without password using public key authentication

August 23, 2012
By

On Computer A Create the public and private keys using the command ssh-keygen # ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification...
Read more »

Granting Active Directory group privilge to logon to linux server

November 28, 2011
By

Likewise similar to Winbind is an open source software used to integrate linux server with Microsoft Active Directory authentication. This article assume that you already have Likewise installed and configured on the Linux server. The steps below is simply to grant a new AD...
Read more »