Thursday, September 28, 2006

Sometimes it's just painful, to be an American

Actually, I can't remember any time in my 37 years where I was almost embarrased to be an American.

Why does the current administration feel like we, America, can just do whatever the hell we want, all in the name of "protecting" ourselves against terrorism? I am talking about the following (from: thinkprogress.org) :


Congress moves to authorize torture.

The House voted 253-168 to approve legislation on military commissions that authorizes torture and strips detainees of the right to challenge their detention. Also voted down was a measure by Rep. Ike Skelton (D-MO) which called for an expedited judicial review of the constitutionality of the commissions, and required the bill to be reauthorized in three years to ensure congressional oversight in evaluating the effectiveness of the commissions. The Senate is expected to approve nearly identical legislation tomorrow. September 27, 2006 9:45 pm (103)


We've invaded countries for such acts against humanity.

We're spiraling down. I think someone needs to hit the reset-button and start all over again.

Saturday, September 09, 2006

How to restart the OSX Desktop...

Without loging out and back in.

Useful for when desktop "freezes" or you have artifacts (see Macbook) and don't want to kill off background processes.

1. Open up term app

2. ps -aux|grep Graphics

3. Find the following:
windowse 52 0.9 5.6 915688 57592 ?? Ss 11:02AM 0:20.62 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/WindowServer -daemon

4. then HUP the found process:
sudo kill -HUP 52

52 is the process id tht I found. Yours will be different.

This will restart the GUI, logging you out, but at least you won't have to reboot the whole machine.

Monday, September 04, 2006

The Apple Doesn't Fall Far From The Tree...

Today I have shed tears of joy.

My beautiful and wonderful daughter (Shyanna) of 13 years, came up to me today and said the following:

"Daddy, my laptop is dead again. I just get this blue screen that says "Fatal Error" and a bunch of numbers on it."

To which, I asked:
"Did you try rebooting it into "Safe Mode"?"

"Yes Daddy. And it's still broke! Can you just put Linux or something on it? I am so sick of Windows."

I almost fell-over!

So, tomorrow, my brilliant daughter will be running the latest version of Kubuntu :-)

Sunday, September 03, 2006

Veritas Cluster GUI 4.x in OSX howto

I hacked this together, so I can run the VCS cluster GUI on my Mac, instead of relying on Winbloze. I am almost ready to dump MicroCrap altogether! :-)

I'll be working on the VEA gui, later.

While I prefer command-line, sometimes a GUI is still nice. Especially, in a complex cluster arrangement, such as the one I admin.





Veritas Cluster Manager 4.x in Mac OS X


Configuring the Veritas Cluster Manager to use the Mac OS X using OS X native Java.

1- Copy the Veritas GUI from server (/opt/VRTSvcs/gui) to a location of choice on your Mac.
2- Edit hagui script (this script, below) to reflect the location of VRTSvcs and the path to your JAVA Home
3- Open a terminal and run /path/to/VRTSvcs/hagui

The following is a copy of the modified hagui script (modify to your liking):
**************************************************************
#!/bin/sh
#
# START COPYRIGHT-NOTICE: 1998, 2003
#
# Copyright 1998, 2003 VERITAS Software Corporation.
# All rights reserved.
#
# VERITAS, VERITAS SOFTWARE, the VERITAS logo and all other VERITAS
# product names and slogans are trademarks or registered trademarks
# of VERITAS Software Corporation in the USA and/or other countries.
# Other product names and/or slogans mentioned herein may be trade-
# marks or registered trademarks of their respective companies.
#
# END COPYRIGHT-NOTICE.
#

# change the environment's classpath and
# java_home
#unset JAVA_HOME
#unset CLASSPATH
PATH=".:$PATH"
export PATH

#VCS_HOME="/opt/VRTSvcs"
VCS_HOME="/Users/wallen/VRTSvcs"

#JAVA_HOME=$VCS_HOME/gui/jre
LIB_PATH=$VCS_HOME/gui/lib
LANG_PATH=$VCS_HOME/gui/lang

LD_LIBRARY_PATH=$LIB_PATH
export LD_LIBRARY_PATH

BCLASSPATH=${LANG_PATH}:${LIB_PATH}/VCSGui.jar:${LIB_PATH}/gui_images.jar:${LIB_PATH}/sounds.jar:${LIB_PATH}/VxHelpViewer.jar:${LIB_PATH}/VxHelpViewerl10n.jar

DEBUG=0
if [ "$1" = "-D" ] ; then
DEBUG=1
shift 1
fi

if [ "$#" = 0 ] ; then
if [ "$CSGA_DIR" = "" ] ; then
CONF_PATH=$VCS_HOME/gui/
else
CONF_PATH=$CSGA_DIR
fi
elif [ "$#" = 1 ] ; then
CONF_PATH=$*
shift 1
elif [ "$#" -gt 1 ] ; then
if [ -d "$1" ] ; then
CONF_PATH=$1
shift 1
elif [ "$1" != "-h" ] && [ "$1" != "-p" ] ; then
echo "$1: configuration directory doesn't exist."
exit 1
fi
else
echo "$SELFNAME: configuration directory is incorrect!"
exit 1
fi


CLASSPATH=${CONF_PATH}:$BCLASSPATH:$JAVA_HOME/lib/rt.jar:$JAVA_HOME/lib/i18n.jar
export CLASSPATH

if [ $DEBUG = 0 ] ; then
exec $JAVA_HOME/bin/java -Dbase.dir="/opt/VRTSvcs/gui" -classpath $CLASSPATH -mx128m VCSGui $* > /dev/null
else
exec $JAVA_HOME/bin/java -Dbase.dir="/opt/VRTSvcs/gui" -classpath $CLASSPATH -mx128m VCSGui $*
fi