This is how I switched my desktop from Xubuntu to Ubuntu. Different combinations are done with a similar approach. See the reference below for a detailed explanation.
sudo apt-get updatesudo apt-get install ubuntusudo update-alternatives --config usplash-artwork.so- Select artwork for the boot and shutdown screens, enter the following two commands in a Terminal window:
sudo update-initramfs -usudo dpkg-reconfigure gdm- However both Ubuntu & Xubuntu uses gdm, following step will resolve this problem
sudo gdmsetup- If this fails to launch a GUI window, first run
sudo suand then typegdmsetup - Go to “Local” tab and select the Ubuntu theme
- If this fails to launch a GUI window, first run
When you logon next time do not forget to select the “gnome” as the current session.
In my case compiz caused Ubuntu to consume a lot of CPU power so I uninstalled it:
sudo apt-get –purge remove compiz* libcompizconfig*
Reference