# Installation of SLF3 client node: # -------------------------------- # Use Fermi OFFSITE installation, and later add # Gnome, Openafs, Openssh server (basically everything) in "Details" # IP: 129.15.3x.xxx (ask Andy Feldt) # Netmask: 255.255.254.0 # Gateway: 129.15.30.1 # Name servers: 129.15.30.20, 129.15.1.9, 129.15.1.10 # Add SSH and port 2049 to firewall settings # NIS/yp domain ypdomain, server ouhep1 # NTP server frodo.nhn.ou.edu # # At the end of the installation, go to console with Ctrl-Alt-F2, then type # # chroot /mnt/sysimage # # In /etc/hosts, remove hostname from line # # 127.0.0.1 localhost.localdomain localhost # # if present. And in /etc/resolv.conf, add # # search nhn.ou.edu ou.edu # # if not there already. Then restart network with # # /etc/init.d/network restart # # Finish installation and reboot, then log in and run # # /etc/cron.daily/yum.cron; yum -y update kernel\* # # (issue "pkill sleep" in a different window) # # and then reboot into newest kernel # # Then SOURCE this script rpm -e zz_sshd_aklog yum -y update openssh\* # KerberosAuthentication no # <- Not ANYMORE! echo " ==================== If necessary: in /etc/krb5.conf, replace krb5_run_aklog = true with krb5_run_aklog = false Press Return when ready"; read cont # Still necessary? echo " ==================== In /etc/ssh/sshd_config , please uncomment or add UsePrivilegeSeparation no and comment out AklogCmd /usr/krb5/bin/aklog # (if present) Press Return when ready"; read cont echo " ==================== Please un-comment the following line in /etc/auto.misc: floppy -fstype=auto :/dev/fd0 Also add the zip drive if it's installed on the system: zip -fstype=auto :/dev/hdb4 Press Return when ready"; read cont echo " ==================== Please comment out #alias rm='rm -i' in /root/.bashrc Press Return when ready"; read cont scp -p ouhep1:/root/.ssh/[ai]* /root/.ssh scp -p ouhep1:/etc/ssh/ssh_known_hosts /etc/ssh #mv /etc/hosts.allow /etc/hosts.allow.fnal #mv /etc/hosts.deny /etc/hosts.deny.fnal #cd /etc/ssh/ #mkdir save #mv ssh_host*key ssh_host*key.pub save/ #cp -p /scratch/backup/$HOSTNAME/etc/ssh/ssh_host*key /scratch/backup/$HOSTNAME/etc/ssh/ssh_host*key.pub . #cp -p /scratch/backup/$HOSTNAME/ssh.tgz . #tar zxvf ssh.tgz #rm -f ssh.tgz #cd - /etc/init.d/sshd restart #yum -y install openafs openafs-client openafs-compat openafs-krb5 kernel-module-openafs-2.4.21-32.0.1\* #yum -y update openafs openafs-client openafs-compat openafs-krb5 kernel-module-openafs-2.4.21-32.0.1\* #cp -p /usr/vice/etc/ThisCell /usr/vice/etc/ThisCell.orig #echo usatlas.bnl.gov > /usr/vice/etc/ThisCell #/sbin/chkconfig afs on #/etc/init.d/afs restart yum -y install openafs-compat openafs-krb5 cat >> /etc/krb.conf <> /etc/krb.realms <> /etc/sysconfig/i18n cat >> /etc/bashrc <> /etc/ld.so.conf /sbin/ldconfig cat >> /etc/auto.master <> /etc/auto.misc < /etc/host.conf #echo ypserver ouhep1 >> /etc/yp.conf #echo domain ypdomain server ouhep1 >> /etc/yp.conf #echo NISDOMAIN=ypdomain >> /etc/sysconfig/network # #echo " #==================== #Please change the following line in /etc/sysconfig/network # #HOSTNAME=`hostname -s` # fix quotes # #Press Return when ready"; read cont # #echo " #==================== #Please change the following lines in /etc/nsswitch.conf # #passwd: files nisplus nis #shadow: files nisplus nis #group: files nisplus nis #hosts: files nisplus dns nis #protocols: files nisplus nis #services: files nisplus nis #netgroup: files nisplus nis #automount: files nisplus nis #aliases: files nisplus nis # #Press Return when ready"; read cont # #/sbin/chkconfig ypbind on #/etc/init.d/ypbind start mkdir /mnt/tmp 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 mv /etc/cron.daily/00-logwatch /etc/cron.daily/.00-logwatch #server 127.127.1.0 # local clock <-- not #fudge 127.127.1.0 stratum 10 <-- necessary # #echo " #==================== #If not already present, please change the following lines in /etc/ntp.conf to # #restrict 129.15.30.51 mask 255.255.255.255 nomodify notrap noquery # #server 129.15.30.51 # #Press Return when ready"; read cont # #cp -p /etc/ntp/step-tickers /etc/ntp/step-tickers.orig #echo "129.15.2.150" > /etc/ntp/step-tickers # #rdate -s frodo #/sbin/hwclock --systohc #/sbin/chkconfig ntpd on #/etc/init.d/ntpd restart echo "root: hs,karunach" >> /etc/aliases /usr/bin/newaliases mv /etc/DIR_COLORS.xterm /etc/DIR_COLORS.xterm.disable mv /etc/motd /etc/motd.save cat >> /etc/rc.d/rc.local < /proc/sys/net/core/rmem_max echo 1048576 > /proc/sys/net/core/wmem_max EOF echo 1048576 > /proc/sys/net/core/rmem_max echo 1048576 > /proc/sys/net/core/wmem_max yum -y upgrade mozilla\* yum -y install XFree86-devel yum -y install nmap nmap-frontend sysstat yum -y install MySQL-python mysql-devel yum -y install gnupg gnuplot screen mutt yum -y install tetex-latex tk cd /usr/share/texmf/tex/latex/ tar zxf /usr/local/tar/latex/revtex.tar.gz tar zxf /usr/local/tar/latex/revtex4.tar.gz ln -s ../../tex/latex /usr/share/texmf/bibtex/bst/revtex4 cd .. 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 #echo " #==================== #Please change the following lines in /usr/share/texmf/dvips/config/config.ps # #comment out (with %) # #o |lpr # #move # #@ letterSize 8.5in 11in # #in front of # #@ A4size 210mm 297mm #@+ %%PaperSize: A4 # #Press Return when ready"; read cont #cp -a /etc/cups /etc/cups.orig #redhat-config-printer & #(add printers as LPD printers) /etc/init.d/cups stop /sbin/chkconfig cups on /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/ #echo `hostname -s` >> /usr/local/condor/etc/roster touch /usr/local/condor/etc/`hostname -s`.local mkdir /myhome1/condor ln -s /home1/`hostname -s`/condor /home/condor/hosts/`hostname -s` mkdir /myhome1/condor/execute mkdir /myhome1/condor/log mkdir /myhome1/condor/spool mkdir /myhome1/condor/log/GridLogs chmod 1777 /myhome1/condor/log/GridLogs chown condor. /home/condor/hosts/`hostname -s` chown -R condor. /myhome1/condor /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 /etc/init.d/condor start mv /usr/bin/ld /usr/bin/ld.real cp -p /usr/local/condor/lib/ld /usr/bin/ld mkdir -p /myhome1/atlas/grid3/tmp chown -R grid. /myhome1/atlas/grid3 chmod -R g+w /myhome1/atlas/grid3 /sbin/tune2fs -m 1 `mount | grep myhome1 | grep ^/dev | awk '{print $1}'` rpm -Uvh /usr/local/rpm/diskcheck/diskcheck-1.4-5.noarch.rpm cd /usr/local/rpm/xstuff rpm -Uvh grace/grace-5.1.9-1.i386.rpm grace/fftw-2.1.3-1.i386.rpm grace/pdflib-4.0.3-1.i386.rpm rpm -Uvh tgif/*.rpm rpm -Uvh axodraw-1.0-0.i386.rpm ee-0.3.12-5.i386.rpm gkrellm-2.2.4-0.1.el3.dag.i386.rpm lyx-1.1.5fix1-1.i386.rpm xforms-0.88-3.i386.rpm xosview-1.8.2-1.1.el3.rf.i386.rpm xv-3.10a-15.i386.rpm rm -f /usr/X11R6/man/man5/forms.5; ln -s xforms.5 /usr/X11R6/man/man5/forms.5 cd - rpm -Uvh /usr/local/rpm/multimedia/alsa/*.rpm rpm -Uvh /usr/local/rpm/multimedia/xine/rhel3/*.rpm ln -s /usr/local/RealPlayer/realplay /usr/bin/realplay ln -s /opt/openoffice.org2/program/soffice /usr/bin/soffice echo " ==================== Please answer [Return] 1 /usr/lib/mozilla n to the acroread plugin installation questions. Press Return when ready"; read cont ln -s /usr/local/Adobe/Acrobat7.0/bin/acroread /usr/bin/acroread /usr/local/Adobe/Acrobat7.0/Browser/install_browser_plugin rpm -Uvh /usr/local/rpm/acroread/rhel3/pdftk-*.rpm rpm -Uvh /usr/local/rpm/web/flash/rhel3/flash-plugin-6.0.81-1-9.i386.rpm cd /usr/lib/flash-plugin/ mv flashplayer.xpt flashplayer.xpt.rpm mv libflashplayer.so libflashplayer.so.rpm cd /usr/local/rpm/web/flash/rhel3/install_flash_player_7_linux/ cp -p libflashplayer.so flashplayer.xpt /usr/lib/flash-plugin/ cd ln -s /usr/java/jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins /usr/sbin/sensors-detect # lm_sensors (kernel-unsupported already installed now?) echo " ==================== Please cut and paste appropriate module info into /etc/modules.conf Press Return when ready"; read cont cp -p /usr/share/doc/lm_sensors-2.6.5/lm_sensors.init /etc/init.d/lm_sensors /sbin/chkconfig --add lm_sensors /etc/init.d/lm_sensors start echo " ==================== Please add Option \"backingstore\" to Section \"Device\" of /etc/X11/XF86Config Press Return when ready"; read cont echo " ==================== Please change the following lines in /usr/share/config/kdesktoprc Saver=KBlankscreen.desktop 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 " ==================== 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 useradd -c Andy -d /root -g root -u 0 -o -r rootaf passwd.local rootaf 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.sh .ssh/known_hosts " echo " To do: ----- xdiff (where?) enlightenment (not working) python (PIL, Pmw) vnc,vncserver (once it works) mathematica "