Possible Duplicate:
How to disable X at boot time?
How to configure my Ubuntu 10.10 Desktop (Maverick) to start in a Terminal like mode? I don't want any graphics.
I can't get rid of GDM. How should I disable only graphical interface of my Ubuntu? I want it to start only in text mode, but I want that everything else would start-up.
I can't use recovery mode, because I want that it would run in text mode all the time even after restarts.