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.
|
|
Edit
Find this line:
Change it to:
Update GRUB:
For systems that use systemdThis is an additional step for systemd releases, e.g. Ubuntu 15.04, the steps above for grub are still necessary. You need to tell
You will still be able to use X by typing |
|||||||||||||||||||||
|
|
Installing the GUI will probably cause it to start automatically, but it's very easy to boot to text mode in Ubuntu. Just open
line. Then run:
Your system will then always boot to text mode. If you want to boot to the GUI, just press If you want to start the GUI after boot, just run:
Hope this helps :) |
|||||||||||||||||||||
|
For 11.04 and previous versions (and perhaps later)If you want to boot into text mode: Edit
Find this line:
Add
Then update Grub:
Note:
Removing To disable GDM: After installation it will be found under System>>Administration>>Bootup-Manager Uncheck Gnome Display Manager
|
|||||||||||||
|
|
If you are using lightdm as a login manager it can be prevented from loading by disabling it. You can use an override:
And to start lightdm on command:
To restore your system so that lightdm is always started on boot:
For more information, the upstart cookbook is your friend: |
|||||
|
|
You could use Ubuntu Server edition. |
|||||
|
|
It has already beed answered in several old questions, but cannot find them just now, so I sum up the various situations here.
|
||||
|
|
|
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
to
Step 3b Also comment GRUB_HIDDEN_TIMEOUT=0 This line is for un-hiding the GRUB menu Step 4 Now we will upgrade GRUB configuration
Step 5 Ubuntu 11.10 Desktop edition use lightdm for GUI. We need to disable the same
Step 6 Now restart your machine. Found at Disable GUI Boot in Ubuntu 11.10 |
||||
|
|
|
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) Find:
change
to
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.) EDIT (My current system: Upstart 1.12.1 / Ubuntu 14.04) Due to upstart the way to resolve this lately is to simply disable your Display Manager from starting on boot:
For lightdm:
This can be any service in /etc/init including kdm/gdm. 'startx' to run as needed following a reboot. ref: |
||||
|
|
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: How to revert back to GUI as the default interface from CLI in Ubuntu desktop? |
|||||
|
|
Yes, telling the system to start in console at boot time is possible through editing grub command. When you reach grub menu, highlight Ubuntu's entry and press e. You will see text such as in the image bellow:
Change the text quiet splash to text . Press F10 to launch.
(Source: rolling-ubuntu). I have tested this on my system, 14.04, booted into text console, no lightdm in sight. Started lightdm with To avoid doing so every time, you can add permanent grub entry with such option as suggested in this answer An alternative suggestion, is to change default runlevel and change runlevels at which lightdm starts/stops, as suggested by another answer on the same post |
||||
|
|
|
You may also want to prevent the kernel from changing video modes which can be problematic, especially if you cannot see the login prompt or it is partially off the screen. Add the setting GRUB_CMDLINE_LINUX_DEFAULT="nomodeset" to /etc/default/grub:
Tested with Ubuntu Server 16.04.1 |
|||
|
|
|
I did following:
|
|||||||||||||||||
|
|
When you install Ubuntu-desktop, it will automatically set |
|||
|
|
|
If using Lubuntu 15.05 with systemd managing boot processes it is possible to boot to the console and then later from the console start the graphical environment. Follow these steps:
|
|||||||||
|
|
For Ubuntu 14.04 Trusty Tahr and Ubuntu 12.04 Precise Pangolin, systemd has been added to a third party PPA, so testing it on the latest Ubuntu LTS systems is easy. All you have to do is add the ppa to your system
Now Open the
change the line save the file and update the Grub:
Then restart now the system will boot in to text console To Login in to GUI again run
Note: Do not use |
|||||
|
protected by heemayl Aug 21 '15 at 23:23
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

