I got a simple method to disable XFCE from this blog post "HOW TO DISABLE X AT BOOT TIME IN UBUNTU 11.10"
With lightdm being the new graphical user login in Ubuntu users will need to find a way to disable it to boot in to text mode, fortunately the people behind lightdm have made that really easy to do.
Edit /etc/default/grub with your favorite editor,
sudo nano /etc/default/grub
Find out this line:
GRUB_CMDLINE_LINUX_DEFAULT=”<no matter what's you find here>”
Change it to:
GRUB_CMDLINE_LINUX_DEFAULT=”text”
Update Grub:
sudo update-grub
No need to remove / disable lightdm upstart conf, it already does that for you.
lightdm.conf
# Check kernel command-line for inhibitors, unless we are being called
# manually
for ARG in $(cat /proc/cmdline); do
if [ "$ARG" = "text" ]; then
plymouth quit || :
stop
exit 0
fi
done
You will still be able to use X by typing startx after you logged in.