Thursday, October 29, 2009

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

  1. Go to 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.

Tuesday, October 27, 2009

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

prtconf | grep -i proc

Thursday, October 22, 2009

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

Wednesday, October 21, 2009

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

Saturday, October 17, 2009

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.

Sunday, October 4, 2009

Firefox + Adblock Plus + Java Plugin Crash Problem Solution

At last, my firefox setup is perfected: (Source: https://adblockplus.org/forum/viewtopic.php?t=4422)

This issue was SOLVED here,
comment #6 at https://bugzilla.mozilla.org/show_bug.cgi?id=501173#c6.

Change the plugin firefox uses for java, from libjavaplugin_oji.so to libnpjp2.so.
Done.

For a system wide change:
Code: Select all
# rm /usr/lib/firefox/plugins/libjavaplugin_oji.so # ln -s /usr/lib/java/jre/lib/i386/libnpjp2.so /usr/lib/firefox/plugins/

Saturday, October 3, 2009

Unix Terminal shortcuts

On Unix-like systems, most of us use shell to do much of daily tasks, and we use terminal to issue commands.
These terminals may be from a Unix system such as gnome-terminal, Konsol or througt MS-WINDOWS such as butty or F-Secure.
This article is to enhance your productivity while using termianl by providing you with shourtcuts to access some features, and here's these shortcuts:

CTRL+c : close the current line and moves you to the start of the prompt.
CTRL+a : moves you to the start of the current line
CTRL+e : moves you to the end of the current line
CTRL+d : delete the character under cursor
CTRL+r : allows you to search history for a command while typing
CTRL+j : the same as pressing the Enter key
CTRL+k : delete text until the end of the line
CTRL+l : equals issuing the 'clear' command
CTRL+z : suspend the current job
CTRL+w : removes words from the screen and history as well
CTRL+INSERT : copy the selected text
SHIFT+INSERT : paste the copied
ESC+backspace : remove characters starting from the character under the cursor backword until first space character
ESC+d : remove characters starting from the character under the cursor forward to the first space character
ESC+l : jumps your cursor forward to the first space character
ESC+b : jumps your cursor back to the first space character

please if any knows more, put in the comment.