Let's say you have both LightDM and GDM display managers installed on your computer (running Ubuntu or any other Debian-based Linux distribution). LightDM is default but you want to switch to GDM - to do this, run the command below in a terminal: