XFCE Forensics adding forgotten stuffs

This commit is contained in:
wolfden 2011-10-12 20:55:44 -05:00
parent ca13277066
commit c3f0cf4fbb
2 changed files with 35 additions and 33 deletions

66
scripts/remaster_generic_inner_chroot_script_after.sh Executable file → Normal file
View File

@ -101,20 +101,38 @@ setup_networkmanager() {
rc-update add NetworkManager default rc-update add NetworkManager default
} }
gforensic_remove_skel_stuff() { xfceforensic_remove_skel_stuff() {
# remove no longer needed folders/files # remove no longer needed folders/files
rm -r /etc/skel/.fluxbox rm -rf /etc/skel/.config/compiz
rm -r /etc/skel/.e rm -rf /etc/skel/.config/lxpanel
rm -r /etc/skel/.mozilla rm -rf /etc/skel/.config/lxsession
rm -r /etc/skel/.emerald rm -rf /etc/skel/.config/lxterminal
rm -r /etc/skel/.xchat2 rm -rf /etc/skel/.config/menus
rm -r /etc/skel/.config/compiz rm -rf /etc/skel/.config/metacity
rm -r /etc/skel/.config/lxpanel rm -rf /etc/skel/.config/nautilus
rm -r /etc/skel/.config/pcmanfm rm -rf /etc/skel/.config/openbox
rm -r /etc/skel/.config/Thunar # rm -rf /etc/skel/.config/pcmanfm
rm -r /etc/skel/.config/xfce4 rm -rf /etc/skel/.config/Terminal
rm -r /etc/skel/.gconf/apps/compiz rm -rf /etc/skel/.config/vlc
rm -r /etc/skel/.gconf/apps/gset-compiz rm -rf /etc/skel/.config/xfce4/desktop
rm -rf /etc/skel/.config/xfce4/panel
rm -rf /etc/skel/.e
rm -rf /etc/skel/.emerald
rm -rf /etc/skel/.gconf/apps/compiz
rm -rf /etc/skel/.gconf/apps/gset-compiz
rm -rf /etc/skel/.gconf/apps/tomboy
rm -rf /etc/skel/.gconf/apps/nautilus
rm -rf /etc/skel/.gconf/apps/metacity
rm -rf /etc/skel/.gstreamer-0.10
rm -rf /etc/skel/.fluxbox
rm -rf /etc/skel/.kde4
rm -rf /etc/skel/.mozilla
# rm -rf /etc/skel/.opera
rm -rf /etc/skel/.ssh
rm -rf /etc/skel/.xine
rm -rf /etc/skel/Desktop/*
rm -rf /usr/share/backgrounds/iottinka
rm -rf /usr/share/wallpapers/*
} }
setup_oss_gfx_drivers() { setup_oss_gfx_drivers() {
@ -226,29 +244,15 @@ elif [ "$1" = "gnome" ]; then
setup_displaymanager setup_displaymanager
setup_sabayon_mce setup_sabayon_mce
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
elif [ "$1" = "gforensic" ]; then elif [ "$1" = "xfceforensic" ]; then
setup_networkmanager setup_networkmanager
# Fix ~/.dmrc to have it load GNOME # Fix ~/.dmrc to have it load Xfce
echo "[Desktop]" > /etc/skel/.dmrc echo "[Desktop]" > /etc/skel/.dmrc
echo "Session=gnome" >> /etc/skel/.dmrc echo "Session=xfce" >> /etc/skel/.dmrc
rc-update del system-tools-backends boot remove_desktop_files
rc-update add system-tools-backends default
setup_displaymanager
setup_sabayon_mce
gforensic_remove_skel_stuff
setup_cpufrequtils setup_cpufrequtils
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
elif [ "$1" = "kforensic" ]; then
setup_networkmanager
# Fix ~/.dmrc to have it load KDE
echo "[Desktop]" > /etc/skel/.dmrc
echo "Session=KDE-4" >> /etc/skel/.dmrc
rc-update del system-tools-backends boot
rc-update add system-tools-backends default
setup_displaymanager setup_displaymanager
setup_sabayon_mce
gforensic_remove_skel_stuff gforensic_remove_skel_stuff
setup_cpufrequtils
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
elif [ "$1" = "kde" ]; then elif [ "$1" = "kde" ]; then
setup_networkmanager setup_networkmanager

View File

@ -17,5 +17,3 @@ cp "${GFORENSIC_DIR}"/files/helpers.rc "${CHROOT_DIR}/etc/skel/.config/xfce4/hel
cp "${GFORENSIC_DIR}"/files/rc.lua "${CHROOT_DIR}/etc/xdg/awesome/rc.lua" cp "${GFORENSIC_DIR}"/files/rc.lua "${CHROOT_DIR}/etc/xdg/awesome/rc.lua"
cp -r "${GFORENSIC_DIR}"/files/OSDark "${CHROOT_DIR}/usr/share/icons/" cp -r "${GFORENSIC_DIR}"/files/OSDark "${CHROOT_DIR}/usr/share/icons/"
cp -r "${GFORENSIC_DIR}"/files/NewSlickness-round "${CHROOT_DIR}/usr/share/themes/" cp -r "${GFORENSIC_DIR}"/files/NewSlickness-round "${CHROOT_DIR}/usr/share/themes/"
# cp "${GFORENSIC_DIR}"/etc/skel/.gconf/desktop/gnome/interface/%gconf.xml "${CHROOT_DIR}/etc/skel/.gconf/desktop/gnome/interface/%gconf.xml"
# cp "${GFORENSIC_DIR}"/etc/skel/.gconf/apps/nautilus/preferences/%gconf.xml "${CHROOT_DIR}/etc/skel/.gconf/apps/nautilus/preferences/%gconf.xml"