sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX_DEFAULT="text"
sudo update-grub
This is an additional step for systemd releases, e.g. Ubuntu 15.04, the steps above for grub are still necessary. You need to tell systemd to not load the graphical login manager:
sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target
echo "manual" | sudo tee -a /etc/init/lightdm.override