Installing VirtualBox guest additions on CentOS or RHEL

Process is very simple

  1. Login as root
  2. Install dependencies # yum install gcc make kernel-headers kernel-devel
  3. Reboot for loading new kernel info if required and to be on safer side
  4. Use gmake instated of make #export MAKE=’/usr/bin/gmake -i’
  5. Insert guest additions CD
  6. goto installer # cd /media/VBOXADDITIONS*
  7. #./
  8. Reboot and enjoy

Installing Oracle 11G R2 on Cent OS 6.5 (x86-64)

Guide for Installing Oracle 11G R2 on CentOS

Pre-req: Cent OS 6.5 (x86-64)
disable selinux and iptables

Download: 11G R2 from

Update system control:
cat >> /etc/sysctl.conf <<EOF
fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
/sbin/sysctl -p

Required packages: Install by using yum
yum install binutils-2*x86_64* glibc-2*x86_64* nss-softokn-freebl-3*x86_64* glibc-2*i686* nss-softokn-freebl-3*i686* compat-libstdc++-33*x86_64* glibc-common-2*x86_64* glibc-devel-2*x86_64* glibc-devel-2*i686* glibc-headers-2*x86_64* elfutils-libelf-0*x86_64* elfutils-libelf-devel-0*x86_64* gcc-4*x86_64* gcc-c++-4*x86_64* ksh-*x86_64* libaio-0*x86_64* libaio-devel-0*x86_64* libaio-0*i686* libaio-devel-0*i686* libgcc-4*x86_64* libgcc-4*i686* libstdc++-4*x86_64* libstdc++-4*i686* libstdc++-devel-4*x86_64* make-3.81*x86_64* numactl-devel-2*x86_64* sysstat-9*x86_64* compat-libstdc++-33*i686* compat-libcap* unixODBC-2*i* unixODBC-2* unixODBC-d*-2*i* unixODBC-d*-2*

Create user and groups:
groupadd oinstall
groupadd dba
groupadd oper
groupadd asmadmin
useradd -g oinstall -G dba,oper,asmadmin oracle
passwd oracle

Create installation directory:
mkdir -p /u01/app/oracle
chown -R oracle:dba /u01/

Configure security limits:
cat >> /etc/security/limits.conf << EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240

IMP: Login as oracle user for all operations below

Configure directory path:
cat >> ~/.bash_profile << EOF
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

Unzip 11GR2: Unzip and in same folder.

Start installation: ~/database/runInstaller