Archive | Uncategorized RSS feed for this section

VMware find duplicate IP address for server / vm vCenter VSphere

Script will use POWERCLI to run on your vmware environment *Tested in 5.1 Vsphere

1. download powerCLI *powershell for vmware  – 

2. create script findIP.ps1

3. Copy and paste code into file NOTE:(make sure that the line $results= Get-View -Viewtype ………TO……..$strMacToFind)}} is on one line! not multi lines)

#format of mac address argument in quotes “08:00:69:02:01:FC”
#use the mac of a network setting you know has the correct setting that has a conflict
#to run
# ./findIP.ps1 “08:00:69:02:01:FC”

#connet to vmware
$pass = Read-Host “Please enter Administrator password of VMWARE ENV”
$ConnectVcenter= Connect-VIServer -Server $vCenterSv -User administrator -Password $pass

$strMacToFind= $args[0]
$results= Get-View -Viewtype VirtualMachine -Property Name, Config.Hardware.Device | ?{$_.Config.Hardware.Device | ?{($_ -is [VMware.Vim.VirtualEthernetCard]) -and ($_.MacAddress -eq $strMacToFind)}}
write-host $

#format of mac address argument in quotes "08:00:69:02:01:FC"
#use the mac of a network setting you know has the correct setting that has a conflict
#to run
# ./findIP.ps1 "08:00:69:02:01:FC"

#connet to vmware
$pass = Read-Host "Please enter Administrator password of VMWARE ENV"
$ConnectVcenter= Connect-VIServer -Server $vCenterSv -User administrator -Password $pass

$strMacToFind= $args[0]
$results= Get-View -Viewtype VirtualMachine -Property Name, Config.Hardware.Device | ?{$_.Config.Hardware.Device | ?{($_ -is [VMware.Vim.VirtualEthernetCard]) -and ($_.MacAddress -eq $strMacToFind)}}
write-host $

Find your MAC  Vmware:

Right Click on Vm –> Edit Settings –> Hardware –> Network Adapter 1 — Mac address



At this point you have all you need — open PowerCLI – cd to where the script is located

RUN the script!

./findIP.ps1  “00:50:56:8d:6b:ab”

*Image below has full code of script

VMware Find Duplicate IP


CentOS No “you have new mail” ssh login Fix

LINUX – Command Line Login “You have mail.” Fix

This makes the SSH / command line login say if you have new mail at the time of log on:

Edit two files as root – Adding the text in the file 

Vi — > /etc/pam.d/login

add the following line to bottom of file

session optional standard



Vi — >/etc/pam.d/sshd

add the following line:

session optional standard noenv




By default it seems that CentOS linux does not have the “you have mail ” feature enabled for ssh logins. My issue was that  I had a brand new  Cetos 7 server -> Installed sendmail, setup the box as  mail server and then never the email  notification”you have new mail” at time of ssh login. This sent me down a long path to find the under documented pam.d feature.


Mint 17 – Inspiron 1545 no WiFi fix

Mint 17 – Inspiron 1545 no WiFi fix
Dell Inspiron 1545 laptop
1. Put in the Mint 17 CD-Rom or have wired Network connection to web
2. go to menu icon > System Settings>Hardware > Additional Drivers >
3. Click the Check box  USE Broadcom 802.11 Driver
4. Click Apply Changes (bottom right)
5. REBOOT computer

Once the Broadcom driver has been installed and computer has rebooted the wireless networking icon will appear on bottom of tool bar.



Mint wifi DellMint1545

Mint wifi DellMint1545


PowerShell Change Email Address for domain users

Create a PS1 File on the DC or connect via powerShell remote.
The script below will update users in the OU searchbase to reflect a new email address

# Name: ChangeEmail.ps1
############# ##########################################
$olddomain = ""
$newdomain = ""
Get-ADuser -Filter * -Properties givenName, Surname, EmailAddress -searchbase "OU=test2,DC=YourDomain,DC=Com" | %{
     $fname = $_.givenName
     $lname = $_.surname
     if ($_.EmailAddress -eq "$fname.$lname@$olddomain"){
         Set-ADuser -Identity $_ -EmailAddress $fname.$lname@$newdomain
	Write-Host ($_.emailAddress)

Centos 6.5 heartbleed patch fix update

This OPENSSL heartbleed HOW TO documents the steps to install the openSSL heartbleed PATCH,

heartbeed patch centos linux

heartbeed patch centos linux

and then using openSSL commands the admin can verify the CentOS  6.5  openSSL heartbleed fix was installed correctly! 

 HOW TO PATCH: The commands used for patching assume your using sudo in front of each command or are running as the root# user

Run yum update on openssl –> command –>

yum update openssl

REBOOT SERVER – you can get away with only restarting services… its Linux. However,  a full reboot will ensure all services have restarted. *Grab a coffee and take the 4min downtime to reboot!To verify CentOS  6.5  OpenSSL PATCH was installed correctly! 

Now that you have rebooted…Does your CentOS server have the heartbleed SSL update ? Check/ verify update of openssl by command  ?? This also to verify a cloud hosting provider installed the patch.  

rpm -q --changelog openssl | grep CVE-2014-0160

If your server says

# - fix CVE-2014-0160 - information disclosure in TLS heartbeat extension

Your good!! On first part

Check part 2:

 Yum info openssl 

You want to see the below –

Installed Packages
 Name : openssl
 Arch : x86_64
 Version : 1.0.1e
 Release : 16.el6_5.4
 Size : 4.0 M
 Repo : installed

 If the above  Installed packages is shown your good on the 2nd part! 

Check openssl by command part 3 :

 openssl version –a 

If your server says the bleow you are good the patch has already been applied:

OpenSSL 1.0.1e-fips 11 Feb 2013
built on: Tue Apr 8 02:39:29 UTC 2014

  (Additionally… MAKE SURE the second part on “built on: date above”shows that it is a date of Tue Apr 8 02:39:29 UTC 2014 or more a more current date)


  Regarding the reboot. 

Yes, I know this is Linux and you can just bounce individuals services. However, it is somewhat safer and ensures that no lingering services sill have hold of older openSSL items. I say take the 10 min downtime to bounce entire server  so that you know good an well the openssl heartbleed patch is installed and safe!


Ubuntu Linux TL-WN725N TP-Link version 2 WiFi driver install

Ubuntu fix TL-WN725N wireless not working – Step by step install TP-Link TL-WN725N  nano version 2 WiFi ubuntu driver install.*User verified on raspberry pi TL-WN725N , linux Mint 17 and Mint 16 This how to will work on Ubuntu TL-WN725N install, Debian TL-WN725N install,kali TL-WN725N install, and Mint TP-LINK TL-WN725N usb WiFi driver installers: Linux how to install TL-WN725N usb nano driver. Works on Raspberry Pi 2 Model B with Ubuntu.

Quick List:: Do each command below as root or use sudo in front of commands *Tip:  Use command:       sudo su – The above command will give root permissions to your  command terminal window, and you want have to keep typing sudo before each commando

apt-get update
apt-get install linux-headers-$(uname -r)
apt-get update
apt-get install build-essential
apt-get install git
git clone
cd rtl8188eu
make all
make install
insmod 8188eu.ko

ifconfig #(check to see if your wireless wlan cards is now listed)

#optional step ...reboot may be necessary
#sometimes a reboot helps pickup newly installed devices
DONE! Now you can use that sweet new wlan TP-LINK TL-WN725N  WiFi usb card!!
Linux TL-wn725n Driver how to

inux TL-wn725n Driver how to

Full (LONG) Version of how to : 
TL-WN725N TP-Lin Linux Driver install k version 2 WiFi USB 

1.  First you need to have kernel headers, 
build- essential packages and git installed. 
This is so  your kernel is prepped for the new TL-WN725N TP-Link v2 driver. 
  (Model: TL-WN725N Ver: 2.0) 

Step by step...If you don't have linux-headers, git, 
build-essential installed on your kernel

 Do the following items in bold:
 A. root@kali#  apt-get install linux-headers-$(uname -r)
 B.root@kali#  apt-get install build-essential 
 C. root@kali#  apt-get install git 

 Now the headers are ready for us to install the driver that
 works with TP-Link TL-WN725N

 1. root@kali# git clone 


2.root@kali#    cd rtl8188eu 
3. root@kali#   make all 
4. root@kali# make install 

5. root@kali# insmod 8188eu.ko

6. root@kali# ifconfig 

– See if you see a wlan device listed


PowerShell Windows 2012 R2 IIS FTP web user creation


Fix: freenx 12.04 ubuntu immediately closes

The issue is with the screen compression size of 12.04 Ubuntu &  UNITY

Follow the pictures:

Set custom options

freenx ubuntu 12.04

freenx ubuntu 12.04


Part 2- edit compression

Thanks to as it was a starting point


Firefox british spelling fix to US spelling

 Firefox remove / fix British language spelling  back to USA spelling/ USA dictionary

1.Spell a word incorrectly–>afdadajd;lkajdsrfl;ja jfa;j
2.Right click red text  to correct spelling
3 In spelling correction menu –>Click Languages –>
4.Select –>English / United States from list

Very annoying when typing an email and the word color is showing as misspelled due to the British spell-check version in Firefox.

The solution was found, but not a whole lot of help when asking “Uncle Google”.

language .dic fix
Thought I would post it so others don’t waste their time fixing this annoyance.

Solutions for issue: Resolved!
British Spell Checker Dictionary fix
firefox british spelling back to USA
Firefox checking for British spelling instead of US

Fix Firefox spelling


Virtual Box enable RDP over NAT

Connect to Oracle VirtualBox Guest over NAT using RDP Windows Remote Desktop .

Virtual box has a hidden feature under the settings display menu of Virtual box 4.1.
Click your VM Machine –> Settings–> Display–> Remote Display Tab — > Enable Server (CHECK BOX) –> Server Port 3389.

This will now enable a Linux host  to use Remote Desktop over NAT on port 3389.  Virtual Machine using RDP Remote Desktop on host IP port 3389.
This is a built in feature of Oracle Virtual Box , but has to be enabled.

To connect to windows  RDP on the host type the HOST machine IP and the port .

In my case my host IP is

1 Comment