Installation of CentOS 4.9
Date: 2011/09
After some disk, and motherboard failure of t2. Tony upgraded the
tcs3 computer with new motherboards. Installation of the OS on these
new computers:
1. General Info
MB/CPU/RAM: Gigabyte GA-P45T-ES3G, Pentium E5700 LGA755 CPU, 4GB RAM
Video: GT 520 Video (ASUS ENGT520 Geforce GT)
/dev/hda1 - / 20 GB (centos 4.9)
/dev/hda2 - /r2 20 GB extra root parition
/dev/hda3 - /aux 20 GB home dir, catalogs
/dev/hda4 - /aux1 rest unused
2. General Installation
- boot with 'linux rescue', manual partition the disk.
- Select Workstation configuration
- manual partition the driver, the automatic parition tool sucks.
- Manually set the hostname, IP, netmask, etc. (Do not use DHCP).
- Select No Firewall
- Set SELinux to Disable
- Customize Software to be installed, select:
Engineering and Scientific,
Authoring and Publishing.
Server Configuration Tools.
System Tools
After reboot:
- fix /etc/hosts
- configure NIS: system-config-authentication
domain is: irtf.ifa.hawaii.edu
server is: duke goblin
/etc/nsswitch.conf -> limit nis to hosts, group, netgroups.
- configure ntp: system-config-services
- /boot/grub/menu.lst tweeks:
remove 'rhgb quiet' remove the graphical option.
add 'vga=788' to enhance the vga text mode.
comment hiddenmenu to show OS selection menu.
/etc/fstab -> Use device name rather than labels.
- install the updates using yum:
# yum update
# reboot
5. IRTF fixes:
restore the /aux data.
/etc/passwd - make accounts: to, tcs3, droot,
Set up autofs
/etc/auto.master
/etc/automap for /htdocs, /irtf.backup
/etc/auto.home for user accounts.
ln -s /netdisks/irtf.backup /irtf.backup
ln -s /netdisks/htdocs /htdocs
ln -s /netdisks/scrs1 /scrs1
ln -s /netdisks/shared /shared
/etc/group
/etc/ssh/ssh_config: allow for X11 forwarding
7. Install nvidia drivers to allow dual monitor operations.
# init 3
# cd /home/tcs3/public_html/tcs3/computers/linux/1109_nvidia
# sh NVIDIA-Linux-x86-275.28.run
copy /etc/X11/xorg.conf from existing t1 computer.
# reboot
6. More TCS3 Setup
yum install mysql
Install
slalib -> ~/src/slalib
eslalib -> ~/src/libesla
ir1 -> ~/src/libir1 (use latest source copy from Tony Denault).
Copy
apeio
smokeyio
hexeio
Setup /etc/rc.local
1. /etc/rc.d/rc.local -> modify mqueue defaults for tcs3.
2. /etc/rc.d/rc.local -> add line to install pmac module on bootup.
3. set permission on /dev/dsp to allow tcs3 sounds to play.
create /dev/pmac node:
# mknod --mode=666 /etc/udev/devices/pmac c 66 0
cron tab for rotating tcsd.log, hexed.log in /var/log
7. eth0 driver (did on 12/01/2011)
GA-P45T-ES3G with a RTL8111D ethernet chip showed many dropped packet on centos 4.9
Solution suggested by: http://wiki.centos.org/AdditionalResources/HardwareList/RealTekRTL8111b
(install the dkms-r8168 driver from RPMforge):
Get rpmforge-release package:
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el4.rf.i386.rpm
Install DAG's GPG key:
# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
This failed, so I download RPM-GPG-KEY.dag.txt, and installed from the file ie:
# rpm --import RPM-GPG-KEY.dag.txt
Verify the package you have downloaded:
# rpm -K rpmforge-release-0.5.2-2.el4.rf.*.rpm
Install the package:
# rpm -i rpmforge-release-0.5.2-2.el4.rf.*.rpm
Install the updated ethernet driver:
# yum install dkms-r8168
edited /etc/modprobe.conf and replace 'r8169' with 'r8168'