Not sure how helpful this would be to anyone, but here's a script that could be distributed with Mac4Lin to allow users to revert to a pre-Mac4Lin state if they'd like:
!/bin/sh
Mac4Lin Uninstaller
Send hatemail to Michael Thompson via actionscripted@gmail.com
echo
echo "*****"
echo " Welcome to Mac4Lin v1.0 Uninstaller "
echo "*****"
echo
echo "This will completely remove all files added by running"
echo "the Mac4Lin v1.0 Installer and reset system settings to"
echo "Ubuntu defaults."
echo
echo "You may be asked to provide your root password. This is"
echo "because there were files placed in system directories"
echo "that cannot be fixed without root access."
echo
echo "The following directories and files will be removed/restored:"
echo " $HOME/.themes/Mac4Lin*"
echo " $HOME/.icons/Mac4Lin*"
echo " $HOME/.emerald/theme/Mac4Lin*"
echo " $HOME/.xmms/Skins/Mac4Lin*"
echo " $HOME/.bmp/Skins/Mac4Lin*"
echo " $HOME/Mac4Lin*"
echo " /usr/share/gdm/themes/Mac4Lin*"
echo " /usr/share/sounds/Mac4Lin*"
echo " /usr/share/backgrounds/Mac4Lin*"
echo " /usr/share/pixmaps/pidgin/"
echo
echo "Are you sure you want to remove Mac4Lin? [y/n]"
read like_the_fonz
echo
echo "When you ran the Mac4Lin Installer, did you give it root accesss? [y/n]"
echo "If you're not sure, type 'y'."
read remove_root_shizzle
echo
if [ $like_the_fonz = y -o $like_the_fonz = Y ]; then
echo "Removing and restoring files..."
rm -rf $HOME/.themes/Mac4Lin
rm -rf $HOME/.icons/Mac4Lin
rm -rf $HOME/.emerald/theme/Mac4Lin
rm -rf $HOME/.emerald/themes/Mac4Lin
rm -rf $HOME/.xmms/Skins/Mac4Lin
rm -rf $HOME/.bmp/Skins/Mac4Lin
# The tar.gz is really just a tar, and it's file-system relative...
if [ $remove_root_shizzle = y -o $remove_root_shizzle = Y ]; then
tar -xf $HOME/Mac4Lin/Backup/pidgin_backup.tar.gz
sudo cp -r ./usr /
rm -rf ./usr
rm -rf $HOME/Mac4Lin
sudo rm /usr/share/backgrounds/Mac4Lin
sudo rm -rf /usr/share/gdm/themes/Mac4Lin
sudo rm -rf /usr/share/sounds/Mac4Lin
fi
echo 'Done.'
echo
echo "Repairing system settings..."
# certain settings are fixed automatically with the file removal/repair
gconftool-2 --type string --set /desktop/gnome/interface/gtk_theme "Human"
gconftool-2 --type string --set /apps/metacity/general/theme "Human"
gconftool-2 --type string --set /apps/metacity/general/button_layout "menu:minimize,maximize,close"
gconftool-2 --type string --set /desktop/gnome/interface/toolbar_style "both"
gconftool-2 --type string --set /desktop/gnome/interface/icon_theme "Human"
echo 'Done.'
echo
echo " ALL SET! "
echo
echo "The fonts installed by Mac4Lin were not removed for"
echo "safety's sake but can be removed from here:"
echo " $HOME/fonts/"
echo
echo "Additionally, the AWN plugin for Pidgin was not removed but"
echo "can be deleted from here:"
echo " $HOME/.purple/plugins/pidgin_awn.so"
echo
else
echo "Exiting without making any changes..."
fi
echo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not sure how helpful this would be to anyone, but here's a script that could be distributed with Mac4Lin to allow users to revert to a pre-Mac4Lin state if they'd like:
!/bin/sh
Mac4Lin Uninstaller
Send hatemail to Michael Thompson via actionscripted@gmail.com
echo
echo "*****"
echo " Welcome to Mac4Lin v1.0 Uninstaller "
echo "*****"
echo
echo "This will completely remove all files added by running"
echo "the Mac4Lin v1.0 Installer and reset system settings to"
echo "Ubuntu defaults."
echo
echo "You may be asked to provide your root password. This is"
echo "because there were files placed in system directories"
echo "that cannot be fixed without root access."
echo
echo "The following directories and files will be removed/restored:"
echo " $HOME/.themes/Mac4Lin*"
echo " $HOME/.icons/Mac4Lin*"
echo " $HOME/.emerald/theme/Mac4Lin*"
echo " $HOME/.xmms/Skins/Mac4Lin*"
echo " $HOME/.bmp/Skins/Mac4Lin*"
echo " $HOME/Mac4Lin*"
echo " /usr/share/gdm/themes/Mac4Lin*"
echo " /usr/share/sounds/Mac4Lin*"
echo " /usr/share/backgrounds/Mac4Lin*"
echo " /usr/share/pixmaps/pidgin/"
echo
echo "Are you sure you want to remove Mac4Lin? [y/n]"
read like_the_fonz
echo
echo "When you ran the Mac4Lin Installer, did you give it root accesss? [y/n]"
echo "If you're not sure, type 'y'."
read remove_root_shizzle
echo
if [ $like_the_fonz = y -o $like_the_fonz = Y ]; then
echo "Removing and restoring files..."
rm -rf $HOME/.themes/Mac4Lin
rm -rf $HOME/.icons/Mac4Lin
rm -rf $HOME/.emerald/theme/Mac4Lin
rm -rf $HOME/.emerald/themes/Mac4Lin
rm -rf $HOME/.xmms/Skins/Mac4Lin
rm -rf $HOME/.bmp/Skins/Mac4Lin
# The tar.gz is really just a tar, and it's file-system relative...
if [ $remove_root_shizzle = y -o $remove_root_shizzle = Y ]; then
tar -xf $HOME/Mac4Lin/Backup/pidgin_backup.tar.gz
sudo cp -r ./usr /
rm -rf ./usr
rm -rf $HOME/Mac4Lin
sudo rm /usr/share/backgrounds/Mac4Lin
sudo rm -rf /usr/share/gdm/themes/Mac4Lin
sudo rm -rf /usr/share/sounds/Mac4Lin
fi
echo 'Done.'
echo
echo "Repairing system settings..."
# certain settings are fixed automatically with the file removal/repair
gconftool-2 --type string --set /desktop/gnome/interface/gtk_theme "Human"
gconftool-2 --type string --set /apps/metacity/general/theme "Human"
gconftool-2 --type string --set /apps/metacity/general/button_layout "menu:minimize,maximize,close"
gconftool-2 --type string --set /desktop/gnome/interface/toolbar_style "both"
gconftool-2 --type string --set /desktop/gnome/interface/icon_theme "Human"
echo 'Done.'
echo
echo " ALL SET! "
echo
echo "The fonts installed by Mac4Lin were not removed for"
echo "safety's sake but can be removed from here:"
echo " $HOME/fonts/"
echo
echo "Additionally, the AWN plugin for Pidgin was not removed but"
echo "can be deleted from here:"
echo " $HOME/.purple/plugins/pidgin_awn.so"
echo
else
echo "Exiting without making any changes..."
fi
echo
Thanks for the script. I will include it in the final version.