(XFCE) How to Remove XFCE Desktop From Ubuntu 12.04

(XFCE) How to Remove the XFCE Desktop From Ubuntu 12.04

I Find Myself Needing to Remove XFCE Desktop on Ubuntu 12.04

During our video series, I found it necessary to remove the XFCE desktop from Ubuntu Server and re-install it. The problem I later discovered was caused by forgetting to install the Oracle VirtualBox guest tools. Never the less, this is a good command to know and can help someone out in a real pinch.

Loading and unloading and uninstalling a graphical interface give you the advantages of using a desktop during the install while at the same time providing you with a method of reducing your attack footprint. I chose to use XFCE because it is a minimal desktop system and is still user-friendly(compared with other minimal open source desktops IMHO.)

Here is the command to Remove the XFCE Desktop from Ubuntu 12.04

sudo apt-get update
sudo apt-get upgrade

sudo apt-get remove xfce-keyboard-shortcuts xfce4-appfinder xfce4-cpugraph-plugin xfce4-dict xfce4-fsguard-plugin xfce4-indicator-plugin xfce4-mailwatch-plugin xfce4-mixer xfce4-mount-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-power-manager-data xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-session xfce4-settings xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-utils xfce4-verve-plugin xfce4-volumed xfce4-weather-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4 xfwm4-themes xscreensaver xscreensaver-data xscreensaver-gl xubuntu-artwork xubuntu-default-settings xubuntu-desktop xubuntu-docs xubuntu-icon-theme xubuntu-wallpapers

Here is the command to re-install the XFCE desktop from Ubuntu 12.04

Here is the script just do:


wget https://rawcell.com/wp-content/uploads/purge-xfce41.tar

tar -xvf purge-xfce4.tar


chmod +x purge-xfce4

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install xfce4

Not to take credit for the gem of a command to remove XFCE from Ubuntu 12.04, it was originally found here: http://ubuntuforums.org/showthread.php?t=2069478