Archive for the ‘Linux’ Category

RQM on 64bit Ubuntu

Sunday, February 7th, 2010

I installed IBM Rational Quality Manager on the same machine as I installed Rational Requirements Composer before. Some steps from installation tips may be needed.

The official product documentation does not give the exact DB2 command line command. If you use the command from RTC manual, the table creation will fail. This is caused by the pagesize being too small. Use this command to create the database instead:

db2 create database RQM using codeset UTF-8 territory en PAGESIZE 16384

RRC on 64bit Ubuntu

Saturday, February 6th, 2010

Another post, where the main audience is me :)


To install IBM Rational Requirements Composer on 64bit Linux, you need 32bit libraries installed. Strange error message is displayed otherwise when trying to run the installer:

root@rtc:/opt/rrc-install/RRCS_SETUP/InstallerImage_linux# ./install
bash: ./install: No such file or directory

To install the needed libraries run:

apt-get install ia32-libs

The installation should run successfully after this.


RRC needs swt-gtk to run. Install it by:

apt-get install libswt-gtk-3.4-jni

In addition, RRC needs a X screen to start. There is an IBM Technote with solution for RHEL and Suse. To install Xvfb on Ubuntu do:

apt-get install xvfb

The rest of the procedure (starting the server) is the same as on RHEL or SLES (see the technote).

The server is started by server.startup. This script has to be called from its directory – you need to cd first. The init script can look for example like this:

# rrc        Startup script for the RRC
# chkconfig: - 90 16
# description: Rational Requirements composer  \
# processname: java
# pidfile: /var/run/


