Thursday, 17 May 2012

CentOS: Enable CentOS GNOME Desktop

Mostly the CentOS servers that I am using is run on CLI (Command-Line Interface) mode. But in some cases, I need to have a desktop to install some applications with GUI (Grapich User Interface) mode. In this case, I will use GNOME, the most popular user-friendly desktop for any UNIX based system.
Variable that I used as below:
OS: CentOS 6.2 64bit
Desktop environment: GNOME
1. To add Gnome/GUI to a minimal CentOS 6 install run
 (short name version):
yum groupinstall basic-desktop desktop-platform x11 fonts
Or for the “long name” version:
yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"

2. Since previously the server is running on CLI mode, we need to change some value to tell CentOS to boot up in the GUI mode. Open /etc/inittab via text editor and change following line:
3. Reboot:
$ init 6
Note: You can switch from GUI to CLI mode manually by using following method:
GUI to CLI: Ctrl + Alt + F6
CLI to GUI: Ctrl + Alt + F1
If you want to start the desktop from CLI console (not SSH session), use following command:
$ startx
In some cases, when you login into the system via GUI, you will see some kind of weird boxes replacing the fonts. You can overcome this problem by installing fonts group via yum:
$ yum groupinstall -y fonts
Done! We now have user-friendly interface like below:

Thursday, 10 May 2012

Goldengate 11g :: ggsci: error while loading shared libraries: cannot open shared object file

GoldenGate !!

[oracle@oralinux ggs_src]$ ./ggsci 

./ggsci: error while loading shared libraries: cannot open shared object file: No such file or directory

-- for 11g ---
[oracle@oralinux ggs_src]$ ln -s /u01/app/oracle/product/11.2.0/dbhome_1/lib/
[oracle@oralinux ggs_src]$ ln -s /u01/app/oracle/product/11.2.0/dbhome_1/lib/
-- for 10g ----

[oracle@oralinux ggs_src]$ ln -s /u01/app/oracle/product/
[oracle@oralinux ggs_src]$ ln -s /u01/app/oracle/product/

[oracle@oralinux ggs_src]$ ./ggsci 

Oracle GoldenGate Command Interpreter for Oracle
Version OGGCORE_11. 
Linux, x86, 32bit (optimized), Oracle 11g on Oct  4 2011 23:53:33

Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.

GGSCI ( 1> exit

done !!