I got a simple method to disable XFCE from this blog post:
How to disable X at boot time in Ubuntu 11.10.
Note: the post has a heading in some non-English language,
possibly Portuguese, but the body of the post is in English.
With LightDM (lightdm
) being the new graphical user login in Ubuntu,
users will need to find a way to disable it to boot into 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 this line:
GRUB_CMDLINE_LINUX_DEFAULT="<doesn’t matter what 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.