Script as of 2/1/2003
#!/bin/bash
clear
echo "We need to add a root password."
echo "Please use root."
passwd
echo ""
echo "Thank you"
sleep 2
clear
echo "Now we will add the cfk user. You will be prompted for a password"
echo "Please use cfk."
echo ""
sleep 3
/usr/sbin/useradd -m -d /home/cfk -s /bin/bash cfk
/usr/bin/passwd cfk
echo ""
echo ""
echo "the cfk user has been added."
sleep 3
clear
echo "Now we will begin adding the packages"
for packs in /mnt/cdrom/cfkpacks/*.tgz
do
/sbin/installpkg $packs
done
clear
echo "The default packages have been added"
sleep 3
echo ""
echo "Now installing OpenOffice"
sleep 3
tar -C / -pxzvf /mnt/cdrom/office/OpenOffice.tar.gz
echo ""
echo ""
echo "extraction complete"
sleep 3
echo ""
echo "Removing default files in cfk home directory"
rm -Rf /home/cfk/.icewm /home/cfk/.dfm*
echo ""
echo "files removed"
echo ""
echo "Adding rc files for icewm, dfm to /home/cfk, .xsession and .xinitrc"
tar -C /home/cfk -pxzvf /mnt/cdrom/files/cfkusers_rc.tar.gz
echo ""
echo "adding system files"
tar -C / -pxzvf /mnt/cdrom/files/system_files.tar.gz
echo ""
echo "changing permissions of /sbin/reboot and /sbin/halt"
chmod +s /sbin/reboot /sbin/halt
echo ""
echo ""
echo ""
echo "Getting rid of profanity"
cp /usr/X11R6/share/games/lbreakout2/sounds/freeze.wav /usr/X11R6/share/games/lbreakout2/sounds/damn.wav
cp /usr/X11R6/share/games/lbreakout2/sounds/freeze.wav /usr/X11R6/share/games/lbreakout2/sounds/dammit.wav
sleep 3
clear
echo "****************************************************************************"
echo "* *"
echo "* Do you want to run the lilo script? *"
echo "* (if this is a dual boot system or /boot is not on hda2, then answer no) *"
echo "* *"
echo "****************************************************************************"
echo ""
echo "Run lilo"
echo ""
echo " (y)es"
echo " (n)o"
read answer
case "$answer" in
y)
cp /etc/lilo.conf /etc/lilo.conf.old
cp /mnt/cdrom/files/lilo.conf /etc
lilo
;;
*)
;;
esac
clear
echo "**********************************************"
echo "* *"
echo "* Now it is time to rum vasm to configure X *"
echo "* *"
echo "**********************************************"
echo ""
echo ""
echo "Here is your video chipset information:"
echo ""
echo ""
/sbin/lspci |grep VGA
echo ""
echo ""
echo "Press enter to continue"
read enter
case "$enter" in
*)
;;
esac
sleep 4
/sbin/vasm
clear
sleep 2
cd /root
echo "You have finished configuring the system."
echo "If all went well you should now be ready to move on."
echo "Please unmount and remove the cdrom"
echo "Then move to run level 5."
echo ""
echo "Type:"
echo ""
echo " init 5"
echo ""
echo "to start run level 5"
echo "(You may want to try and run X as root first to make sure all is okay)"
echo ""
echo "************************************************************************"
echo ""
echo ""
echo "Press enter to continue"
read enter
case "$enter" in
*)
;;
esac
/usr/bin/clear
echo "Would you like to configure networking?"
echo "Enter:"
echo " (y)es"
echo " (n)o"
read network
case "$network" in
y)
/sbin/netconfig
;;
*)
;;
esac
/sbin/clear
echo "Would you like to try and configure sound?"
echo "(Note: Sometimes this can cause looping if there are problems;"
echo "you may have to ctrl-c to get out).
echo ""
echo " (y)es"
echo " (n)o"
read sound
case "$sound" in
y)
/usr/sbin/sndconfig
;;
*)
;;
esac
/usr/bin/clear
echo "We are now finished with the automated script."
echo "Now is the time to have fun and play/test."
echo "Enjoy"
echo ""
echo ""
echo "Script created by Linc Fessenden, Randy Kramer, and Dann S. Washko for CFK"
echo ""
Contributors
- () DannWashko - 01 Feb 2003
- <If you edit this page: add your name here; move this to the next line; and include your comment marker (initials), if you have created one, in parenthesis before your WikiName.>