CFKSCRIPT
Below is the initial cfkscript used to automate the installation process of the cfk software disc and facilitate other necessary changes.
#!/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 ""
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 " 1 = yes"
echo " 2 = no"
read answer
case "$answer" in
1)
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 "**********************************************"
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 ""
#rhk 27 Jan 2003
cd /usr/X11R6/share/games/lbreakout2/sounds
cp freeze.wav damn.wav
cp freeze.wav dammit.wav
cd /root
sndconfig
netconfig
#rhk 27 Jan 2003
echo "script created by Linc Fessenden and Dann S. Washko for LVCFK"
Notes
Contributors
- () DannWashko - 27 Jan 2003
- RandyKramer - 28 Jan 2003 -- just pasted in a change, basically "from" dann (not tested)
- <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.>