start() {
        echo -n $"Starting $prog: "
        # export GTK_PATH=/usr/lib32/gtk-2.0
        Xvfb :1 -screen 0 800x600x24&
        cd ${rrchome}
        DISPLAY=localhost:1.0 ./server.startup
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL

stop() {
        echo -n $"Stopping $prog: "
        killall Xvfb
        [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}

# See how we were called.
case "$1" in
        status $prog
        echo $"Usage: $prog {start|stop|restart}"

exit $RETVAL

OS details: Ubuntu 9.04, Server edition, 64bit

RTC 2.0 on Ubuntu

Saturday, October 31st, 2009


  • RTC Server version:
  • OS: Ubuntu 9.04, 64bit. Server edition
  • HW: VMWare guest, 64bit, 1GB RAM


Installation of Rational Team Concert is in general as easy as unzipping the downloaded archive. I did this recently on Ubuntu 9.04 64bit, server edition. Later I have encountered errors when generating any report (for example Floating License Report). I got this message:


The post at forums suggested, that there are missing libraries required by file */jazz/server/jre/bin/­libfontmanager­.so You can find out which libraries are missing by running

ldd jazz/server/jre/bin/­libfontmanager­.so

My output was: =>  (0x00007fff5efad000) => /lib/ (0x00007fc04eed9000) => /lib/ (0x00007fc04ecbd000) => not found => not found => not found => /lib/ (0x00007fc04ea36000) => /usr/lib/ (0x00007fc04e72f000) => /lib/ (0x00007fc04e3bd000)
/lib64/ (0x00007fc04f26f000) => /usr/lib/ (0x00007fc04e1a0000) => /usr/lib/ (0x00007fc04df9d000) => /usr/lib/ (0x00007fc04dd98000)


The system library that was missing in my system (using default installation of Ubuntu 9.04 64bit, Server edition) was This library is included in the package libstdc++5. It can be installed by running:

apt-get install libstdc++5

The RTC server has to be restarted afterwards.

jazz/server/ser­ver.shutdown jazz/server/ser­ver.startup

Ubuntu: change default encryption algorithm

Sunday, July 12th, 2009

While fighting with DB2 denying logins I had to change the default hash algorithm used to store passwords in /etc/shadow.

As far as I know (and as grep -i -r "sha512" /etc/* tells me :-) ), there are two files that carry this information. Namely /etc/pam.d/common-password and /etc/login.defs.

To change the algorithm from sha512 (which shifts as the default in the new Ubuntu releases) change this:


password [success=1 default=ignore] obscure sha512


password [success=1 default=ignore] obscure md5





HOWTO: add disk to VMware Ubuntu guest without reboot using LVM

Friday, July 10th, 2009

This howto is mostly built on the great tutorial available at…hout-reboot/. My spot tries to be more Ubuntu and LVM specific. This manual was tested on Ubuntu 9.04 (jaunty) Server edition guest OS.

Add Virtual Hard Disk

add-disk1 A new hard disk can be added easily to a running virtual machine in VMWare Infrastructure Web Access by clicking Add Hardware and following the wizard.

Note: I assume that all of the commands given are run under superuser (root) rights. To become root type

sudo su root

Detect new SCSI Disk

The package scsitools provides the script, which does exacly what we need. Install it and run it:

apt-get install scsitools

This should detect the newly added hard disk and make it available in /dev/ – /dev/sdb in the case you are adding a new drive for the first time. The output of fdisk -l should include the newly detected disk.

Format the new disk

Format the newly detected drive using fdisk

fdisk /dev/sdb
    n (for new partition)
    p (for primary partition)
    1 (partition number)
    (keep the other values default)
    w (write changes)

Change the type of the partition to LVM Linux:

fdisk /dev/sdb
    t (change the partition type)
    8e (for Linux LVM)
    w (write changes)


Initialize LVM Physical Volume

pvcreate /dev/sdb1

Add Physical Volume to Volume Group

List the Volume groups available at your machine.


Replace VolGroupName with what you read from the output of the last command.

vgextend VolGroupName /dev/sdb1

You should see the newly aquired free space in the output of


Resize Logical Volumes

After adding some free space to your Volume Group, you can distribute it to the Logical Volumes. The list of Logical Volumes can be obtained by running


Run the following commands for each Logical Volume you want to resize (add space to). Again – replace /dev/VolGroupNa­me/Name with the Logical Volume name you can read from the output of the last command. The +10G means Add 10 GB

lvextend -L +10G /dev/VolGroupName/Name

The last step is to resize the ext3 filesystem (use different tool is you use different filesystem):

resize2fs /dev/VolGroupName/Name

Shibboleth Ubuntu

Tuesday, June 23rd, 2009

SP2 Installation

I switched one server from Fedora Core to Ubuntu yesterday. Shibboleth 2 SP installation is a bit more tricky under Ubuntu than Fedora Core. The packages are not available in the Ubuntu repositories, but Satya's blog serves a working howto.

failed to bind to socket

Shibboleth seemed to be working well after installation, but today it was down dumping

2009–06–23 12:51:53 ERROR Shibboleth.Listener : socket call resulted in error (2): no message 2009–06–23 12:51:53 CRIT Shibboleth.Listener : failed to bind to socket.

into the /var/log/shibboleth/shibd.log. I luckily found a solution in quite a short time. The problem was that the shibd was trying to create socket in /var/run/shibboleth directory, which did not exist. Creating it once does not help because Ubuntu removes content of /var/run/ at every reboot. To fix it this has to be added to /etc/init.d/shibd

if [ ! -e /var/run/shibboleth ]
   mkdir /var/run/shibboleth

Debian Lenny VIM broken dependency

Saturday, June 28th, 2008

Today I ran apt-get update && apt-get dist-upgrade on my Debian Lenny installed on WD MyBook as I ussually do. It removed VIM (I let it as I thought it was just replaced by another package). I tried to run vim after the upgrade but it was really uninstalled. Trying to install it again by apt-get install I got

The following packages have unmet dependencies:
  vim: Depends: vim-runtime (= 1:7.1.293-3)
         but 1:7.1.293-3+lenny1 is to be installed
E: Broken packages

I tried to uninstall vim-runtime. It didn't help. I don't have time to solve it now so I can't give a solution. If you encountered the same problem and have a solution to this problem, I'd really appretiate your comment.

It's quite sad that Debian repository is not consistent and one gets errors using apt-get.

nice apt-get

Saturday, April 5th, 2008

Today I wanted to upgrade packages at my WD MyBook running Debian Lenny. My notebook was being backed up at the time so I thought that it would be a good idea to run apt-get with a lower priority, as the the samba process eats almost all MyBook resources.

I typed nice apt-get update && nice apt-get upgrade. It did what I wanted it to do, but hour later I found that apache and samba were running with low priority. This is because the services were restarted by apt-get.

Having been reniced, all the services are running OK again.