1. Create instance from Google cloud with CentOS kernel.
2. Install pre-requirement packages
From users, we can install packages use command sudo yum install <package_name> or switch to root user and install use command: $sudo su –
# yum install xterm xorg-x11-twm *xorg*font* tigervnc-server
#yum install firefox xhost xclock
#yum install compat-db43 compat-db43-4.3.29-15.el6.i686
#yum install gcc gcc-c++ glibc-devel-2.12-1.107.el6_4.2.i686
#yum install libstdc libstdc++-devel libstdc++-devel-4.4.7-3.el6.i686
#yum install libXp libXp-1.0.0-15.1.el6.i686
#yum install libaio libaio-0.3.107-10.el6.i686 make gdbm gdbm-1.8.0-36.el6.i686
#yum install sysstat util-linux-ng
#yum install compat-libstdc++-33 compat-libstdc++-296 compat-libcap1
#yum install elfutils-libelf-devel libaio-devel
#yum install unixODBC unixODBC-2.2.14-12.el6_3.i686
#yum install unixODBC-devel unixODBC-devel-2.2.14-12.el6_3.i686
#yum install xorg-x11-utils ksh
#yum install libICE-1.0.6-1.el6.i686 libSM-1.2.1-2.el6.i686 libXt-1.1.3-1.el6.i686
#yum install libXtst-1.2.1-2.el6.i686
Update to latest CentOS version with
#yum update
Remove unzip version 6.0 and replace with unzip v5.52
#yum remove unzip
#mkdir /install
#cd /install
#wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/unzip-5.52-3.el5.x86_64.rpm
#rpm -ivh unzip-5.52-3.el5.x86_64.rpm
Download & install package from oracle requirement:
#wget https://oss.oracle.com/projects/compat-oracle/dist/files/Enterprise_Linux/openmotif21-2.1.30-11.EL6.i686.rpm
#wget https://oss.oracle.com/projects/compat-oracle/dist/files/Enterprise_Linux/xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm
#rpm -ivh openmotif21-2.1.30-11.EL6.i686.rpm xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm
Enable vncserver with xterm (please view in this post).
Reboot server
#reboot
3. Configure putty to connect vncserver over ssh
Default google compute cloud only open ssh port, vncserver is not encrypt data. To secure network, we will configure vncserver over ssh with putty tool.
3.1 Open putty
Enter public IP address to hostname (or IP address)
Enter port SSH (default is 22)
In Left windows, select Connection-> SSH -> X11
Check to Enable X11 forwarding
Enter localhost:0 to X display location.
In the left windows, click to Tunnels
In Add new forward port:
Enter Source port: 5901
Enter Destination: localhost:5901
Click to Session, Enter any name in Saved sessions, click to save button.
Open putty, connect to server.
Start vncviewer on your laptop or desktop, then connect to server vnc with:
localhost:1
Done.
3. Add swap for google cloud compute: Default google cloud compute instance does not enable swap. We will enable swap on.
$sudo dd if=/dev/zero of=/swapfile bs=1024 count=1024k
$sudo mkswap /swapfile
$sudo swapon /swapfile
$swapon -s
$sudo vi /etc/fstab
/swapfile swap swap defaults 0 0
Filename Type Size Used Priority
/swapfile file 1048572 0 -1
3. Edit hosts file, add more lines with same IP.
$sudo vi /etc/hosts
127.0.0.1 localhost
169.254.169.254 metadata.google.internal metadata
10.240.XXX.XX hostname.yourdomain #Line add
10.240.XXX.XX hostname default created by GG # Added by Google
4. Install Oracle database 11gR2 (11.2.0.3) or Clone database EBS R12 follow oracle guide.