# # # NOTES: # # 8/13/99 # Added entry to remove fermi-ups package (installed on 5.0.2). # # 1/25/99 # Added yppasswdd to be installed and ran on the systems # # 1/27/99 # Added ntp.conf to be copied to each system. The router's IP # needed to be added to have it set the time from it. # # # 7/19/99 # Made changes so to work in workgroup mode on 5.2.1 --- cjs # if [ `uname` != 'Linux' ] then echo "You are not running on a Linux system. exiting" exit fi # WORKGROUP=`cat /etc/workgroup` # # #The following change is because some people are still using old versions # of the fue stuff echo "making a symbolic link from /usr/bin/less to /usr/local/bin/less" ln -s /usr/bin/less /usr/local/bin/less # # # echo "add root cron job to backup local /var/spool/mail to /User/inboxbackup" mkdir /var/spool/cronsrc cp /etc/$WORKGROUP/configfiles/inboxcronbackup /var/spool/cronsrc/inboxcronbackup crontab /var/spool/cronsrc/inboxcronbackup # # echo "adding zip entries to fstab for hdd zip drives" grep --silent /dev/hdd /etc/fstab if [ $? -ne 0 ] then grep --silent IOMEGA /var/log/dmesg if [ $? -eq 0 ] then grep --silent hdd /var/log/dmesg if [ $? -eq 0 ] then cp /etc/fstab /etc/fstab.org cat /etc/fstab /etc/$WORKGROUP/configfiles/fstab.ziphdd >/tmp/fstab.tmp cp /tmp/fstab.tmp /etc/fstab echo "Just added zip entries to /etc/fstab" fi fi fi # # echo "now fixing floppy and cdrom for user mounts" cp /etc/fstab /etc/fstab.org.$$ sed -e "/floppy/s/noauto /noauto,user/" -e "/iso9660/s/noauto,ro /noauto,ro,user/" /etc/fstab >/tmp/fstab.$$ cp /tmp/fstab.$$ /etc/fstab # # # echo "setting up printing" cp /etc/printcap /etc/printcap.org.$$ cp /etc/$WORKGROUP/configfiles/printcap /etc/printcap mkdir /var/spool/lpd/wh3e_hp5si_single mkdir /var/spool/lpd/wh3e_hp5si_double mkdir /var/spool/lpd/wh3e_tekclr mkdir /var/spool/lpd/wh3e_tekclr_trans mkdir /var/spool/lpd/wh3w_hp5si_single mkdir /var/spool/lpd/wh3w_hp5si_double mkdir /var/spool/lpd/wh3w_colorps mkdir /var/spool/lpd/wh3w_colorps_trans /sbin/chkconfig --level 35 lpd on # # echo "now doing resolv.conf" mv /etc/resolv.conf /etc/resolv.conf.org.$$ cp /etc/$WORKGROUP/configfiles/resolv.conf /etc/resolv.conf # # # echo "now doing exports for nfs serving" mv /etc/exports /etc/exports.org.$$ cp /etc/$WORKGROUP/configfiles/exports /etc/exports # # echo "now doing nfs serving now" /sbin/chkconfig --level 35 nfs on # # #echo "now doing inetd.conf" #mv /etc/inetd.conf /etc/inetd.conf.org.$$ #cp configfiles/inetd.conf /etc/inetd.conf # #echo "now doing /etc/inittab" #mv /etc/inittab /etc/inittab.org.$$ #cp configfiles/inittab /etc/inittab # # # echo "setting up nis" mv /etc/yp.conf /etc/yp.conf.org.$$ cp /etc/$WORKGROUP/configfiles/yp.conf /etc/yp.conf /sbin/chkconfig --level 35 autofs on /sbin/chkconfig --level 35 ypbind on echo 'NISDOMAIN=theory.fnal.gov' >> /etc/sysconfig/network # # echo "/root/.rhosts" mv /root/.rhosts /root/.rhosts.org.$$ cp /etc/$WORKGROUP/configfiles/rhosts /root/.rhosts # # echo "Setup Complete."