Monday, February 13, 2012

steps taken from vmware server 2.0 dropping vms under load

Notes from vmware server 2.0 dropping vms under load


Here are the steps that I have taken:
1 - Create the directory /usr/lib/vmware/lib/libc.so.6
2 - Grab /lib/libc-2.5.so and copy it to /usr/lib/vmware/lib/libc.so.6 the version that I retrieved came from glibc-2.5-34 I got mine from a backup. If you do not have a backup version follow instructions 3a to 3e. I explain on how to get this library from the CentOS repository.
3a - mkdir /tmp/glibc-2.5.34
3b - cd /tmp/glibc-2.5.34
3c - wget http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/glibc-2.5-34.i686.rpm
3d - rpm2cpio glibc-2.5-34.i686.rpm | cpio –ivd
3e - Grab /tmp/glibc-2.5.34/lib/libc-2.5.so and copy it to /usr/lib/vmware/lib/libc.so.6
4 - Rename the file libc-2.5.so within /usr/lib/vmware/lib/libc.so.6 to libc.so.6
5 - Open /usr/sbin/vmware-hostd and add /usr/lib/vmware/lib/libc.so.6 to the LD_LIBRARY_PATH. I just added:
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libc.so.6:$LD_LIBRARY_PATH
before the last line.
6 - Restart your VMware service and your Virtual Machine(s)



rpm -Uvh --oldpackage http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/glibc-2.5-34.x86_64.rpm

Thursday, February 9, 2012

reference tools on nix

ldd lists the libraries the executable uses

nm lists the references

Tuesday, January 24, 2012

view pf rules

To view the rules being used by pf

pfctl -g -s rules

from http://www.thedeepsky.com/howto/newbie_pf_guide.php

Tuesday, September 27, 2011

get the protocol (http) back in firefox 7 location bar

To get the protocol (http https ftp) to appear in the location bar of firefox 7

open the config by typing "about:config" in the location bar
Click the Ill be careful i promise button.

search for browser.urlbar.trimURLs
set to false

The protocols should now be visible again.

Monday, September 26, 2011

remember tao_root

When generating the workspace using mwc (Make Project Creator) and you get the error

ERROR: Unable to locate parent: tao_versioning_idl_defaults

be sure to set your TAO_ROOT variable to the TAO location.

Thursday, September 8, 2011

see the defines in gcc g++

touch test.h
g++/gcc -E -dM test.h

Friday, September 2, 2011

single shell line for

for fle in `find . -name '*vs8*' | grep -v '.svn'`; do \
export newfle=`echo $fle | sed -e "s/vs8/vs10/g"`; \
if [ ! -f "$newfle" ] ; then \
cp "$fle" "$newfle"; \
else \
echo "$newfle" already exists; \
fi \
done



note the semicolons and export(to use the variable name)