This script is to be run as root…but the 2nd line (1st functional line) doesn’t work because root has nothing in .gconf
cp -R ~/.gconf /etc/skel/
echo “<?xml version=\”1.0\”?>
<entry name=\”frequency_get_upgrades\” mtime=\”1251122031\” type=\”int\” value=\”0\”/>
<entry name=\”auto_update\” mtime=\”1251122029\” type=\”string\”>
<entry name=\”frequency_get_updates\” mtime=\”1251222859\” type=\”int\” value=\”86400\”/>
</gconf>” >> /etc/skel/.gconf/apps/gnome-packagekit/update-icon/%gconf.xml
echo “Enter Username (person getting computer)”
echo password | passwd –stdin $userftw
echo “$userftw ALL=(ALL) ALL” >> /etc/sudoers
echo ‘douglasawh ALL=(ALL) ALL’ >> /etc/sudoers
yum -y remove evolution transmission gnome-disk-utility
yum -y install tsclient gconf-editor
echo “\nIf you have the time, run yum -y upgrade. kthxbai”
This is slightly different than the one I’m using just because it’s probably not the safest thing in the world to have all the usernames out of there.
We may add more to the script later, but right now we don’t have a lot we want to do. All these users need to be able to do is remote desktop, but we also want to make sure they are getting security updates and some other minor things that should be apparent in the script.
All of this would be easier if we were still using UCK or reconstructor in ubuntu, but due to Spacewalk, we are moving to Fedora.