June 23 2014

How to get the Informix instance IPC shared memory segment base address in Hexadecimal?

Tagged Under : , , ,

(1) Get SERVERNUM value from onconfig:

$ onstat -c | grep SERVERNUM
SERVERNUM 2

(2) Convert SERVERNUM value from Decimal (base10) to Hexadecimal (base16):

Decimal 2 = Hex 2
= 0x2

Note: you may use ms-windows β€œcalc” programmer view.

(3) Apply this fomular with Hexadecimal calculation:

IPC Shared Mem Address = (SERVERNUM_In_Hex * 0x10000) + 0x52564801
= (0x2 * 0x10000) + 0x52564801
= 0x20000 + 0x52564801
= 0x52584801

(4) Therefore, you will get the IPC shared memory address started from 0x52584801..

$ ipcs -m | grep 5258480

key shmid owner perms bytes nattch status
0x52584801 92864520 root 660 2606284800 68 locked
0x52584802 92897299 root 660 2097152000 68 locked
0x52584803 92930070 root 666 561152 68

January 12 2014

Ubuntu – How to install InstanceBird in Linux (x86)

Tagged Under : , ,

I can’t find any official repository to install InstanceBird with “apg-get install” in ubuntu. There is a manual way to install InstanceBird 1.4 (32-bit) in x86 base Linux like Ubuntu, Debian, Centos, Fedora and etc .. Please download the pre-compiled binary as below:

To install:

$ cd /tmp
$ wget -c www.instantbird.com/downloads/1.4/instantbird-1.4.en-US.linux-i686.tar.bz2
$ sudo mv instantbird /opt/instantbird
$ sudo chmod -R 755 /opt/instantbird
$ sudo chown -R : /opt/instantbird
$ wget -c http://dl.dropbox.com/u/964512/misc/instantbird.desktop
$ sudo mv instantbird.desktop /usr/share/applications/instantbird.desktop

Then, launch instancebird πŸ™‚

$ /opt/instantbird/instantbird &

To uninstall or remove InstanceBird, just remove the whole dir of instancebird:

$ sudo rm -rf /opt/instantbird
$ sudo rm /usr/share/applications/instantbird.desktop

December 25 2013

Ubuntu 13.10 – How to configure Chinese Input Method?

Tagged Under : , , ,

Ubuntu 13.10 – How to configure Chinese Input Method?

(1) Download & install required packages:

Goto “System Settings”
> “Language Support”
> “Install / Remove Languages”
> “Chinese (simplified)” or other Chinese options. It will take some times to download & install relevant packages.
> Choose “IBus” at “Keyboard input method system”
> Click “close”

(2) Configure Input Methods:
Choose “Text Entry” at “System Settings”