# Installation of RHEL5 Client node: # --------------------------------- # Use RHEL5 32-bit Client CD1 for installation: # # linux askmethod (NFS image) # # enter IP information from below, and # # check Manual configuration # uncheck Enable IPv6 support # # and for NFS image directory use: # # ouhep10 , /myhome1/users/hs/rhel5 # # Skip entering Installation Number (RHEL registration) # # Create custom layout: # 10240 / ext3 (only if this is a new machine, otherwise keep existing) # 2048 swap (but still format both / and swap) # rest /myhome1 ext3 # # IP: 129.15.3x.xxx (ask Andy Feldt for IPs, or if they're already in DNS: # host ouhepx ) # Netmask: 255.255.254.0 # hostname: ouhepx.nhn.ou.edu # Gateway: 129.15.30.1 # Name servers: 129.15.30.20, 129.15.1.9 # # Uncheck "Office" # Add the following packages with "Customize now": # Desktop Environments: KDE # Applications: Engineering and Scientific # Development: Development Libraries, Development Tools, Legacy Software Development # Base System: Legacy Software Support, System Tools # # Add SSH and NFS4 firewall settings # SELinux Setting: Disabled # Click on Network Time Protocol tab # NTP server frodo.nhn.ou.edu # Advanced Options: Synchronize system clock before starting service # # Register with RHEL later # # Reboot and log in as root with KDE (change session and make default) # # Get this script with # # scp -p ouhep1:/usr/local/install/addnode-rhel5.sh . # # Then SOURCE this script with: # # . ./addnode-rhel5.sh scp -p ouhep1:/root/.ssh/[ai]* /root/.ssh scp -p ouhep1:/etc/ssh/ssh_known_hosts /etc/ssh # commented out for ouhep upgrade: # #ssh ouhep1 mkdir /raid1/backup/ssh/`hostname -s` #scp -p /etc/ssh/ssh_host_* ouhep1:/raid1/backup/ssh/`hostname -s` mkdir /etc/ssh/orig mv /etc/ssh/ssh_host_* /etc/ssh/orig/ scp -p ouhep1:/raid1/backup/ssh/`hostname -s`/ssh_host_* /etc/ssh/ mv .bash_logout .bash_logout.disable scp -p ouhep1:/root/.emacs /root/ sed -i~ s/"^alias rm"/"#alias rm"/g /root/.bashrc mv /etc/sysconfig/iptables /etc/sysconfig/iptables.disable /etc/init.d/iptables restart sed -i.orig s="^/misc"="#/misc"=g /etc/auto.master sed -i~ s="^+auto.master"="#+auto.master"=g /etc/auto.master cat >> /etc/auto.master <> /etc/auto.misc < /etc/host.conf #echo ypserver ouhep1 >> /etc/yp.conf echo domain secretdomain server ouhep1 >> /etc/yp.conf echo NISDOMAIN=secretdomain >> /etc/sysconfig/network cp -p /etc/nsswitch.conf /etc/nsswitch.conf.orig scp -p ouhep1:/etc/nsswitch.conf /etc /sbin/chkconfig ypbind on /etc/init.d/ypbind start df /usr/local/install/ /home/condor/ sleep 1 df /usr/local/install /home/condor/ /usr/local/install/run_RHEL5_reg.sh yum -y update yum clean all scp -p ouhep1:/etc/cron.daily/yum-update.cron /etc/cron.daily scp -p ouhep1:/etc/logrotate.d/btmp /etc/logrotate.d mv /usr/bin/passwd /usr/bin/passwd.local; ln -s yppasswd /usr/bin/passwd mv /usr/bin/chsh /usr/bin/chsh.local; ln -s ypchsh /usr/bin/chsh mv /usr/bin/chfn /usr/bin/chfn.local; ln -s ypchfn /usr/bin/chfn yum -y install thunderbird giflib-utils libXvMC openmotif poppler-utils xfig yum -y install tetex tetex-latex tetex-xdvi tetex-dvips rcs subversion expect yum -y install gtk+ mikmod gcc-c++ gcc-gfortran blas openssl097a qt4 xcdroast yum -y install nmap nmap-frontend sysstat tkinter imake yum -y install MySQL-python mysql-devel compat-db compat-readline43 libX11-devel yum -y install rdesktop yum -y install xinetd yum -y install rpm-build yum-utils sendmail-cf yum -y install kernel-devel yum clean all rpm -e totem-mozplugin rpm -Uvh /usr/local/rpm/afs/1.4/openafs-*.rpm /usr/local/rpm/afs/1.4/mklibafs.sh cp -p /usr/vice/etc/ThisCell /usr/vice/etc/ThisCell.orig echo usatlas.bnl.gov > /usr/vice/etc/ThisCell touch /usr/vice/etc/SuidCells.dist #/etc/init.d/openafs-client start echo LC_COLLATE=C >> /etc/sysconfig/i18n #sed -i.orig s/"^Defaults requiretty"/"#Defaults requiretty"/g /etc/sudoers cat >> /etc/bashrc <> /etc/ld.so.conf /sbin/ldconfig rpm --force -Uvh /usr/local/rpm/cvs/cvs-*.rpm echo exclude=cvs >> /etc/yum.conf echo >> /etc/profile.d/cvs.sh echo export CVSUMASK=000 >> /etc/profile.d/cvs.sh echo export CVSROOT=/raid1/software/atlas/ouhepcvs >> /etc/profile.d/cvs.sh scp -p ouhep1:/etc/profile.d/cvs.csh /etc/profile.d/ rpm -Uvh /usr/local/rpm/gcc/compat-gcc-32*.rpm ln -s libg2c.so.0 /usr/lib/libg2c.so ln -s /usr/local/lib/python2.4/site-packages/Pmw /usr/lib/python2.4/site-packages/Pmw scp -p ouhep1:/etc/ssh/ssh_config.fnal /etc/ssh/ ln -s /usr/local/bin/kssh /usr/bin/skh mv /etc/krb5.conf /etc/krb5.conf.orig scp -p ouhep1:/etc/krb5.conf /etc/ scp -p ouhep1:/etc/krb.conf /etc/ scp -p ouhep1:/etc/krb.realms /etc/ mkdir /mnt/tmp mv /etc/cron.daily/0logwatch /etc/cron.daily/.0logwatch mv /etc/DIR_COLORS.xterm /etc/DIR_COLORS.xterm.disable sed -i.orig s/'Section "Device"'/'Section "Device"\n\tOption\t"backingstore"'/g /etc/X11/xorg.conf cat >> /etc/rc.d/rc.local < /proc/sys/net/core/rmem_max echo 1048576 > /proc/sys/net/core/wmem_max [ -f /lib/modules/\$(uname -r)/kernel/fs/openafs/openafs.ko ] || /usr/local/rpm/afs/current/mklibafs.sh >& /root/afs-update.log & EOF echo 1048576 > /proc/sys/net/core/rmem_max echo 1048576 > /proc/sys/net/core/wmem_max cd /usr/share/texmf/tex/ tar zxf /usr/local/tar/latex/aastex52_large.tar.gz cp -p /usr/share/texmf/ls-R /usr/share/texmf/ls-R.orig /usr/bin/mktexlsr cd - /etc/init.d/cups stop /etc/init.d/cups start /etc/init.d/cups stop cp -p /etc/printcap /etc/printcap.orig mv /etc/cups /etc/cups.orig scp -rp ouhep1:/etc/cups /etc scp -p ouhep1:/etc/printcap /etc /etc/init.d/cups start rpm -Uvh /usr/local/rpm/ganglia/ganglia-monitor-core-gmond-2.5.4-8.i386.rpm /usr/local/rpm/ganglia/rrdtool-*.rpm scp -p ouhep1:/etc/gmond.conf /etc/ /etc/init.d/gmond restart scp -p ouhep1:/etc/init.d/condor /etc/init.d/ # commented out for ouhep upgrade: # #touch /usr/local/condor/etc/`hostname -s`.local #mkdir -p /myhome1/atlas/grid/tmp #chown -R grid. /myhome1/atlas/grid #chmod -R g+w /myhome1/atlas/grid # #/sbin/tune2fs -m 1 `mount | grep myhome1 | grep ^/dev | awk '{print $1}'` # #mkdir /myhome1/condor #mkdir /myhome1/condor/execute #mkdir /myhome1/condor/log #mkdir /myhome1/condor/spool #mkdir /myhome1/condor/log/GridLogs #chmod 1777 /myhome1/condor/log/GridLogs #chown -R condor. /myhome1/condor #ln -s /home1/`hostname -s`/condor /home/condor/hosts/`hostname -s` #chown -h condor. /home/condor/hosts/`hostname -s` /sbin/chkconfig --add condor /sbin/chkconfig --level 5 condor on mv /etc/rc.d/rc0.d/K99condor /etc/rc.d/rc0.d/K04condor mv /etc/rc.d/rc6.d/K99condor /etc/rc.d/rc6.d/K04condor mv /usr/bin/ld /usr/bin/ld.real cp -p /usr/local/condor/lib/ld /usr/bin/ld /etc/init.d/condor start rpm -Uvh /usr/local/rpm/diskcheck/diskcheck-1.4-5.noarch.rpm rpm -Uvh /usr/local/rpm/unison/unison-2.13.16-1.1.el3.rf.i386.rpm rpm -Uvh /usr/local/rpm/rpl/rpl-1.5.3-4.el5.noarch.rpm cd /usr/local/rpm/xstuff rpm -Uvh axodraw-1.0-0.i386.rpm rpm -Uvh gkrellm-2.3.0-4.el5.1.i386.rpm xosview-1.8.2-1.1.el3.rf.i386.rpm xv-3.10a-28.fc7.i386.rpm xpdf-3.02-13.el5.i386.rpm xdg-utils-1.0.2-4.el5.noarch.rpm t1lib-5.1.1-7.el5.i386.rpm libpaper-1.1.21-1.el5.1.i386.rpm rpm -Uvh dia/rhel5/dia-0.96.1-1.el5.rf.i386.rpm cd - rpm -Uvh /usr/local/rpm/acroread/rhel5/pdftk-1.41-1.el5.rf.i386.rpm rpm -Uvh /usr/local/rpm/gv/gv-3.6.3-2.fc8.i386.rpm rpm -Uvh /usr/local/rpm/multimedia/xine/rhel5/*.rpm rpm -Uvh /usr/local/rpm/multimedia/xmms/*.rpm rpm -Uvh /usr/local/rpm/vcs/skype/*.rpm rpm -Uvh /usr/local/rpm/pine/pine-4.64-3.el5.rf.i386.rpm ln -s firefox /usr/bin/mozilla ln -s /opt/real/RealPlayer/realplay /usr/bin/realplay ln -s /opt/real/RealPlayer/mozilla/nphelix.* /usr/lib/mozilla/plugins #ln -s /opt/openoffice.org2.4 /etc/openoffice.org2.4 #rpm --nodeps -Uvh /usr/local/rpm/ooffice/OOH680_m17_native_packed-1_en-US.9310/RPMS/desktop-integration/openoffice.org-redhat-menus-2.4-9268.noarch.rpm #ln -s /opt/openoffice.org2/program/soffice /usr/bin/ooffice #ln -s /opt/openoffice.org3/program/soffice /usr/bin/ooffice rpm -Uvh /usr/local/rpm/ooffice/OOO310_m11_native_packed-2_en-US.9399/RPMS/desktop-integration/openoffice.org3.1-redhat-menus-3.1-9393.noarch.rpm rpm -Uvh /usr/local/rpm/web/flash/rhel5/flash-plugin-*.i386.rpm ln -s /usr/java/jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins ln -s /opt/Adobe/Reader9/bin/acroread /usr/bin/acroread #echo " #==================== #Please answer # #[Return] #1 [Return] #3 [Return] # #to the acroread plugin installation questions. # #Press Return when ready"; read cont #/opt/Adobe/Reader9/Browser/install_browser_plugin echo " ==================== Please change the following lines in /usr/share/texmf/dvips/config/config.ps comment out (with %) o |lpr move @ letterSize 8.5in 11in @+ ! %%DocumentPaperSizes: Letter in front of @ A4size 594.99bp 841.99bp @+ ! %%DocumentPaperSizes: a4 @+ %%PaperSize: A4 Press Return when ready"; read cont [ -f /var/spool/mail/root ] && ( echo " ==================== Please read and delete root's mail. Press Return when ready"; read cont ) echo "phyast:/var/spool/mail /var/spool/mail nfs defaults,bg,soft 0 0" >> /etc/fstab mount -a echo "129.15.30.147 ouhep1.nhn.ou.edu ouhep1" >> /etc/hosts echo "root: hs,karunach" >> /etc/aliases /usr/bin/newaliases useradd -c Andy -d /root -g root -u 0 -o -r rootaf passwd.local rootaf echo " ==================== Please add `hostname -i` `hostname -f` `hostname -s` to /etc/hosts on ouhep1 and then re-do the NIS maps with cd /var/yp make cd - Press Return when ready"; read cont echo " ==================== Please add the relevant info on " `hostname -s` " of 'condor_status' to /root/nodeList.txt on ouhep1. Press Return when ready"; read cont echo " ==================== Please add " `hostname -s` " to /usr/local/bin/runlin and cplin. Press Return when ready"; read cont echo " Remove local copies and temp scripts/logs when ready: rm -rf /home.local rm -rf /opt.local rm -rf /usr/local.local rm -f addnode-rhel5.sh .ssh/known_hosts Also, please reboot this machine into the newest kernel now. #and install #the newest afs kernel module with # #/usr/local/rpm/afs/1.4/mklibafs.sh " # extra RPMs: #-rw-r--r-- 1 root 1377121 Jan 17 2007 openmotif22-2.2.3-18.i386.rpm