SLAC CPE Software Engineering Group
 

How to Install RHEL5-32


SLAC Detailed
SLAC Computing
Software Home
Software Detailed
 

15-Oct-2013


Basic OS Installation

Prerequisite - The system you are kickstarting needs to be on DMZ network so that it can access both SCCS NFS for RHEL5 image and our NFS for kickstart file (ks.cfg).

From Kickstart:

  1. Insert installation cd and when prompted:
    1. Type: linux ks=nfs:172.27.8.11:/export/mccfs/usr/local/admin/kickstart/ks.cfg (You still need to enter IP Address, Netmask, Default Gateway when prompted on the GUI Screen).
      • In case you want to make it quick and lcls-rhel5 is not in use, you can type like "linux ks=nfs:172.27.8.11:/export/mccfs/usr/local/admin/kickstart/ks.cfg ksdevice=eth0  ip=134.79.151.67 netmask=255.255.255.0 gateway=134.79.151.1

      This network information is needed to access our NFS for ks.cfg file initially.

      • Check for current kickstart file and modify name and/or IP Address if necessary
  2. Once completed skip to Once server is built

 

Without Kickstart:

This procedure is based on http://www.slac.stanford.edu/comp/unix/linux/install_RHEL5.html. We use lcls-dev1 as an example.

Configure TCP/IP

Only enable IPv4 support, and select Manual configuration
IPv4 address/prefix: 134.79.219.136/22

NFS Setup

 

 

172.23.16.97
/vol/vol1/g.scs.redhat/RedHat/RHEL5/5u7/i386

Installation Number

26e2a46326aee4a5


Disk Partition

Select Create custom layout
Delete all existing partitions and create new ones only on sda

 

/ ext3 20gb
swap swap 8gb
/var ext3 8gb
/usr/vice/cache ext3 2gb
/tmp ext3 8gb
/scswork ext3 1gb
/scratch ext3 remainder

GRUB: use the default
No "System clock uses UTC

Package selection

 

Select Customize now

  1. Desktop Environments
        GNOME and KDE
  2. Applications
    • Add Authoring and Publishing
    • Engineering and Scientific
    • Remove Games and Entertainment
  3. Development
        Add all
  4. Servers
        Default
  5. Base System
    • Select Legacy Software Support, press Optional packages and select all.
    • Add System Tools Open
    • Fabrics Enterprise Distribution
  6. Languages
        Default

Firewall: Diabled
SELinux: Disabled
Set uup software updates: No
Create User: none

Edit /etc/inittab and set to 3

run these commands to turn off unneeded processes:

chkconfig rhnsd off
chkconfig hidd off
chkconfig bluetooth off
chkconfig avahi-daemon off
chkconfig yum-updatesd off
chkconfig ip6tables off
service rhnsd stop
service hidd stop
service bluetooth stop
service avahi-daemon stop
service yum-updatesd stop
service ip6tables stop

 

 

Below is needed for buildeng motif-based applications such as EDM

libXp-devel-1.0.0-8.1.el5.i386.rpm                                                                     
openmotif-2.3.1-5.el5_6.2.i386.rpm                                                                     
openmotif-devel-2.3.1-5.el5_6.2.i386.rpm  

Once server is built:


Important

Before running YUM or Tayloring the system you must first update fstab and grub.conf


 

 

 

SCCS taylored machine:

 


Create /etc/taylor.opts

You can copy over a "like" servers taylor.opts file.  Here is the "default"  You can do a "man taylor.opts" for more information.

 

EX)

automounter=amd
workgroup=slc
usage=server

xdmcp=off
nolprng  *for DMZ servers only
linux_kernel=leavealone  *for DMZ servers only


     elinks -source http://www/comp/unix/linux/go-taylor | sh

OR

    wget -O- http://www.slac.stanford.edu/comp/unix/linux/go-taylor | sh

sudo yum check-update

sudo yum upgrade

Files to be edited/reviewed in case you are renaming server or changing it's IP Address.

Files to be edited/reviewed : /etc/sysconfig/network, /etc/sysconfig/network-scripts/ifcfg-*

Ensure that /etc/sysconfig/network file has all relevent entries.

Example -

$ cat /etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=facet-archapp
DOMAINNAME=slac.stanford.edu
GATEWAY=134.79.151.1
NISDOMAIN=slac.slac.stanford.edu

Private machine:

RHEL5 Setup: (Production)

Setup for RHN Satellite Server:

(port 443)

wget --no-check-certificate -O- https://satellite1.slac.stanford.edu/pub/bootstrap/bootstrap.sh | sh

yum check-update

yum -y update

 

Modify fstab & grub.conf

  1. Get rid of labels and UUIDs

 


USB Control  -For servers in the field

echo 'install usb-storage : ' >> /etc/modprobe.conf
reboot

To enable USB-storage:

From root:

locate usb-storage
/lib/modules/2.6.18-308.el5PAE/kernel/drivers/usb/storage/usb-storage.ko
/lib/modules/2.6.18-371.el5PAE/kernel/drivers/usb/storage/usb-storage.ko

insmod /lib/modules/2.6.18-371.el5PAE/kernel/drivers/usb/storage/usb-storage.ko

 


Printers:  CUPSInfo.html

 


FONT Installation:  To get the MSttcorefonts:

rpm -yi /usr/local/admin/RPM/msttcorefonts-2.0-2.noarch.rpm

 


 

  • Checklist for cloning
    • Check printers ( lpstat -a )
    • Add NFS mounts
      • Make sure mounts exist:  /u1
    • Check linuxdd
    • Run /usr/local/admin/scripts/sync_sysconf.sh if necessary
      • /usr/local/admin/scripts/sync_sysconf.sh   Servername
    • Check NTP
      • chkconfig --list ntpd
      • step-tickers
      • Check for existence of /var/ntp/ntpstats and owned by ntp:ntp
    • Access Control access controls
      • /etc/security/access.conf
      • /etc/pam.d/sshd
    • Check /etc/ssh_config
      • X11Forward=yes
    • Check crontab for ( laci, flaci, cddev, root...)
      • /var/spool/cron/
    • Check the rc3.d area
    • Move over the hosts SSH keys if necessary
    • Install OpenManage
    • Check /etc/exports file
      • if exports exists make sure NFS and PORTMAP are started
        • chkconfig --list nfs     chkconfig --list portmap
  • Miscellaneous – SCCS stores the RHEL installation images under NFS share  /net/172.23.16.97/vol/vol1/g.scs.redhat. This location can be used for getting boot disk image and burning it on a cd.

 

 

 

         


Created by Jingchen Zhou, Nov 1, 2011