I have a remote machine running Debian 8 (Jessie) with lightdm installed. I want it to start in no-GUI mode, but I don't want to remove all X-related stuff to still be able to run it though SSH with the
-X parameter. So how to disable X server autostart without removing it?
systemctl stop lightdm, it stops the lightdm, but it runs again after reboot. I also tried
systemctl disable lightdm, but it basically does nothing. It renames lightdm's scripts in
/etc/rc*.d directories, but it still starts after reboot, so what am I doing wrong? And I can't just
update-rc.d lightdm stop, because it's deprecated and doesn't work.