this is obsolete doc -- see http://doc.nethence.com/ instead

Redhat 6.2 installation and configuration 

Please note this guide is about the legacy Red Hat Linux, not RHEL 6.2 ! 

 

http://pbraun.nethence.com/doc/sysutils_linux/redhat62.html 

http://pbraun.nethence.com/oracle/oracle8i.html 

 

Download 

ftp://archive.download.redhat.com/pub/redhat/linux/6.2/en/iso/i386/ 

ftp://archive.download.redhat.com:/pub/redhat/linux/updates/6.2/en/os/ 

 

Warning 

You might encounter this error during the the installation, 

Exception Occurred:
Traceback (innermost last):
File "/usr/bin/anaconda.real", line 342, in ?
     intfirun (todo.test = test)
[...]

that's because Redhat 6.2 doesn't support the Pentium 4 and recent AMD (here Phenom II) processors, even as vmware server 1.x or XEN-HVM guest. So either install the guest on a CPU that won't crash it (works e.g. with Intel Core 2 Duo) or prepare an alternate ISO image, 

mkdir zoot-i386/
mount -o loop zoot-i386.iso zoot-i386/
cp -R zoot-i386/ zoot-rpmrcfix/
cd zoot-rpmrcfix/
cd RedHat/instimage/usr/lib/rpm/
mv rpmrc rpmrc.dist
sed 's/i786/i?86/g' rpmrc.dist > rpmrc
ls -l rpmrc*
cd ../../../../../
mkisofs -J -r -b images/boot.img -o ../zoot-rpmrcfix.iso .
cd ../
umount zoot-i386/
rmdir zoot-i386/

Note. in that case you'll have to add --ignorearch arfterwards 

Note. in that case you could also use bootnet.img and proceed with an NFS installation 

Note. there's also a vmware appliance by torrent (http://www.lxpro.com/vmware/readme.txt) 

Refs. 

http://www.vmware.com/support/ws3/doc/ws32_guestos21.html 

http://www.lxpro.com/vmware/readme.txt 

 

Installation 

To install with text mode, enter this at the CDrom bootloader prompt, 

text

then, 

English
fr-latin-1 (unless you're using an XEN-HVM and accessing the console through VNC in which cas you should use 'us' even for non english keyboards)
Install custom system
fdisk
/dev/sda - edit
  o
  n p 1 (default) +100M (/boot)
  (toggle bootable flag on)
  n p 2 (default) +1024M (swap)
  t 2 82
  n p 3 (default) +7000M (/)
  n p 4 (default) (default)
  w
then diskdruid permits you to define the mount points
uncheck lilo configuration > use linear mode (linear sector addresses instead of sector/head/cylinder addresses, not recommended for large disks)
hostname : oracle8i.example.net
hardware clock is set to UTC
skip the user creation step (just check OK while the fields are empty)
package group selection: uncheck everything (oracle required packages will be installed later)

 

Post-installation 

First, we need a remote shell, so install rlogin, 

cd /mnt/
mount cdrom/
cd cdrom/Redhat/RPMS/
rpm -ivh \
inetd... \
tcp_wrappers... \
rsh-0... \
rsh-server...

enable the inet daemon, 

cd /etc/
ln -s rc.d/init.d
init.d/inet start

create some user to connect through telnet (root is always denied), 

useradd -m USERNAME
passwd USERNAME

 

Connect through rlogin (e.g. with PuTTY) as user and switch to root, 

su -

 

Install a few other packages (wu-ftpd, iputils, screen) and unmount the cdrom, 

cd /mnt/cdrom/RedHat/RPMS/
rpm -ivh \
wu-ftpd-2.6.0-3.i386.rpm \
perl-5.00503-10.i386.rpm \
tcsh-6.09-4.i386.rpm \
iputils-20000121-2.i386.rpm \
screen-3.9.5-4.i386.rpm \
portmap-4.0-19.i386.rpm \
nfs-utils-0.1.6-2.i386.rpm \
traceroute-1.4a5-18.i386.rpm \
ncftp-3.0beta21-4.i386.rpm \
ftp-0.16-3.i386.rpm \
fwhois-1.00-12.i386.rpm \
unzip-5.40-2.i386.rpm \
lynx-2.8.3-2.i386.rpm \
indexhtml-6.2-1.noarch.rpm \
mc-4.5.42-10.i386.rpm

 

Disable the other undeeded daemons, 

cd /etc/
mv inetd.conf inetd.conf.dist
sed '/^#/d; /^$/d' inetd.conf.dist > inetd.conf
vi inetd.conf

change like (remove the other lines), 

ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd -l -a
login   stream  tcp     nowait  root    /usr/sbin/tcpd  in.rlogind

note. rlogin for remote logins is needed 

note. rsh for remote program execution isn't needed here 

and apply, 

rc.d/init.d/inet restart

 

Optimization and configuration 

Eventually proceed with your usual system configurations. Here's an example. 

 

Configure syslog, 

cd /etc/
mv syslog.conf syslog.conf.dist
cat > syslog.conf <<EOF9
*.* -/var/log/messages
EOF9
grep 503 /etc/group
echo 'wheel:x:503:oracle' >> /etc/group
chown root:wheel /var/log/messages
chmod 640 /var/log/messages
/etc/rc.d/init.d/syslog restart
sleep 1; logger check
tail /var/log/messages

 

Configure your environment, 

cd /etc/
vi bashrc

add, 

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$HOME/bin\
:/usr/X11R6/bin
export PATH

 

short=`hostname -s`
[ $USER = root ] && PS1='$short# ' || PS1='$short> '

 

alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
alias ll='ls -alkF'

apply, 

source bashrc

 

Finish up the network configuration, 

cd /etc
vi hosts

e.g., 

127.0.0.1               localhost.localdomain localhost
YOUR_IP           oracle8i.example.net oracle8i
GW_IP           gw.example.net gw
REMOTE_HOST_IP           heg.example.net heg

 

Configure GNU screen, 

cd /etc/
mv screenrc screenrc.dist
vi screenrc

like, 

startup_message off
caption always
bindkey ^[, prev
bindkey ^[; next

then, 

cd ~/
mv .screenrc .screenrc.dist
vi .screenrc

like e.g., 

screen -t log 0 tail -n 50 -f /var/log/messages

apply, 

screen

 

Make a file index, 

updatedb

 

Eventually install the 6.2 updates, 

#rpm -Uvh */*.rpm

 

Additional notes 

If you need to enable a full X11 environment (not just a client, but a full server), this might help, 

rpm -ivh \
wmconfig... \
fvwm2... \
fvwm2-icons... \
audiofile... \
esound... \
gnome-libs... \
gtk+... \
gnome-audio... \
ORBit... \
imlib... \
libjpeg-6b... \
libpng... \
libtiff... \
libgr-progs... \
libungif... \
libgr