# UWM LSC Group Beowulf Master Kickstart Configuration File # # For use with RedHat 6.2 installation CD # # Kevin Flasch # Duncan Brown # # $Id: ks.cfg,v 1.72 2002/10/23 20:14:32 kflasch Exp $ # install lang en_US keyboard us cdrom clearpart --all part / --size 74856 part swap --grow zerombr yes lilo --location mbr mouse generic3ps/2 timezone --utc US/Central auth --enablemd5 --useshadow rootpw w@nk3r$! network --bootproto dhcp skipx reboot %packages @ Printer Support @ X Window System @ GNOME @ Mail/WWW/News Tools @ DOS/Windows Connectivity @ Networked Workstation @ Network Management Workstation @ Emacs @ Development @ Utilities %post # this is the post install script executed in the new chrooted install # failed () { touch /.failed_install echo "script failed. see /tmp/postinstall.log" exit 1 } fatal () { echo "unrecoverable error in install..." | wall } # masternode should equal 1 for master001, 2 for master002, and so on # masterextname only knows about medusa, hydra and contra - for additional # masters, the below if block will need to be modified # # to use this kickstart file for the dataserver, set dataserver to 1 # # to setup a master or dataserver on gigabit leave netgear set to 1 # if netgear is set to 0 the onboard eepro card will be used on the external # side and you must add a lynksys(tulip) card to be on the internal side masternode=1 dataserver=0 netgear=1 if [ $dataserver -eq 0 ] then if [ $masternode -eq 1 ] then masterextname="medusa" elif [ $masternode -eq 2 ] then masterextname="hydra" else masterextname="contra" fi mastername=`printf "master%03d" $masternode` masteripint=129.89.201.$[$masternode+230] if [ $masternode -eq 3 ] then masteripext=129.89.57.117 else masteripext=129.89.57.$[$masternode+102] fi fi # remove any existing logfile # rm -f /tmp/postinstall.log # add extra configuration to rc.local # ####### begin here document ###################################### if cat >> /etc/rc.d/rc.local <> /tmp/ypinit.log 2>&1 else /usr/lib/yp/ypinit -s master001 < /dev/null >> /tmp/ypinit.log 2>&1 wall "TURNING OFF DHCP DAEMON -- MODIFY /etc/rc.local TO DISABLE" echo "TURNING OFF DHCP DAEMON -- MODIFY /etc/rc.local TO DISABLE" >> /var/log/messages /etc/rc.d/init.d/dhcpd stop wall "TURNING OFF YPSERV -- MODIFY /etc/rc.local TO DISABLE" echo "TURNING OFF YPSERV -- MODIFY /etc/rc.local TO DISABLE" >> /var/log/messages /etc/rc.d/init.d/ypserv stop fi fi rm -rf /.successful_install echo "Here are the last sixteen lines of /tmp/postinstall.log..." tail -16 /tmp/postinstall.log echo "rebooting in ten seconds..." sleep 10 shutdown -rf now elif [ -r /.failed_install ] ; then echo "*********************************************************" \ >> /etc/issue echo "*** WARNING: errors occured during the master install ***" \ >> /etc/issue echo "*** Please examine the log files /tmp/install.log and ***" \ >> /etc/issue echo "*** /tmp/postinstall.log error messages ***" \ >> /etc/issue echo "*********************************************************" \ >> /etc/issue echo "" >> /etc/issue fi # running hdparm to increase disk access speed hdparm -c1 -d1 -m16 -u1 -W1 -k1 /dev/hda hdparm -c3 -d1 -X66 /dev/hdd # start the ssh daemon /usr/sbin/sshd # start up S.M.A.R.T. disk monitoring /usr/sbin/smartctl -et /dev/hda # start up S.M.A.R.T. disk monitoring daemon /usr/sbin/smartd if [ \`hostname\` != "dataserver.phys.uwm.edu" ] then if [ \`hostname\` != "medusa.phys.uwm.edu" ] then wall "TURNING OFF DHCP DAEMON -- MODIFY /etc/rc.local TO DISABLE" echo "TURNING OFF DHCP DAEMON -- MODIFY /etc/rc.local TO DISABLE" >> /var/log/messages /etc/rc.d/init.d/dhcpd stop wall "TURNING OFF YPSERV -- MODIFY /etc/rc.local TO DISABLE" echo "TURNING OFF YPSERV -- MODIFY /etc/rc.local TO DISABLE" >> /var/log/messages /etc/rc.d/init.d/ypserv stop fi fi EOF ####### end here document ######################################## then echo "added extra configuration to rc.local" \ | tee -a /tmp/postinstall.log else echo "couldn't append to /etc/rc.d/rc.local" \ | tee -a /tmp/postinstall.log fatal fi # set the time from the hardware clock # TZ="US/Central" export TZ /sbin/hwclock --hctosys --utc --debug \ >> /tmp/postinstall.log 2>&1 || failed # insert the new ethernet driver into the kernel and setup networking # echo "configuring networking" rm -f /tmp/e100_2.2.14-5.0BOOT.o mcopy a:e100_2.2.14-5.0BOOT.o /tmp/e100_2.2.14-5.0BOOT.o \ >> /tmp/postinstall.log 2>&1 || failed insmod --force /tmp/e100_2.2.14-5.0BOOT.o >> /tmp/postinstall.log 2>&1 || failed netconfig --bootproto=dhcp --device=eth0 \ >> /tmp/postinstall.log 2>&1 || failed ifup eth0 \ >> /tmp/postinstall.log 2>&1 || failed # # increase the hard disk speed and reformat /data # echo "executing hdparms" hdparm -c1 -d1 -m16 -u1 -W1 /dev/hda >> /tmp/postinstall.log 2>&1 || failed #echo "remaking /data (/dev/hda6)" #umount /data || failed #mkfs -t ext2 -i 65536 -m 1 /dev/hda6 >> /tmp/postinstall.log 2>&1 || failed #mount /data || failed # thses are the base urls of any downloaded files # baseurl="http://www.lsc-group.phys.uwm.edu/beowulf/slaveconfig" masterurl="http://www.lsc-group.phys.uwm.edu/beowulf/masterconfig" /bin/echo -e "getting new rpm files from:\n${baseurl}" \ | tee -a >> /tmp/postinstall.log /bin/echo -e "getting master files from:\n${masterurl}" \ | tee -a >> /tmp/postinstall.log # remove all obsolete rpms # for rpmfile in kernel-pcmcia-cs-2.2.14-5.0 \ kernel-utils-2.2.14-5.0 \ kernelcfg-0.5-5 \ vim-minimal-5.6-11 \ vim-common-5.6-11 do echo "removing ${rpmfile}" rpm --nodeps -ev ${rpmfile} \ >> /tmp/postinstall.log 2>&1 || failed done # rpm can't remove all the junk from 2.2.14-5.0, so do it here # rm -rf /usr/src/linux-2.2.14 rm -rf /lib/modules/2.2.14-5.0 rm -f /boot/module-info # upgrade rpm, install db3 and refresh the rpm database # for rpmfile in rpm-4.0.2-6x.i386.rpm \ rpm-devel-4.0.2-6x.i386.rpm \ rpm-build-4.0.2-6x.i386.rpm \ popt-1.6.2-6x.i386.rpm \ db3-3.1.17-4.6x.i386.rpm \ db3-devel-3.1.17-4.6x.i386.rpm \ db3-utils-3.1.17-4.6x.i386.rpm do echo "upgrading ${rpmfile}" rpm --nodeps --force -Uvh ${baseurl}/rpms/${rpmfile} \ >> /tmp/postinstall.log 2>&1 || failed done echo "rebuilding rpm database" rpm --rebuilddb \ >> /tmp/postinstall.log 2>&1 || failed # install the uwm custom kernel, mount, nfsutils and lm_sensors # for rpmfile in modutils-2.4.2-2.i386.rpm \ kernel-headers-2.4.5-2medusa.i386.rpm \ kernel-2.4.5-2medusa.i386.rpm \ kernel-source-2.4.5-2medusa.i386.rpm \ nfs-utils-0.3.1-2medusa.i386.rpm \ mount-2.11f-1medusa.i386.rpm \ losetup-2.11f-1medusa.i386.rpm \ lm_sensors-drivers-2.5.5-2medusa.i386.rpm \ lm_sensors-2.5.5-2medusa.i386.rpm \ lm_sensors-devel-2.5.5-2medusa.i386.rpm \ make-3.79.1-5.i386.rpm do echo "upgrading ${rpmfile}" rpm --nodeps --force -Uvh ${baseurl}/rpms/${rpmfile} \ >> /tmp/postinstall.log 2>&1 || failed done # upgrade X server to XFree86 version 4 # for rpmfile in kudzu-0.51.1-1rh6.i386.rpm \ kudzu-devel-0.51.1-1rh6.i386.rpm \ freetype-1.3.1-6rh6.i386.rpm \ XFree86-4.0.2-1rh6.i386.rpm \ XFree86-libs-4.0.2-1rh6.i386.rpm \ XFree86-xfs-4.0.2-1rh6.i386.rpm \ XFree86-75dpi-fonts-4.0.2-1rh6.i386.rpm \ XFree86-devel-4.0.2-1rh6.i386.rpm \ Xconfigurator-4.4.1-1rh6.i386.rpm do echo "upgrading ${rpmfile}" rpm --nodeps --force -Uvh ${baseurl}/rpms/${rpmfile} \ >> /tmp/postinstall.log 2>&1 || failed done # redhat 6.2 enhacements # for rpmfile in openldap-1.2.9-6.i386.rpm \ openldap-devel-1.2.9-6.i386.rpm \ krb5-configs-1.1.1-27.i386.rpm \ krb5-devel-1.1.1-27.i386.rpm \ krb5-libs-1.1.1-27.i386.rpm do echo "upgrading ${rpmfile}" rpm --nodeps --force -Uvh ${baseurl}/rpms/${rpmfile} \ >> /tmp/postinstall.log 2>&1 || failed done # redhat 6.2 security upgrades 20010625 - 20001127 # for rpmfile in gnupg-1.0.6-0.6.x.i386.rpm \ mktemp-1.5-2.1.6x.i386.rpm \ man-1.5i-0.6x.1.i386.rpm \ minicom-1.83.1-1.0.6x.i386.rpm \ gftp-2.0.8-1.i386.rpm \ netscape-common-4.77-0.6.2.i386.rpm \ netscape-communicator-4.77-0.6.2.i386.rpm \ pine-4.33-6.6x.i386.rpm \ sgml-tools-1.0.9-6.2.i386.rpm \ slrn-0.9.6.4-0.6.i386.rpm \ mutt-1.2.5i-8.6.i386.rpm \ vixie-cron-3.0.1-40.1.i386.rpm \ inetd-0.16-7.i386.rpm \ glibc-2.1.3-22.i386.rpm \ slocate-2.4-0.6.x.i386.rpm \ ed-0.2-19.6x.i386.rpm \ tcsh-6.10-0.6.x.i386.rpm \ pam-0.72-20.6.x.i386.rpm \ usermode-1.37-1.6.i386.rpm \ gnorpm-0.95.1-6.6x.i386.rpm do echo "upgrading ${rpmfile}" rpm --nodeps --force -Uvh ${baseurl}/rpms/${rpmfile} \ >> /tmp/postinstall.log 2>&1 || failed done # redhat 6.2 security upgrades 20001127 - 20000330 # for rpmfile in pine-4.33-6.6x.i386.rpm \ bash-1.14.7-23.6x.i386.rpm \ ncurses-5.0-12.i386.rpm \ ncurses-devel-5.0-12.i386.rpm \ ghostscript-5.50-8_6.x.i386.rpm \ dump-0.4b19-5.6x.i386.rpm \ ypbind-1.7-0.6.x.i386.rpm \ iputils-20001010-1.6x.i386.rpm \ tmpwatch-2.6.2-1.6.2.i386.rpm \ esound-0.2.20-0.i386.rpm \ traceroute-1.4a5-24.6x.i386.rpm \ lpr-0.50-7.6.x.i386.rpm \ sysklogd-1.3.31-17.i386.rpm \ xpdf-0.91-1.6x.i386.rpm \ mailx-8.1.1-16.i386.rpm \ perl-5.00503-12.i386.rpm \ xchat-1.4.0-2.i386.rpm \ umb-scheme-3.2-12.i386.rpm \ gpm-1.19.3-0.6.x.i386.rpm \ emacs-20.7-1.i386.rpm \ emacs-X11-20.7-1.i386.rpm \ emacs-nox-20.7-1.i386.rpm do echo "upgrading ${rpmfile}" rpm --nodeps --force -Uvh ${baseurl}/rpms/${rpmfile} \ >> /tmp/postinstall.log 2>&1 || failed done # redhat 6.2 bug fixes # for rpmfile in up2date-2.5.4-0.6.x.i386.rpm \ ucd-snmp-4.1.1-3.i386.rpm \ ucd-snmp-devel-4.1.1-3.i386.rpm \ ucd-snmp-utils-4.1.1-3.i386.rpm \ textutils-2.0e-6.i386.rpm \ libtiff-3.5.5-2.i386.rpm \ gnuplot-3.7.1-5.i386.rpm \ transfig-3.2.3-2.i386.rpm do echo "upgrading ${rpmfile}" rpm --nodeps --force -Uvh ${baseurl}/rpms/${rpmfile} \ >> /tmp/postinstall.log 2>&1 || failed done # globus rpms # for rpmfile in openssh-2.9p2-6medusa.i386.rpm \ openssh-askpass-2.9p2-6medusa.i386.rpm \ openssh-askpass-gnome-2.9p2-6medusa.i386.rpm \ openssh-clients-2.9p2-6medusa.i386.rpm \ openssh-server-2.9p2-6medusa.i386.rpm \ openssl-0.9.6a-1medusa.i386.rpm do echo "installing ${rpmfile}" rpm --nodeps --force -Uvh ${baseurl}/rpms/${rpmfile} \ >> /tmp/postinstall.log 2>&1 || failed done # install ldcg rpms # /usr/sbin/useradd -r ldcg \ >> /tmp/postinstall.log 2>&1 || failed for rpmfile in ldcg_stow-1.3.2-2_rh62.i386.rpm \ ldcg_binutils-2.11.2-2_rh62.i386.rpm \ ldcg_gcc-2.95.3-4_rh62.i386.rpm \ ldcg_fileutils-4.0-1.i386.rpm \ ldcg_m4-1.4-1.i386.rpm \ ldcg_autoconf-2.13-1.i386.rpm \ ldcg_automake-1.5-2_rh62.i386.rpm \ ldcg_libtool-1.4.2-3_rh62.i386.rpm \ ldcg_zlib-1.1.3-1.i386.rpm \ ldcg_tcl-8.3.3-2_rh62.i386.rpm \ ldcg_tk-8.3.3-2_rh62.i386.rpm \ ldcg_bwidget-1.2.1-3_rh62.i386.rpm \ ldcg_lam-6.5.5-1_rh62.i386.rpm \ ldcg_swig-1.1pl883-2_rh62.i386.rpm \ ldcg_xerces-1.4.0-2_rh62.i386.rpm \ ldcg_objectspace-1.2.0-2_rh62.i386.rpm \ ldcg_fftw-2.1.3-2_rh62.i386.rpm \ ldcg_curl-6.4-2_rh62.i386.rpm \ ldcg_iodbc-2.50.2-2_rh62.i386.rpm \ ldcg_frame-4.41-1_rh62.i386.rpm \ ldcg_tth-3.02-2_rh62.i386.rpm \ ldcg_clapack-3.0-2_rh62.i386.rpm do echo "installing ${rpmfile}" rpm -Uvh ${baseurl}/rpms/${rpmfile} \ >> /tmp/postinstall.log 2>&1 || failed done # install/upgrade additional rpms # for rpmfile in binutils-2.10.0.18-1.i386.rpm \ openmotif-2.1.30-4_MLI.i386.rpm \ openmotif-devel-2.1.30-4_MLI.i386.rpm \ ddd-3.3-1.i386.rpm \ xntp3-5.93-15medusa.i386.rpm \ autofs-3.1.4-4.i386.rpm \ libPropList-0.9.1-1.i386.rpm \ WindowMaker-0.61.1-2.i386.rpm \ ether-wake-1.05-1medusa.i386.rpm \ memtest86-2.6-3medusa.i386.rpm \ vim-5.8-1medusa.i386.rpm \ python-devel-1.5.2-13.i386.rpm \ python-tools-1.5.2-13.i386.rpm \ python-docs-1.5.2-13.i386.rpm \ bind-8.2.3-1medusa.i386.rpm \ bind-devel-8.2.3-1medusa.i386.rpm \ bind-utils-8.2.3-1medusa.i386.rpm \ fan-monitor-1.1-2medusa.i386.rpm \ ucsc-smartsuite-2.0-3mdk.i586.rpm \ acroread-4.05-6.i386.rpm \ sysstat-4.0.6-1.i386.rpm do echo "installing ${rpmfile}" rpm --nodeps --force -Uvh ${baseurl}/rpms/${rpmfile} \ >> /tmp/postinstall.log 2>&1 || failed done # master specific rpms # rpm -Uvh ${masterurl}/rpms/dhcp-2.0-12.i386.rpm \ >> /tmp/postinstall.log 2>&1 || failed rpm -Uvh ${masterurl}/rpms/psacct-6.3.2-1.i386.rpm \ >> /tmp/postinstall.log 2>&1 || failed touch /var/lib/dhcp/dhcpd.leases || failed # Globus RPM # besides installing into /opt/globus-location this RPM edits # /etc/services and /etc/inetd.conf rpm -Uvh ${baseurl}/rpms/globus-LSC-server-2.0-1.i386.rpm \ >> /tmp/postinstall.log 2>&1 || failed # define GLOBUS_LOCATION in /etc/profile echo "export GLOBUS_LOCATION=/opt/globus-location" >> /etc/profile # after the Globus RPM install still need to copy the host specific # certificate files and run ${GLOBUS_LOCATION}/setup/globus/setup-globus-gram-job-manager echo "removing broken makewhatis scripts" rm -f /etc/cron.daily/makewhatis.cron >> /tmp/postinstall.log 2>&1 || failed rm -f /etc/cron.weekly/makewhatis.cron >> /tmp/postinstall.log 2>&1 || failed # download misc configuration files to go in /etc: make sure perms are ok # echo "installing master specific configuration files" ( lynx -source ${masterurl}/etc.tar.gz | tar -C / -zxvf - ) \ >> /tmp/postinstall.log 2>&1 || failed if [ $masternode -eq 2 ] ; then cp /etc/hosts.allow.hydra /etc/hosts.allow cp /etc/exports.hydra /etc/exports fi ( for file in `lynx -source ${masterurl}/etc.tar.gz | tar -ztf -` do if [ -f /${file} ] ; then chown root.root /${file} chmod 644 /${file} fi done ) \ >> /tmp/postinstall.log 2>&1 || failed # fix permissions of custom cron files chmod a+x /etc/cron.weekly/sethardwareclock.cron chmod a+x /etc/cron.daily/makewhatis.cron # set up mountpoints and symbolic links # # should we rm -rfv /var/spool/mail ? rm -rfv /mnt /home /usr/local \ >> /tmp/postinstall.log 2>&1 || failed mkdir -p /mnt /home /net /ldcg /ldas \ >> /tmp/postinstall.log 2>&1 || failed ln -sf ../../usr/X11R6/bin/XFree86 /etc/X11/X \ >> /tmp/postinstall.log 2>&1 || failed # remove references to "/mnt/" from fstab # cp /etc/fstab /tmp/fstab.old \ >> /tmp/postinstall.log 2>&1 || failed ( cat /tmp/fstab.old | sed "/\/mnt\//d" > /etc/fstab ) \ >> /tmp/postinstall.log 2>&1 || failed # start daemons # if [ $dataserver -eq 0 ] then for initfile in xntpd autofs nfs nfslock dhcpd ypserv do /sbin/chkconfig --level 35 ${initfile} on \ >> /tmp/postinstall.log 2>&1 || failed /sbin/chkconfig --level 06 ${initfile} off \ >> /tmp/postinstall.log 2>&1 || failed done else for initfile in xntpd autofs nfs nfslock do /sbin/chkconfig --level 35 ${initfile} on \ >> /tmp/postinstall.log 2>&1 || failed /sbin/chkconfig --level 06 ${initfile} off \ >> /tmp/postinstall.log 2>&1 || failed done fi # turn kudzu off echo "turning kudzu off" /sbin/chkconfig kudzu off # add additional XF86 config files to /etc/X11 # echo "downloading additional XF86 config files to /etc/X11" | tee -a /tmp/postinstall.log lynx -source ${baseurl}/nonstandard/XF86ConfigVX1120 \ > /etc/X11/XF86ConfigVX1120 || failed lynx -source ${baseurl}/nonstandard/XF86ConfigE771 \ > /etc/X11/XF86ConfigE771 || failed lynx -source ${baseurl}/nonstandard/XF86Config770TFT \ > /etc/X11/XF86Config770TFT || failed # add custom vim / gvim rc files # echo "downloading custom vim / gvim rc" | tee -a /tmp/postinstall.log lynx -source ${baseurl}/nonstandard/vimrc \ > /root/.vimrc || failed lynx -source ${baseurl}/nonstandard/gvimrc \ > /root/.gvimrc || failed # install wmaker as deault window manager # ( lynx -source ${baseurl}/nonstandard/wmaker.medusa.tar | tar -C /root/ -xvf - ) \ >> /tmp/postinstall.log 2>&1 || failed cat << EOF >> /root/.xinitrc # Window Maker default X session startup script PATH="\$PATH:$BINDIR" exec wmaker EOF chmod +rx /root/.xinitrc # add NVRAM device # mknod /dev/nvram c 10 144 # deal with the HOSTNAME issue cp /etc/sysconfig/network /tmp/network.old \ >> /tmp/postinstall.log 2>&1 || failed ( cat /tmp/network.old | sed "/HOSTNAME/d" > /etc/sysconfig/network ) \ >> /tmp/postinstall.log 2>&1 || failed if [ $dataserver -eq 0 ] then echo "HOSTNAME=$masterextname.phys.uwm.edu" >> /etc/sysconfig/network else echo "HOSTNAME=dataserver.medusa.phys.uwm.edu" >> /etc/sysconfig/network fi # Commented out because master needs to be medusa-master001 to have NIS # operate correctly. In this case, eth1 is on the internal network. # ugly bit: change eth0 to eth1 in /etc/rc.d/init.d/eth0-gethostname #cp /etc/rc.d/init.d/eth0-gethostname /tmp/eth0-gethostname \ # >> /tmp/postinstall.log 2>&1 || failed #( sed "s/eth0/eth1/g" /tmp/eth0-gethostname > /etc/rc.d/init.d/eth0-gethostname ) \ # >> /tmp/postinstall.log 2>&1 || failed # # eth0-gethostname is interfering with normal operation # this should be later investigated and the best solution to the # problem (delayed startup?) - if any - should be implemented # rm -f /etc/rc.d/init.d/eth0-gethostname >> /tmp/postinstall.log 2>&1 || failed rm -f /etc/rc.d/rc?.d/*eth0-gethost* >> /tmp/postinstall.log 2>&1 || failed # set NIS domainname # echo "NISDOMAIN=medusa-nis" >> /etc/sysconfig/network # copy NIS config files # echo "copying NIS config files"  tee -a /tmp/postinstall.log lynx -source ${masterurl}/nonstandard/NIS_Makefile \ > /var/yp/Makefile || failed lynx -source ${masterurl}/nonstandard/securenets \ > /var/yp/securenets || failed # update the whatis database # echo "update the whatis database"  tee -a /tmp/postinstall.log rm -f /var/cache/man/tmp count=1 while [ $count -lt 10 ] ; do echo building manual index section $count >> /tmp/postinstall.log 2>&1 || failed /usr/sbin/makewhatis -v -s $count /usr/man cat /var/cache/man/whatis >> /var/cache/man/tmp /usr/sbin/makewhatis -v -s $count /usr/share/man cat /var/cache/man/whatis >> /var/cache/man/tmp /usr/sbin/makewhatis -v -s $count /usr/local/man cat /var/cache/man/whatis >> /var/cache/man/tmp let count+=1 done /usr/sbin/makewhatis -v -s n /usr/man cat /var/cache/man/whatis >> /var/cache/man/tmp /usr/sbin/makewhatis -v -s n /usr/share/man cat /var/cache/man/whatis >> /var/cache/man/tmp /usr/sbin/makewhatis -v -s n /usr/local/man cat /var/cache/man/whatis >> /var/cache/man/tmp /bin/sort < /var/cache/man/tmp | /usr/bin/uniq > /var/cache/man/whatis rm -f /var/cache/man/tmp # create root users rhosts file # echo "downloading root users rhosts file"  tee -a /tmp/postinstall.log lynx -source ${baseurl}/nonstandard/root_rhosts \ > /root/.rhosts || failed # append the video cards parameters to hwconf # ####### begin here document ###################################### cat <> /tmp/postinstall.log - class: VIDEO bus: PCI detached: 0 driver: Card:Intel 815 desc: "Intel Corporation|82815 CGC [Chipset Graphics Controller]" vendorId: 8086 deviceId: 1132 subVendorId: 8086 subDeviceId: 4532 pciType: 1 EOF ####### end here document ######################################## # add new super-users # for user in agw \ ballen \ duncan \ hammerd \ jolien \ kflasch \ owen \ patrick \ skoranda \ teviet do suser=s$user echo "creating super-user $suser" /usr/sbin/useradd -d /root/$user -g0 -u0 -m -r -p '$1$ZpiNSf6G$J.gJ/uzuiG8ffI.R9MASc/' $suser || failed # # alias passwd so users do not change root's passwd cat /root/$user/.bashrc | sed "/# User specific aliases and functions/a\\ \\ alias passwd='passwd $suser'" >/root/$user/temp.bashrc mv /root/$user/temp.bashrc /root/$user/.bashrc done ############################################################################ # necessary details for condor # # link in /etc/condor to global condor_config file ln -s /home/condor/medusa-installation/etc/condor_config /etc/condor/condor_config # # lock file directory in /var/lock mkdir /var/lock/condor chown condor.root /var/lock/condor chmod 755 /var/lock/condor # # startup script in /etc/rc.d/init.d cp /etc/condor/condor.boot /etc/rc.d/init.d/condor ln -s /etc/rc.d/init.d/condor /etc/rc.d/rc3.d/S99condor ln -s /etc/rc.d/init.d/condor /etc/rc.d/rc6.d/K02condor ln -s /etc/rc.d/init.d/condor /etc/rc.d/rc0.d/K02condor # # symlinks for condor user commands ln -s /home/condor/medusa-installation/bin/condor_compile /usr/bin/condor_compile ln -s /home/condor/medusa-installation/bin/condor_config_val /usr/bin/condor_config_val ln -s /home/condor/medusa-installation/bin/condor_findhost /usr/bin/condor_findhost ln -s /home/condor/medusa-installation/bin/condor_history /usr/bin/condor_history ln -s /home/condor/medusa-installation/bin/condor_medusa /usr/bin/condor_medusa ln -s /home/condor/medusa-installation/bin/condor_prio /usr/bin/condor_prio ln -s /home/condor/medusa-installation/bin/condor_q /usr/bin/condor_q ln -s /home/condor/medusa-installation/bin/condor_release /usr/bin/condor_release ln -s /home/condor/medusa-installation/bin/condor_rm /usr/bin/condor_rm ln -s /home/condor/medusa-installation/bin/condor_run /usr/bin/condor_run ln -s /home/condor/medusa-installation/bin/condor_status /usr/bin/condor_status ln -s /home/condor/medusa-installation/bin/condor_submit /usr/bin/condor_submit ln -s /home/condor/medusa-installation/bin/condor_userlog /usr/bin/condor_userlog ln -s /home/condor/medusa-installation/bin/condor_userprio /usr/bin/condor_userprio # # add definition of CONDOR_CONFIG to /etc/profile # echo "export CONDOR_CONFIG=/etc/condor/condor_config" >> /etc/profile # end of condor section # # ############################################################################ # # nameserver must be the last thing # rpm -Uvh ${masterurl}/rpms/master-nameserver-6.2-3medusa.noarch.rpm \ >> /tmp/postinstall.log 2>&1 || failed # add ethernet module info to modules.conf # ifdown eth0 \ >> /tmp/postinstall.log 2>&1 || failed # # netgear gigabit setup if [ $netgear -eq 1 ] then echo "setting up acenic module" | tee -a /tmp/postinstall.log /bin/echo "alias eth0 acenic" >> /etc/modules.conf /bin/echo "alias eth1 acenic" >> /etc/modules.conf if [ $dataserver -eq 0 ] then netconfig --bootproto=none --ip=$masteripint \ --nameserver=127.0.0.1 --netmask=255.255.254.0 \ --hostname="medusa-$mastername.medusa.phys.uwm.edu" \ --domain="medusa.phys.uwm.edu" --device=eth0 \ >> /tmp/postinstall.log 2>&1 || failed netconfig --bootproto=none --gateway=129.89.57.1 --ip=$masteripext \ --nameserver=127.0.0.1 --netmask=255.255.255.0 \ --hostname="$masterextname.phys.uwm.edu" \ --domain="phys.uwm.edu" \ --device=eth1 \ >> /tmp/postinstall.log 2>&1 || failed else netconfig --bootproto=none --ip=129.89.201.242 \ --nameserver=127.0.0.1 --netmask=255.255.254.0 \ --hostname="dataserver.medusa.phys.uwm.edu" \ --domain="medusa.phys.uwm.edu" --device=eth0 \ >> /tmp/postinstall.log 2>&1 || failed netconfig --bootproto=none --gateway=129.89.57.1 --ip=129.89.57.102 \ --nameserver=127.0.0.1 --netmask=255.255.255.0 \ --hostname="dataserver.phys.uwm.edu" \ --domain="phys.uwm.edu" \ --device=eth1 \ >> /tmp/postinstall.log 2>&1 || failed fi # # setup lynksys/eepro 100bt setup else echo "setting up the eepro and tulip modules" | tee -a /tmp/postinstall.log /bin/echo "alias eth1 eepro100" >> /etc/modules.conf /bin/echo "alias eth0 tulip" >> /etc/modules.conf if [ $dataserver -eq 0 ] then netconfig --bootproto=none --ip=$masteripint \ --nameserver=127.0.0.1 --netmask=255.255.254.0 \ --hostname="medusa-$mastername.medusa.phys.uwm.edu" \ --domain="medusa.phys.uwm.edu" --device=eth0 \ >> /tmp/postinstall.log 2>&1 || failed netconfig --bootproto=none --gateway=129.89.57.1 --ip=$masteripext \ --nameserver=127.0.0.1 --netmask=255.255.255.0 \ --hostname="$masterextname.phys.uwm.edu" \ --domain="phys.uwm.edu" \ --device=eth1 \ >> /tmp/postinstall.log 2>&1 || failed else netconfig --bootproto=none --ip=129.89.201.242 \ --nameserver=127.0.0.1 --netmask=255.255.254.0 \ --hostname="dataserver.medusa.phys.uwm.edu" \ --domain="medusa.phys.uwm.edu" --device=eth0 \ >> /tmp/postinstall.log 2>&1 || failed netconfig --bootproto=none --gateway=129.89.57.1 --ip=129.89.57.102 \ --nameserver=127.0.0.1 --netmask=255.255.255.0 \ --hostname="dataserver.phys.uwm.edu" \ --domain="phys.uwm.edu" \ --device=eth1 \ >> /tmp/postinstall.log 2>&1 || failed fi fi # print the finshed message # date >> /tmp/postinstall.log ####### begin here document ###################################### cat <