Is it possible to disable X at boot time? I'm setting up a server so it would be nice if it wouldn't load the graphical interface every time I boot.
For Ubuntu 11.10 and higher
Edit /etc/default/grub with your favorite editor,
Find out this line:
Change it to:
No need to remove / disable
You will still be able to use X by typing
For 11.04 and previous versions (and perhaps later)
If you want to boot into text mode:
Find this line:
Then update Grub:
To disable GDM:
After installation it will be found under System>>Administration>>Bootup-Manager
Uncheck Gnome Display Manager
I did following
Step 1 First update your repository by running
Step 2 There is some bug in old version of lightdm, so we need to upgrade the same. To do so run,
Step 3 Now we have to modify grub config.
Step 3a Open
Step 3b Also comment
Step 4 Now we will upgrade GRUB configuration
Step 5 Now restart your machine.
I noticed this thread revolves around assuming you are using LightDM as the Display Manager. Though this may be the usual DM/welcomer, that isn't part of the original question. (And he did not specify..)
In my case:
I use KDE/KDM on my server. Instead, I simply disable the upstart/service from starting under runlevel 2:
/etc/init/kdm.conf: (kdm: 4:4.8.5-0ubuntu0.3 , Upstart Version: 1.5-0ubuntu7.2)
Assuming your default runlevel is 2 on fresh reboot, you will have a console and not KDM. Then you can run DM/DE manually when needed = Use 'startx' /etc. To return machine to console and exit X server completely after this, just use 'log out'.
Other dm .confs scripts are similar. (I setup my server like this.. to be able to work using a GUI occasionally - but, not pull resources when not using/needed or simply rebooting.)
The steps are:
Customize the grub 2 configuration:
Find the line
and change it to
Save the changes (hit ctrl + o followed by ENTER) and close the file (ctrl + x).
To apply the new configuration do this
Now restart your PC
There you are... A text-graphic login screen... Supply your credentials to log-in to the tty (default tty1). You can change the tty's with crtl + alt + [F1 to F6] for tty1 to tty6. You may also start the X session (X11 session), the graphical user interface, with
PS: In case you want to revert the changes you've made here follow the link: