Howto Convert a ESXv5 to ESXv4 VM

Howto Convert a ESXv5 to ESXv4 VM

This details the steps needed to convert a machine from ESXv5 to ESXv4

Convert OVA to VMX On ESXv5 Machine, Export the VMWare ESX5 Machine to OVF (File -> Export -> Export OVF Template) Download ovftool

Convert ova to vmx (ignoring manifest errors)

ovftool sourefile.ova destfile.vmx (make sure . . . → Read More: Howto Convert a ESXv5 to ESXv4 VM

nohup example

here’s a nohup example:

nohup nice -n -19 /bin/bash all_countries.txt 2>&1 >/root/cidr_to_ipset_output.log </dev/null &

nohup is a POSIX command to ignore the HUP (hangup) signal. The HUP signal is, by convention, the way a terminal warns dependent processes of logout.

Output that would normally go to the terminal goes to a file called nohup.out . . . → Read More: nohup example

Apache ProxyPass with dynamic hostname

To use Apache ProxyPass directives with dynamic hostnames you will need to also use ModRewrite.


All requests to the virtualhost will ProxyPass and ProxyPassReverse (also known as an “Apache Gateway”) to the %{HTTP_HOST}

The only reason this would make sense to do is if you have localhost entries on the apache server for specfic . . . → Read More: Apache ProxyPass with dynamic hostname

curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)


When running curl you get this response:

curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112) Solution curl -ssl3

Ensure Beaver Log Shipping is Running

I have a love hate relationship with the beaver log shipper and ensuring that it is in fact running on all of my machines (and not in a defunct or partially running state)

I have finally whipped up a script to take care of this issue and thought i’d share it for anyone that cares.

. . . → Read More: Ensure Beaver Log Shipping is Running

shred files on Centos

Here’s a handy alias for shredding files on CentOS

alias shred=’shred -v -n 1 -z -u’

chkconfig with color on centos

alias chkconfig=”chkconfig | perl -pe ‘use Term::ANSIColor; s/\bon\b/color(\”green\”).on.color(\”reset\”)/ige;’”

or to permit passing an agrument:

function chkconfig(){ /sbin/chkconfig $* | perl -pe ‘use Term::ANSIColor; s/\bon\b/color(“green”).on.color(“reset”)/ige;’ }

nano syntax highlighting

nano syntax highlighting

This article describes how to get syntax highlighting in the command line emacs editor “nano“

Ubuntu zcat /usr/share/doc/nano/examples/nanorc.sample.gz > ~/.nanorc sed -i ‘s|# include|include|g’ ~/.nanorc Centos/Redhat cp /usr/share/doc/nano-2.0.9/nanorc.sample ~/.nanorc sed -i ‘s|# include|include|g’ ~/.nanorc

my bash prompt


Modify ~/.bashrc and append this line

PS1=”\n\[\e[32;1m\][\[\e[37;1m\]\[email protected]\h:\[\e[37;1m\]\w\[\e[32;1m\]]\\$ \[\e[0m\]” My Bash Prompt

Setup Email on Centos

To setup email on Centos 6 run these commands yum -y install sendmail mailutils chkconfig –levels 235 sendmail on service sendmail restart To send a test email echo “test message” | mail -s “test subject” [email protected] Hosts File

Modify your hosts file and add $HOSTNAME.local to prevent issues (in example below we are using hostname . . . → Read More: Setup Email on Centos