Ban8post

From My Admin Page
Jump to: navigation, search

To be fixed later.....

Here is your OS setup for RHEL 5 / Bnr 8.
Run this script (after updating the UID's, etc.)



#!/bin/bash

echo "#kernel.shmall = 2097152" >> /etc/sysctl.conf 
echo "#kernel.shmmax = 2147483648" >> /etc/sysctl.conf 
echo "kernel.shmmni = 4096" >> /etc/sysctl.conf 
echo "# semaphores: semmsl, semmns, semopm, semmni" >> /etc/sysctl.conf 
echo "kernel.sem = 250 32000 100 128" >> /etc/sysctl.conf 
echo "#fs.file-max = 65536" >> /etc/sysctl.conf 
echo "net.ipv4.ip_local_port_range = 1024 65000" >> /etc/sysctl.conf 
echo "net.core.rmem_default=262144" >> /etc/sysctl.conf 
echo "net.core.rmem_max=262144" >> /etc/sysctl.conf 
echo "net.core.wmem_default=262144" >> /etc/sysctl.conf 
echo "net.core.wmem_max=262144" >> /etc/sysctl.conf

/sbin/sysctl -p

echo "*               soft    nproc   2047"  >> /etc/security/limits.conf
echo "*               hard    nproc   16384" >> /etc/security/limits.conf
echo "*               soft    nofile  1024"  >> /etc/security/limits.conf
echo "*               hard    nofile  65536" >> /etc/security/limits.conf

echo "session    required     /lib/security/pam_limits.so" >> /etc/pam.d/login

echo ">>>>  SHOULD BE SELINUX=disabled  <<<<"
cat /etc/selinux/config | grep SELINUX=

yum install setarch-2*
yum install make-3*
yum install glibc-2*
yum install libaio-0*
yum install libaio-devel*
yum install compat-libstdc++-33-3*
yum install compat-gcc-34-3*
yum install compat-gcc-34-c++-3*
yum install gcc-4*
yum install libXp-1*
yum install openmotif-2*
yum install compat-db-4*
yum install glibc-devel*

# NOTE -- Set up your site's UID/GID here: 
groupadd -g 1000 oinstall 
groupadd -g 1001 dba 
groupadd -g 1002 oper 
groupadd -g 1003 banner 
useradd -g oinstall -G dba,banner -u 1000 oracle 
useradd -g banner -G oper,banner -u 1001 banner 
useradd -g banner -G oper,banner -u 1002 banjobs 
useradd -g banner -G oper,banner -u 1003 bantest

echo "Passwd these accounts:  oracle, banner, banjobs, bantest"
echo "Open up port 1523 on the host firewall for DBA access to the Database."