Part 4 - Configure Node: oralin11




Architecture


Node: oralin11



Configure PuTTY and Connect 


Enter: Host Name:127.0.0.1, Port:5011, Select SSH and Click Open button

Accept PuTTY Security Alert

Enter root as login, and tototo as password


Each time you see:
 [root@oralin11 ~]#

This is here just to tell you to use a connection with user root to oralin11. 
You have to "Copy and Paste" following lines in connection window.


Installation of VirtualBox Extensions


Install Missing Packages from CDROM

Insert Oracle Linux ISO in Virtual Drive

Create Yum Repo

[root@oralin11 ~]# 

cat >/etc/yum.repos.d/media.repo <<-EOF
[media]
name=media
baseurl=file:///misc/cd
gpgcheck=0
enabled=0
EOF

Install Missing Package

[root@oralin11 ~]# 

yum install --enablerepo=media -y kernel-uek-devel gcc pam-devel glibc.i686 libgcc.i686

Unmount CDROM

[root@oralin11 ~]# 

umount /dev/cdrom

Select "Remove disk from virtual drive"



Install VirtualBox Extensions

Select "Install Guest Additions..."


Launch installation from CDROM

[root@oralin11 ~]# 

/misc/cd/VBoxLinuxAdditions.run

this is normal: 
Installing the Window System drivers                       [FAILED]


Configure oralin11


Configure kernel

[root@oralin11 ~]# 

/sbin/sysctl -w kernel.shmmax=1073741824 >>/etc/sysctl.conf 
/sbin/sysctl -w kernel.shmall=1073741824 >>/etc/sysctl.conf 
/sbin/sysctl -w kernel.randomize_va_space=0 >>/etc/sysctl.conf 
/sbin/sysctl -p

Stop Useless Services

[root@oralin11 ~]# 

for s in iptables ip6tables postfix rhnsd; do
chkconfig $s off
service $s stop
done

Disable secure linux

[root@oralin11 ~]# 

sed -i 's/^SELINUX=.*$/SELINUX=disabled/' /etc/sysconfig/selinux

Finalize Network

Suppress NM_CONTROLLED, HWADDR and UUID informations in network config

[root@oralin11 ~]# 

sed -i '/^NM_CONTROLLED\|HWADDR\|UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i '/^NM_CONTROLLED\|HWADDR\|UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth1

Add hosts

[root@oralin11 ~]# 

cat >>/etc/hosts <<-EOF
# external networks (NAT)
10.0.2.11 oralin11ext 
# internal networks
10.1.0.11 oralin11 
EOF

Add Sybase User/Group

Create a group and a user "sybase" with password "tototo"

[root@oralin11 ~]# 

/usr/sbin/groupadd -g 1500 sybase

/usr/sbin/useradd -d /opt/sybase -M -g sybase -G vboxsf -u 1500 -p '$1$gB9nJP0X$Hrj.Yr4Sd9LX8S.lbid5q1' sybase

cat >/opt/sybase/.bash_profile <<EOF
#! /bin/bash
[ -f .bashrc ] && . .bashrc || . /etc/bashrc
export SYBASE=/opt/sybase
[ -f \$SYBASE/SYBASE.sh ] && . \$SYBASE/SYBASE.sh
EOF

chown -R sybase:sybase /opt/sybase

Restart

[root@oralin11 ~]# 

init 6