How to swap the Caps Lock and Control keys on Solaris 10

  1. Edit the ~/.xmodmap file.
    Add the following lines to the file.
    remove Lock = Caps_Lock
    remove Control = Control_L
    keysym Control_L = Caps_Lock
    keysym Caps_Lock = Control_L
    add Lock = Caps_Lock
    add Control = Control_L
  2. Edit the ~/.dtprofile file.
    Add the following lines to the file.
    if [ -f ~/.xmodmaprc ] ; then
    /usr/openwin/bin/xmodmap ~/.xmodmaprc
    fi

Solaris Crash Analysis Tool 5.1 GA

Solaris Crash Analysis Tool (Solaris CAT) 5.1 is released. You can download it from the SUN download site. Also you can read the release notes on this page.

How to check your PostgreSQL version


  1. Log in to your system

  2. Switch to 'root' or a database admin user
    $ su -

  3. Issue the following command
    # psql -V

    or
    # psql --version

Allowed memory size of 8388608 bytes exhausted on RHEL 5

When I tried to install the Fileinfo module from the PECL site, I got the following error message.

$ pecl -v install fileinfo
(snip)
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 143 bytes) in /usr/share/pear/PEAR/PackageFile/v2.php on line 1140

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 100 bytes) in /usr/share/pear/PEAR.php on line 765


Even though I set the memory_limit variable to 32M which is over 8M!

$ php -i | grep memory_limit
memory_limit => 32M => 32M


Here is a workaround for this issue.

Insert the following line to the /usr/share/pear/pearcmd.php file.
@ini_set('memory_limit', '32M');


Then, run the pecl command again. Now you can install the module without the above error message :-)

Good Bye, Folks!

As you may have heard, Fujitsu has completely discontinued Data Center Products and Solutions business in North America on April 1st, 2021. ...