Always do an install and not an upgrade. The install assures that all the latest software gets installed. Make sure the disk is reformatted when you do the install.
The general guidelines are to install "everything" then only start the minimum number of services that are absolutely necessary. There are some differences to the client machines: video board, monitor and network cards are the main differences. So make sure you know what is installed in the system before you start the install.
Make sure you have the host name and IP number handy before you start the install.
If you have to use fdisk instead of diskdruid, which is the case for IDE drives larger than 8 Gigs, here are the necessary commands:
m = help p = print the partition table d = delete a partition n = add a new partition t = change a partition type (82 is Linux Swap) a = toggle boot flag w = write the partition table and exit Make partition 1 (slash;/) first (5 Gigs) Make partition 2 swap (double the memory)
When performing the RedHat 6.2 install use the TAB key to move between selections, the arrow keys to highlight a choice and the ENTER (sometimes the space bar) to make your selection.
OK let's start the install. Turn the machine on. Pay attention to the memory count. You'll want to create a swap file that is double the memory size. Before the machine comes up, enter into the BIOS (usually the DEL key), and change the boot sequence to floppy, cdrom then disk. Save the configuration and place the RedHat 6.2 CD in the drive. Allow the machine to come up. At the boot: prompt type text. Here is a run through of the prompts and answers to the questions during the install:
English (language)
OK
US (keyboard)
OK
OK (start the install)
Install Custom System
OK
Disk Druid
Delete (all existing partitions)
Add Linux Swap OK (should be twice the size of the memory)
Add / (should be what's ever let over)
OK (done with partitioning)
Yes (save the partition table)
Format / (and any other partitions you created, except swap)
OK
OK (leave boot parameters blank)
/dev/sda (Master Boot Record)
OK
/dev/sda1
OK
hostname <name>.eng.yale.edu
turn off Use bootp/dhcp
IP is 130.132.94.N
Netmask is 255.255.255.0
Default Gateway is 130.132.94.1
Primary NameServer is 130.132.1.10
OK
Generic - 2 Button (PS/2)
Emulate 3 buttons
OK
US/Eastern time zone
OK
root password
OK
OK (leave add a user blank)
Turn on shadow
Turn off MD5 passwords
Enable NIS
Domainname is eng-it
Check off use broadcast
OK
Install everything
OK
OK (video card)
OK (keep log)
No Bootdisk
Monitor (look on back, try Dell D1028L if unknown)
Probe
OK
OK
32 mb OK (for most monitors)
No Clockchip Setting
Probe
OK
16-bit 1024x768
OK
OK
Click on Yes, Yes
OK
reboot
Before the machine comes back up, go into the BIOS and change the boot sequence back to floppy, disk then CDROM.
You should now run the post-install script. If you wish to do all of the custom configurations, upgrades and installs by hand, please skip to the next section. You may also wish to follow along with what the post-install script is doing. Just read the next section to follow along with the process.
Here's how to run the post-install script:
mount jove:/usr/local /usr/local cd /usr/local/scripts ./post-install
Add the SECF printer in Angie's office using printtool. Here are the specs:
Remote printer Name is secflw Remote Host is 130.132.20.247 Leave the Remote Queue blank Input Filter: HP LaserJet Plus, fix stair-stepping
Add the HP LaserJet UNIPRINT printer using printtool. Here are the specs:
SMB/Windows 95/NT printer Name is lp|dl120lj Hostname is uniprint4.its.yale.edu Printer Name is dl120lj Leave the User, Password and Workgroup blank Input Filter: HP LaserJet, fix stair-stepping
Add the HP Color LaserJet UNIPRINT printer using printtool. Here are the specs:
SMB/Windows 95/NT printer Name is dl120clj Hostname is uniprint4.its.yale.edu Printer Name is dl120clj Leave the User, Password and Workgroup blank Input Filter: Postscript, 600x600, fix stair-stepping
If you already ran the post-install script from the previous section, all the following steps in this section have been completed. When you run the post-install script, you may wish to follow along in this section so you know what's going on.
Stop all the services that are running. You'll need to do the following:
/etc/rc.d/init.d/SERVICE stop
where SERVICE is: autofs, identd inet, lpd, sendmail, gpm, httpd, apmd
Make the KDE Window manager the default.
vi /etc/sysconfig/desktop add "KDE" alone on a single line
Mount the following disk off of the server:
mount jove:/usr/local /usr/local
Install SSH version 1 and 2:
cd /usr/local/powertools/ssh-1.2.27 make install cp sshd.chkconfig /etc/rc.d/init.d/sshd /sbin/chkconfig --del sshd cd ../ssh-2.3.0 make install cp sshd2.chkconfig /etc/rc.d/init.d/sshd2 /sbin/chkconfig --add sshd2
Set the NameServers and host search order:
cd /usr/local/configs cp resolv.conf /etc
Install sudo, xemacs and acrobat:
cd /usr/local/powertools
rpm -hiv sudo*.rpm
rpm -hiv xemacs*.rpm
cd ILINXR.install
./INSTALL
accept (the Adobe License)
/opt/Acroread (use the default installation directories)
ln -s /opt/Acrobat4/bin/acroread /usr/bin/acroread
cp /usr/local/configs/netscape /opt/Acrobat4/Browsers
cd /usr/local/configs
cp sudoers /etc
Install all the latest RPM updates:
cd /usr/local/updates rpm -hiv openssl*.rpm rpm -F -Uhv *.rpm
Make sure all unnecessary chkconfig flags are turned off
cd /usr/local/configs ./chkconfig.options
Add the other NFS filesystems and CDROM changed permissions from the server:
cd /usr/local/configs vi /etc/fstab add fstab.entries to the bottom of this file
Add the zip drive entry to /etc/fstab for the Dells (eitx007-10):
cd /usr/local/configs cat fstab.zip.entry >> /etc/fstabAdd the mailhost entry into /etc/hosts
cd /usr/local/configs vi /etc/hosts remove "localhost.localdomain" add hosts.options to the bottom of this file
Add the Network Time Protocol config file and synching with clock.yale.edu Add Message of the Day (motd).
cd /usr/local/configs cp ntp.conf /etc cp synch-time /etc/cron.daily cp step-tickers /etc/ntp cp rc.local /etc/rc.d cp motd /etc
Add custom shell environments.
cd /usr/local/configs cp csh.login /etc cp profile /etc
Add NIS fix to force clients to bind to jove.
cd /usr/local/configs cp yp.conf /etc
Add Big Brother start/stop/chkconfig script
cd /usr/local/configs cp bb /etc/rc.d/init.d /sbin/chkconfig --add bb cd /var/log /bin/chgrp 384 messages /bin/chmod g+r messages
Fix nsswitch.conf file
cd /usr/local/configs cp nsswitch.conf /etc
Add the sendmail configuration file to send mail through the server. Add the standard pine resource file to send mail through the server.
cd /usr/local/configs cp sendmail.cf /etc cp pine.conf /etc
Add server to the /root/.shosts file to make "fixnode" work:
cd /root
vi .shosts
add the following:
jove.eng.yale.edu root
cd /usr/local/configs
cp ssh_known_hosts /etc
Add the syssumm weekly system update script to cron:
cd /usr/local/configs cp run-syssumm /etc/cron.weekly
Add the aidecheck script:
cd /usr/local/configs cp aidecheck.cron /etc/cron.hourly
Fix Matlab C compiler with old libC5 libraries:
ln -s /usr/i486-linux-libc5 /usr/i486-linuxlibc5 cd /usr/local/oldtools rpm --force -hiv *.rpm cd /usr/lib/gcc-lib/i486-linuxlibc5/2.7.2.3 mv specs specs.orig cat specs.orig | sed -e "s/ld-linux.so.2/ld-linux.so.1/" > specs cd /usr/local/configs cp nsswitch.conf /etc
Make sure the log files get rotated and compressed:
cd /etc
vi logrotate.conf
uncomment the "compress" line
Copy local icons:
cd /usr/local/configs cp yale.xpm /usr/share/pixmaps cp becton.xpm /usr/share/pixmaps cp kdmrc /usr/share/config
Enable TCP wrappers:
cd /usr/local/configs cp hosts.allow /etc cp hosts.deny /etc
Install Matlab and Mathematica:
Mount the EIT Matlab and Mathematic CD tar xf /mnt/cdrom/matlab.tar ln -s /usr/matlab5/bin/matlab /usr/bin/matlab ln -s /usr/matlab5/bin/matlabdoc /usr/bin/matlabdoc ln -s /usr/matlab5/toolbox/compiler/mbuild.m /usr/bin/mbuild.m ln -s /usr/matlab5/bin/mex /usr/bin/mex tar xf /mnt/cdrom/math.tar cd /usr/local/powertools/mathematica /bin/cp MathKernel /usr/bin /bin/cp Mathematica /usr/bin /bin/cp math /usr/bin /bin/cp mathematica /usr/bin /bin/cp mcc /usr/bin cd /etc/X11/fs cp config config.orig cd /usr/local/configs /bin/cp config /etc/X11/fs
Add the SECF printer in Angie's office using printtool. Here are the specs:
Remote printer Name is secflw Remote Host is 130.132.20.247 Leave the Remote Queue blank Input Filter: HP LaserJet Plus, fix stair-stepping
Add the HP LaserJet UNIPRINT printer using printtool. Here are the specs:
SMB/Windows 95/NT printer Name is dl120lj Hostname is uniprint4.its.yale.edu Printer Name is dl120lj Leave the User, Password and Workgroup blank Input Filter: HP LaserJet, fix stair-stepping
Add the HP Color LaserJet UNIPRINT printer using printtool. Here are the specs:
SMB/Windows 95/NT printer Name is dl120clj Hostname is uniprint4.its.yale.edu Printer Name is dl120clj Leave the User, Password and Workgroup blank Input Filter: Postscript, 600x600, fix stair-stepping
Enable software firewall using IPChains
cd /usr/local/configs cp firewall /etc/rc.d/init.d /sbin/chkconfig --add firewall
Now reboot the machine.
Now we must upgrade the kernel. If you've never done this before, ask for help the first time because you could make the machine unusable.
You can first run the kernel-upgrade script, then do the manual edit of lilo.conf and issue the lilo command; or you may wish to perform all the commands by hand.
If you wish to save some time and help avoid typos, just run the kernel-upgrade script.
cd /usr/local/scripts ./kernel-upgrade
You will still have to manually edit /etc/lilo.conf and issue a lilo command.
vi /etc/lilo.conf
You'll need to modify the existing stanza and add a new one. You better
know what you're doing here. If the machine has more than one CPU, then
make the smp kernel the default. The new stanza should look something like:
image=/boot/vmlinuz-2.2.16-3
label=linux
initrd=/boot/initrd-2.2.16-3.img
read-only
root=/dev/sda1
The old stanza should now look something like:
image=/boot/vmlinuz-2.2.14-5.0
label=2.2.14-5
initrd=/boot/initrd-2.2.14-5.0.img
read-only
root=/dev/sda1
/sbin/lilo -v
reboot
If you didn't issue the kernel-upgrade script, then perform the following:
cd /usr/local/updates/kernel
rpm -hiv kernel-2.2.16-3.i386.rpm kernel-smp-2.2.16-3.i386.rpm
rpm --force -Uvh kernel-doc-2.2.16-3.i386.rpm \
kernel-ibcs-2.2.16-3.i386.rpm kernel-utils-2.2.16-3.i386.rpm
mkinitrd /boot/initrd-2.2.16-3.img 2.2.16-3
If machine has more than one processor, then do this too:
mkinitrd /boot/initrd-2.2.16-3smp.img 2.2.16-3smp
vi /etc/lilo.conf
You'll need to modify the existing stanza and add a new one. You better
know what you're doing here. If the machine has more than one CPU, then
make the smp kernel the default. The new stanza should look something like:
image=/boot/vmlinuz-2.2.16-3
label=linux
initrd=/boot/initrd-2.2.16-3.img
read-only
root=/dev/sda1
The old stanza should now look something like:
image=/boot/vmlinuz-2.2.14-5.0
label=2.2.14-5
initrd=/boot/initrd-2.2.14-5.0.img
read-only
root=/dev/sda1
/sbin/lilo -v
reboot
Now install Aide:
cd /usr/local/powertools rpm -hiv aide*.rpm