Archive | July, 2007

Startx CentOS 4.4 Vmware

3 Jul

To get the xserver running on CentOS4.4 inside VMWare

I needed to yum install: openmotif, xorg-x11, xorg-x11-twm (or i got “failed to set up write-combining range” error)

You can probably get around all this pain by doing

 $> yum groupinstall "X Window System" "KDE (K Desktop Environment)"

DB2

2 Jul

CentOS4.4.
DB2v9 install:
I needed to install X on CentOS so I could get vmtools going:
– Need to install X-org and Kernel sources (for vmtools)

– For the GUI to work you need to install openmotif
– Probably need to install compat-libstdc++-33-3.2.3-47.3 and compat-db-4.1.25-9

Information Server Install

2 Jul

On RHEL4/CentOS 4.4 – clean VM install.

I was receiving an error when trying to install IBM Information Server v8.0.1 when it was doing the setup – i.e. the setup wizard itself was crashing out.

It was some sort of NullPointerException during the console install (./install -console) – and it was recorded in /tmp/ibm_is_logs/servicesbackbone_install.log.

I found out it was because i didn’t have the correct library installed:

  $> yum install compat-libstdc++-33-3.2.3-47.3
  $> yum install compat-db-4.1.25-9

The the install got further … 🙂

—————————————————————————————
CentOS4.4

– make sure you have space. You probably need a couple of gig free on ‘/’
and also 5+ gig free on /opt

– install the following packages for GUI setup
openmotif, xorg-x11, xorg-x11-twm

– install the following packages for DB2/Information Server:
compat-libstdc++-33-3.2.3-47.3, compat-db-4.1.25-9

– if in VM,
– install VMWare tools
– install Networking
– startX

– i’d recommend setting up a proper hostname for your VM (/etc/hosts)

– install DB2 v9
– follow the instructions at xxx to create the users and things
– Login as the DB2 user and do database stuff:
$> su – db2inst1
$> db2start
$> db2
db2> create database xmeta
db2> connect to xmeta
db2> grant DBADM on database to user xmeta
db2> quit

– Create the xmeta user on the Linux system and set a password

– install Information Server v8.0.1
– I selected all options except “Information Analyzer” which was
causing problems.
– I also said that users were to be authenticated from the OS
(they can be authenticated against the Meta?? Repository)
– This means when I create users from the ‘Information Server’ web
console, i also have to add them to the OS as a normal user.
NOTE: you have to add the user with the same primary group as the
DataStage install (‘dstage’ in my case). To do this, do a
$> usermod -g dstage

If you don’t do this you will receive the following error when
trying to login to the Windows Clients:
“DSR.ADMIN: Failed to add user to UV_USERS file.”

– If there are errors on install the installer will try to roll back
it is likely that it will leave cruft in /opt/IBM/InformationServer
– this will need to be deleted if you are going to try installing it
again in the same spot.

– once it is up and running go to it in Internet Explorer: http://:8090/
I messed up (didn’t set /etc/hosts properly) and the hostname on the server
was ‘localhost.localdomain’. To get around this i added ‘localhost.localdomain’
to my Windows hosts file.

– i added init scripts for db2 and WAS:
/etc/init.d/db2:
################################################################################
#!/bin/sh
#
# chkconfig: – 78 12
# description: Starts and stops the Samba smbd and nmbd daemons \
# used to provide SMB network services.
#

#!/bin/sh

case “$1″ in
start)
/opt/ibm/db2/V9.1/instance/db2istrt
;;
stop)
kill -9 `ps -efa | grep db2wdog | grep -v grep | cut -c10-15`
;;
*)
echo $”Usage: $0 {start|stop}”
exit 1
esac

exit 0

################################################################################
/etc/init.d/wasserver:
#!/bin/bash
#
# /etc/rc.d/init.d/wasserver
#
# Starts the WebSphere Application Server
#
# chkconfig: 345 88 57
# description: Runs WAS Server

. /etc/init.d/functions
# Source function library.

PATH=/usr/bin:/bin:/opt/IBM/WebSphere/AppServer/bin
WASSERVERS=”server1″
#======================================================================
SU=”sh”
#======================================================================
start() {
for wasserver in $WASSERVERS ; do
export wasserver
echo “$0: starting websphere application server $wasserver”
$SU -c “startServer.sh $wasserver”
done
}
#==============================================================================
stop() {
for wasserver in $WASSERVERS ; do
export wasserver
echo “$0: stopping websphere application server $wasserver”
$SU -c “stopServer.sh $wasserver -user wasadmin -password password”
done
}

case $1 in
‘start’)
start
;;
‘stop’)
stop
;;
‘restart’)
stop
start
;;
*)
esac
################################################################################
Add these to startup (in RH) using chkconfig.