How To Download and Use the latest stable version of Firefox (from www.firefox.com) in Ubuntu Jaunty

  1. Go to http://www.firefox.com and download the latest stable version available (3.5.4 right now)
  2. Decompress the file to any location you desire (/home/aamr/firefox in my case)
  3. Delete the symbolic link “/usr/bin/firefox-3.5.4”
  4. Create a new symbolic link to point to your newly downloaded firefox (you must use sudo or login as root): “sudo ln -s /home/aamr/firefox-3.5.4/firefox /usr/bin/firefox”

After I did this, I found out that my Java plugin is not there when I type “about:plugins”!!, I found that I should point to the java plugin from my newly installed firefox plugins folder (/home/aamr/firefox-3.5.4/plugins), so I created a symbolic link pointing to my Java plugin (after navigating to “/home/aamr/firefox-3.5.4/plugins”:

“ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so libnpjp2.so”

Restart firefox and you’re done.

Tagged , | Leave a comment

Get Processor Attributes in AIX 5.3 (Type, Count and Clock Speed)

prtconf | grep -i proc

Posted in Uncategorized | Tagged | Leave a comment

find files in ClearCase vobs by Issue number

IBM ClearCase is a Software Configuration Management tool used to keep concurrent versioning of the files (like CVS, SVN and others )

to find a particular files checked-in under certain issue use this command :
>VOBS=/path/to/ClearCaseVobs #vobs is the directories that keep the files in
>cd $VOBS
>for vob in * ;do cd $vob ; echo “***** $vob ******” ; ct find . -version ‘ISSUE==”EJBTHREE-1551″‘ -print; cd ../ ; done;

#this will list all file versions checked-in under EJBTHREE-1551
Tagged , | Leave a comment

Script to monitor a Filesystem on AIX

#!/bin/sh

# This script checks if the /siebel filesystem reaches 2 GB of free space
# And then delete the old logs except those of today

warninglimit=2097152    # This number is in KB, it’s equal to 2 GB,
                        # KB is used to avoid floating point numbers

filesystems=”/siebel”   # List of filesystems to be monitored, separated by
                        # blank spaces

for fs in $filesystems  # Loop on the list of filesystems above
do
        size=`df -k $fs|grep $fs|awk ‘{ print $3; }’`   # Extract size of
                                                        # Filesystem in KB
        if [ $size -le $warninglimit ]  # If fs size is less than warning lim.
        then
                echo “WARNING: Low disk space for $fs ($size)”
                # Add what to delete here
        fi
done

Tagged , , | 1 Comment

How To Compile and Install Tora 2.1 with Oracle Support on Ubuntu Jaunty

  1. sudo apt-get build-dep tora
  2. sudo apt-get install libqscintilla2-dev
  3. Download instant client of Oracle Database (all zip files and extract them to one folder)
  4. ./configure –with-instant-client=PATH_TO_YOUR_INSTANT_CLIENT_FOLDER
  5. Follow the instructions – if any – and complete any missing steps
  6. make
  7. sudo make install

If you have any questions, please don’t hesitate to ask here.

Tagged , , , | Leave a comment