Boot Ubuntu 16.04 into command line / do not start GUIStarting Ubuntu without the GUIStarting Ubuntu without...
Too soon for a plot twist?
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
Is this Paypal Github SDK reference really a dangerous site?
Why does Central Limit Theorem break down in my simulation?
Would those living in a "perfect society" not understand satire
Was it really inappropriate to write a pull request for the company I interviewed with?
Is divide-by-zero a security vulnerability?
Are small insurances worth it?
Will expression retain the same definition if particle is changed?
Professor forcing me to attend a conference, I can't afford even with 50% funding
Why restrict private health insurance?
Why do phishing e-mails use faked e-mail addresses instead of the real one?
How do I increase the number of TTY consoles?
Does the US political system, in principle, allow for a no-party system?
Under what conditions can the right to remain silent be revoked in the USA?
Automaton recognizing ambiguously accepted words of another automaton
Use Mercury as quenching liquid for swords?
Can the Witch Sight warlock invocation see through the Mirror Image spell?
Can I negotiate a patent idea for a raise, under French law?
What does the Digital Threat scope actually do?
How exactly does an Ethernet collision happen in the cable, since nodes use different circuits for Tx and Rx?
Sampling from Gaussian mixture models, when are the sampled data independent?
Are all players supposed to be able to see each others' character sheets?
Can one live in the U.S. and not use a credit card?
Boot Ubuntu 16.04 into command line / do not start GUI
Starting Ubuntu without the GUIStarting Ubuntu without the GUIUBUNTU boot into terminalBoot Mac Lion into Command LineChromium: ERR_CONNECTION_REFUSED on Ubuntu 16.04Not able to boot windows 8.1 and install/ live-boot ubuntu 16.04How to boot to command-line interface in Ubuntu 16.04grub entry for console onlyCannot boot into Grub2 menu (dual-boot Ubuntu 16.04 and Windows 10)Unable to boot Ubuntu 16.04 after update and windows bootHow to boot into terminal on Linux Mint XFCE?
I want my Ubuntu 16.04 to not start GUI on boot and show command line console only. I have tried the following recipies but none of them are for version 16.04 and so they do not seem to work — GUI starts anyway:
GRUB_CMDLINE_LINUX=”text”
Changing the default runlevel
Ideally I also want to be able to start GUI by typig a command.
linux command-line boot gui ubuntu-16.04
add a comment |
I want my Ubuntu 16.04 to not start GUI on boot and show command line console only. I have tried the following recipies but none of them are for version 16.04 and so they do not seem to work — GUI starts anyway:
GRUB_CMDLINE_LINUX=”text”
Changing the default runlevel
Ideally I also want to be able to start GUI by typig a command.
linux command-line boot gui ubuntu-16.04
add a comment |
I want my Ubuntu 16.04 to not start GUI on boot and show command line console only. I have tried the following recipies but none of them are for version 16.04 and so they do not seem to work — GUI starts anyway:
GRUB_CMDLINE_LINUX=”text”
Changing the default runlevel
Ideally I also want to be able to start GUI by typig a command.
linux command-line boot gui ubuntu-16.04
I want my Ubuntu 16.04 to not start GUI on boot and show command line console only. I have tried the following recipies but none of them are for version 16.04 and so they do not seem to work — GUI starts anyway:
GRUB_CMDLINE_LINUX=”text”
Changing the default runlevel
Ideally I also want to be able to start GUI by typig a command.
linux command-line boot gui ubuntu-16.04
linux command-line boot gui ubuntu-16.04
edited Mar 20 '17 at 10:16
Community♦
1
1
asked Jul 28 '16 at 17:26
GreendrakeGreendrake
3221311
3221311
add a comment |
add a comment |
5 Answers
5
active
oldest
votes
You could disable the display manager service with systemctl
. For example if your display manager is lightdm
then run:
sudo systemctl disable lightdm.service
This will prevent the service from starting at boot.
Edit:
I forgot to mention how to start the GUI. It is as simple as starting the systemd service:
sudo systemctl start lightdm.service
1
This worked for me on 16.04 on a arm board. Thanks. :)
– wojci
Nov 9 '16 at 18:51
This did not work on my system. (16.04 LTS on a PC) It shows the initial screen with all the [ OK ] messages as the services start, and then freezes.
– Paul Williams
Mar 30 '18 at 3:24
BTW to re-enable the service the command is actually sudo systemctl enable lightdm.service
– Paul Williams
Mar 30 '18 at 4:25
add a comment |
Instead of text
use runlevel 3
:
GRUB_CMDLINE_LINUX="3"
# To remove all the fancy graphics you need to get rid of `splash`.
GRUB_CMDLINE_LINUX_DEFAULT=”quiet”
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console
Then update-grub
and reboot.
But you really only need GRUB_CMDLINE_LINUX="3"
. For quick test hit ESC during booting to get into the grub boot menu. Then press e and find the line which specifies kernel and add 3
at the end:
linux /vmlinuz root=/dev/mapper/ubuntu ro 3
Boot it with CTRL+x
Ideally I also want to be able to start GUI by typig a command.
One of these:
$ sudo telinit 5
$ sudo service lightdm restart
$ sudo systemctl start lightdm
Tested on Ubuntu 16.04.1 LTS.
1
Replacing "text" by "3", worked for me ! Very efficient ! Thanks
– ThomasGuenet
Jan 26 '17 at 17:02
hi. the answer looks nice but its hard to understand. I just Ideally need one command to boot into text mode, do what I need, and go back into normal desktop mode.
– nyxee
Aug 19 '17 at 2:29
1
@nyxee My answer has 3 sections. Follow the second: "For quick test hit..."
– A.D.
Aug 19 '17 at 6:29
I appreciate the information in your post. by the time people look for this information, they are normally exhausted with other options. I gave an example of a simple answer below.
– nyxee
Aug 19 '17 at 23:32
1
Nice answer. I'm just used to post longer answers with a lot of information so we all can learn more. And also I'm familiar with grub cmd line options so it's faster for me to add 3 and I'm good to go + it's multi-distro solution :)
– A.D.
Aug 20 '17 at 16:40
|
show 3 more comments
- When in GUI-mode, this will take you to text-mode (runlevel 2,3,4) on reboot. You may get a blank screen (no-gui) which is a reminder that there's no GUI :-), enter ctrlalt(F1,F2,...) to use the runlevels.
systemctl set-default multi-user.target
- This will take you back to GUI boot when you are in text-mode.
systemctl set-default graphical.target
add a comment |
One of the following, as part of the kernel command line (editable via GRUB), should work:
systemd.unit=multi-user.target
will override the default of "graphical.target" – this, along with systemctl set-default, is the equivalent of "default runlevel";
systemd.mask=lightdm.service
will forbid a specific service from starting, until manually systemctl unmask'd later;
systemd.mask=display-manager.service
– same;
rescue
akasystemd.unit=rescue.target
is the equivalent of "single-user runlevel"; not for daily use, but useful when fixing broken GUI.
it would be useful to mention how you return to normality from that "emergency setting" .
– nyxee
Aug 19 '17 at 2:27
1
For the benefit of others, the actual CLI command you want issystemctl set-default multi-user.target
(and I believesystemctl set-default graphical.target
would reset it)
– Andrea
Sep 17 '17 at 20:19
That's only if you want it semi-permanent, and can reach a shell in the first place. The main post has nothing to do with CLI commands.
– grawity
Sep 17 '17 at 22:08
add a comment |
for ubuntu 18.04 enable root user
sudo passwd
and then
systemctl set-default multi-user.target
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1106174%2fboot-ubuntu-16-04-into-command-line-do-not-start-gui%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
You could disable the display manager service with systemctl
. For example if your display manager is lightdm
then run:
sudo systemctl disable lightdm.service
This will prevent the service from starting at boot.
Edit:
I forgot to mention how to start the GUI. It is as simple as starting the systemd service:
sudo systemctl start lightdm.service
1
This worked for me on 16.04 on a arm board. Thanks. :)
– wojci
Nov 9 '16 at 18:51
This did not work on my system. (16.04 LTS on a PC) It shows the initial screen with all the [ OK ] messages as the services start, and then freezes.
– Paul Williams
Mar 30 '18 at 3:24
BTW to re-enable the service the command is actually sudo systemctl enable lightdm.service
– Paul Williams
Mar 30 '18 at 4:25
add a comment |
You could disable the display manager service with systemctl
. For example if your display manager is lightdm
then run:
sudo systemctl disable lightdm.service
This will prevent the service from starting at boot.
Edit:
I forgot to mention how to start the GUI. It is as simple as starting the systemd service:
sudo systemctl start lightdm.service
1
This worked for me on 16.04 on a arm board. Thanks. :)
– wojci
Nov 9 '16 at 18:51
This did not work on my system. (16.04 LTS on a PC) It shows the initial screen with all the [ OK ] messages as the services start, and then freezes.
– Paul Williams
Mar 30 '18 at 3:24
BTW to re-enable the service the command is actually sudo systemctl enable lightdm.service
– Paul Williams
Mar 30 '18 at 4:25
add a comment |
You could disable the display manager service with systemctl
. For example if your display manager is lightdm
then run:
sudo systemctl disable lightdm.service
This will prevent the service from starting at boot.
Edit:
I forgot to mention how to start the GUI. It is as simple as starting the systemd service:
sudo systemctl start lightdm.service
You could disable the display manager service with systemctl
. For example if your display manager is lightdm
then run:
sudo systemctl disable lightdm.service
This will prevent the service from starting at boot.
Edit:
I forgot to mention how to start the GUI. It is as simple as starting the systemd service:
sudo systemctl start lightdm.service
edited 16 mins ago
Craig S. Anderson
1747
1747
answered Jul 28 '16 at 17:34
Tristan VigilTristan Vigil
458149
458149
1
This worked for me on 16.04 on a arm board. Thanks. :)
– wojci
Nov 9 '16 at 18:51
This did not work on my system. (16.04 LTS on a PC) It shows the initial screen with all the [ OK ] messages as the services start, and then freezes.
– Paul Williams
Mar 30 '18 at 3:24
BTW to re-enable the service the command is actually sudo systemctl enable lightdm.service
– Paul Williams
Mar 30 '18 at 4:25
add a comment |
1
This worked for me on 16.04 on a arm board. Thanks. :)
– wojci
Nov 9 '16 at 18:51
This did not work on my system. (16.04 LTS on a PC) It shows the initial screen with all the [ OK ] messages as the services start, and then freezes.
– Paul Williams
Mar 30 '18 at 3:24
BTW to re-enable the service the command is actually sudo systemctl enable lightdm.service
– Paul Williams
Mar 30 '18 at 4:25
1
1
This worked for me on 16.04 on a arm board. Thanks. :)
– wojci
Nov 9 '16 at 18:51
This worked for me on 16.04 on a arm board. Thanks. :)
– wojci
Nov 9 '16 at 18:51
This did not work on my system. (16.04 LTS on a PC) It shows the initial screen with all the [ OK ] messages as the services start, and then freezes.
– Paul Williams
Mar 30 '18 at 3:24
This did not work on my system. (16.04 LTS on a PC) It shows the initial screen with all the [ OK ] messages as the services start, and then freezes.
– Paul Williams
Mar 30 '18 at 3:24
BTW to re-enable the service the command is actually sudo systemctl enable lightdm.service
– Paul Williams
Mar 30 '18 at 4:25
BTW to re-enable the service the command is actually sudo systemctl enable lightdm.service
– Paul Williams
Mar 30 '18 at 4:25
add a comment |
Instead of text
use runlevel 3
:
GRUB_CMDLINE_LINUX="3"
# To remove all the fancy graphics you need to get rid of `splash`.
GRUB_CMDLINE_LINUX_DEFAULT=”quiet”
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console
Then update-grub
and reboot.
But you really only need GRUB_CMDLINE_LINUX="3"
. For quick test hit ESC during booting to get into the grub boot menu. Then press e and find the line which specifies kernel and add 3
at the end:
linux /vmlinuz root=/dev/mapper/ubuntu ro 3
Boot it with CTRL+x
Ideally I also want to be able to start GUI by typig a command.
One of these:
$ sudo telinit 5
$ sudo service lightdm restart
$ sudo systemctl start lightdm
Tested on Ubuntu 16.04.1 LTS.
1
Replacing "text" by "3", worked for me ! Very efficient ! Thanks
– ThomasGuenet
Jan 26 '17 at 17:02
hi. the answer looks nice but its hard to understand. I just Ideally need one command to boot into text mode, do what I need, and go back into normal desktop mode.
– nyxee
Aug 19 '17 at 2:29
1
@nyxee My answer has 3 sections. Follow the second: "For quick test hit..."
– A.D.
Aug 19 '17 at 6:29
I appreciate the information in your post. by the time people look for this information, they are normally exhausted with other options. I gave an example of a simple answer below.
– nyxee
Aug 19 '17 at 23:32
1
Nice answer. I'm just used to post longer answers with a lot of information so we all can learn more. And also I'm familiar with grub cmd line options so it's faster for me to add 3 and I'm good to go + it's multi-distro solution :)
– A.D.
Aug 20 '17 at 16:40
|
show 3 more comments
Instead of text
use runlevel 3
:
GRUB_CMDLINE_LINUX="3"
# To remove all the fancy graphics you need to get rid of `splash`.
GRUB_CMDLINE_LINUX_DEFAULT=”quiet”
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console
Then update-grub
and reboot.
But you really only need GRUB_CMDLINE_LINUX="3"
. For quick test hit ESC during booting to get into the grub boot menu. Then press e and find the line which specifies kernel and add 3
at the end:
linux /vmlinuz root=/dev/mapper/ubuntu ro 3
Boot it with CTRL+x
Ideally I also want to be able to start GUI by typig a command.
One of these:
$ sudo telinit 5
$ sudo service lightdm restart
$ sudo systemctl start lightdm
Tested on Ubuntu 16.04.1 LTS.
1
Replacing "text" by "3", worked for me ! Very efficient ! Thanks
– ThomasGuenet
Jan 26 '17 at 17:02
hi. the answer looks nice but its hard to understand. I just Ideally need one command to boot into text mode, do what I need, and go back into normal desktop mode.
– nyxee
Aug 19 '17 at 2:29
1
@nyxee My answer has 3 sections. Follow the second: "For quick test hit..."
– A.D.
Aug 19 '17 at 6:29
I appreciate the information in your post. by the time people look for this information, they are normally exhausted with other options. I gave an example of a simple answer below.
– nyxee
Aug 19 '17 at 23:32
1
Nice answer. I'm just used to post longer answers with a lot of information so we all can learn more. And also I'm familiar with grub cmd line options so it's faster for me to add 3 and I'm good to go + it's multi-distro solution :)
– A.D.
Aug 20 '17 at 16:40
|
show 3 more comments
Instead of text
use runlevel 3
:
GRUB_CMDLINE_LINUX="3"
# To remove all the fancy graphics you need to get rid of `splash`.
GRUB_CMDLINE_LINUX_DEFAULT=”quiet”
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console
Then update-grub
and reboot.
But you really only need GRUB_CMDLINE_LINUX="3"
. For quick test hit ESC during booting to get into the grub boot menu. Then press e and find the line which specifies kernel and add 3
at the end:
linux /vmlinuz root=/dev/mapper/ubuntu ro 3
Boot it with CTRL+x
Ideally I also want to be able to start GUI by typig a command.
One of these:
$ sudo telinit 5
$ sudo service lightdm restart
$ sudo systemctl start lightdm
Tested on Ubuntu 16.04.1 LTS.
Instead of text
use runlevel 3
:
GRUB_CMDLINE_LINUX="3"
# To remove all the fancy graphics you need to get rid of `splash`.
GRUB_CMDLINE_LINUX_DEFAULT=”quiet”
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console
Then update-grub
and reboot.
But you really only need GRUB_CMDLINE_LINUX="3"
. For quick test hit ESC during booting to get into the grub boot menu. Then press e and find the line which specifies kernel and add 3
at the end:
linux /vmlinuz root=/dev/mapper/ubuntu ro 3
Boot it with CTRL+x
Ideally I also want to be able to start GUI by typig a command.
One of these:
$ sudo telinit 5
$ sudo service lightdm restart
$ sudo systemctl start lightdm
Tested on Ubuntu 16.04.1 LTS.
answered Oct 26 '16 at 5:14
A.D.A.D.
342421
342421
1
Replacing "text" by "3", worked for me ! Very efficient ! Thanks
– ThomasGuenet
Jan 26 '17 at 17:02
hi. the answer looks nice but its hard to understand. I just Ideally need one command to boot into text mode, do what I need, and go back into normal desktop mode.
– nyxee
Aug 19 '17 at 2:29
1
@nyxee My answer has 3 sections. Follow the second: "For quick test hit..."
– A.D.
Aug 19 '17 at 6:29
I appreciate the information in your post. by the time people look for this information, they are normally exhausted with other options. I gave an example of a simple answer below.
– nyxee
Aug 19 '17 at 23:32
1
Nice answer. I'm just used to post longer answers with a lot of information so we all can learn more. And also I'm familiar with grub cmd line options so it's faster for me to add 3 and I'm good to go + it's multi-distro solution :)
– A.D.
Aug 20 '17 at 16:40
|
show 3 more comments
1
Replacing "text" by "3", worked for me ! Very efficient ! Thanks
– ThomasGuenet
Jan 26 '17 at 17:02
hi. the answer looks nice but its hard to understand. I just Ideally need one command to boot into text mode, do what I need, and go back into normal desktop mode.
– nyxee
Aug 19 '17 at 2:29
1
@nyxee My answer has 3 sections. Follow the second: "For quick test hit..."
– A.D.
Aug 19 '17 at 6:29
I appreciate the information in your post. by the time people look for this information, they are normally exhausted with other options. I gave an example of a simple answer below.
– nyxee
Aug 19 '17 at 23:32
1
Nice answer. I'm just used to post longer answers with a lot of information so we all can learn more. And also I'm familiar with grub cmd line options so it's faster for me to add 3 and I'm good to go + it's multi-distro solution :)
– A.D.
Aug 20 '17 at 16:40
1
1
Replacing "text" by "3", worked for me ! Very efficient ! Thanks
– ThomasGuenet
Jan 26 '17 at 17:02
Replacing "text" by "3", worked for me ! Very efficient ! Thanks
– ThomasGuenet
Jan 26 '17 at 17:02
hi. the answer looks nice but its hard to understand. I just Ideally need one command to boot into text mode, do what I need, and go back into normal desktop mode.
– nyxee
Aug 19 '17 at 2:29
hi. the answer looks nice but its hard to understand. I just Ideally need one command to boot into text mode, do what I need, and go back into normal desktop mode.
– nyxee
Aug 19 '17 at 2:29
1
1
@nyxee My answer has 3 sections. Follow the second: "For quick test hit..."
– A.D.
Aug 19 '17 at 6:29
@nyxee My answer has 3 sections. Follow the second: "For quick test hit..."
– A.D.
Aug 19 '17 at 6:29
I appreciate the information in your post. by the time people look for this information, they are normally exhausted with other options. I gave an example of a simple answer below.
– nyxee
Aug 19 '17 at 23:32
I appreciate the information in your post. by the time people look for this information, they are normally exhausted with other options. I gave an example of a simple answer below.
– nyxee
Aug 19 '17 at 23:32
1
1
Nice answer. I'm just used to post longer answers with a lot of information so we all can learn more. And also I'm familiar with grub cmd line options so it's faster for me to add 3 and I'm good to go + it's multi-distro solution :)
– A.D.
Aug 20 '17 at 16:40
Nice answer. I'm just used to post longer answers with a lot of information so we all can learn more. And also I'm familiar with grub cmd line options so it's faster for me to add 3 and I'm good to go + it's multi-distro solution :)
– A.D.
Aug 20 '17 at 16:40
|
show 3 more comments
- When in GUI-mode, this will take you to text-mode (runlevel 2,3,4) on reboot. You may get a blank screen (no-gui) which is a reminder that there's no GUI :-), enter ctrlalt(F1,F2,...) to use the runlevels.
systemctl set-default multi-user.target
- This will take you back to GUI boot when you are in text-mode.
systemctl set-default graphical.target
add a comment |
- When in GUI-mode, this will take you to text-mode (runlevel 2,3,4) on reboot. You may get a blank screen (no-gui) which is a reminder that there's no GUI :-), enter ctrlalt(F1,F2,...) to use the runlevels.
systemctl set-default multi-user.target
- This will take you back to GUI boot when you are in text-mode.
systemctl set-default graphical.target
add a comment |
- When in GUI-mode, this will take you to text-mode (runlevel 2,3,4) on reboot. You may get a blank screen (no-gui) which is a reminder that there's no GUI :-), enter ctrlalt(F1,F2,...) to use the runlevels.
systemctl set-default multi-user.target
- This will take you back to GUI boot when you are in text-mode.
systemctl set-default graphical.target
- When in GUI-mode, this will take you to text-mode (runlevel 2,3,4) on reboot. You may get a blank screen (no-gui) which is a reminder that there's no GUI :-), enter ctrlalt(F1,F2,...) to use the runlevels.
systemctl set-default multi-user.target
- This will take you back to GUI boot when you are in text-mode.
systemctl set-default graphical.target
edited Aug 21 '17 at 17:07
answered Aug 19 '17 at 23:30
nyxeenyxee
20625
20625
add a comment |
add a comment |
One of the following, as part of the kernel command line (editable via GRUB), should work:
systemd.unit=multi-user.target
will override the default of "graphical.target" – this, along with systemctl set-default, is the equivalent of "default runlevel";
systemd.mask=lightdm.service
will forbid a specific service from starting, until manually systemctl unmask'd later;
systemd.mask=display-manager.service
– same;
rescue
akasystemd.unit=rescue.target
is the equivalent of "single-user runlevel"; not for daily use, but useful when fixing broken GUI.
it would be useful to mention how you return to normality from that "emergency setting" .
– nyxee
Aug 19 '17 at 2:27
1
For the benefit of others, the actual CLI command you want issystemctl set-default multi-user.target
(and I believesystemctl set-default graphical.target
would reset it)
– Andrea
Sep 17 '17 at 20:19
That's only if you want it semi-permanent, and can reach a shell in the first place. The main post has nothing to do with CLI commands.
– grawity
Sep 17 '17 at 22:08
add a comment |
One of the following, as part of the kernel command line (editable via GRUB), should work:
systemd.unit=multi-user.target
will override the default of "graphical.target" – this, along with systemctl set-default, is the equivalent of "default runlevel";
systemd.mask=lightdm.service
will forbid a specific service from starting, until manually systemctl unmask'd later;
systemd.mask=display-manager.service
– same;
rescue
akasystemd.unit=rescue.target
is the equivalent of "single-user runlevel"; not for daily use, but useful when fixing broken GUI.
it would be useful to mention how you return to normality from that "emergency setting" .
– nyxee
Aug 19 '17 at 2:27
1
For the benefit of others, the actual CLI command you want issystemctl set-default multi-user.target
(and I believesystemctl set-default graphical.target
would reset it)
– Andrea
Sep 17 '17 at 20:19
That's only if you want it semi-permanent, and can reach a shell in the first place. The main post has nothing to do with CLI commands.
– grawity
Sep 17 '17 at 22:08
add a comment |
One of the following, as part of the kernel command line (editable via GRUB), should work:
systemd.unit=multi-user.target
will override the default of "graphical.target" – this, along with systemctl set-default, is the equivalent of "default runlevel";
systemd.mask=lightdm.service
will forbid a specific service from starting, until manually systemctl unmask'd later;
systemd.mask=display-manager.service
– same;
rescue
akasystemd.unit=rescue.target
is the equivalent of "single-user runlevel"; not for daily use, but useful when fixing broken GUI.
One of the following, as part of the kernel command line (editable via GRUB), should work:
systemd.unit=multi-user.target
will override the default of "graphical.target" – this, along with systemctl set-default, is the equivalent of "default runlevel";
systemd.mask=lightdm.service
will forbid a specific service from starting, until manually systemctl unmask'd later;
systemd.mask=display-manager.service
– same;
rescue
akasystemd.unit=rescue.target
is the equivalent of "single-user runlevel"; not for daily use, but useful when fixing broken GUI.
answered Jul 28 '16 at 17:37
grawitygrawity
240k37508561
240k37508561
it would be useful to mention how you return to normality from that "emergency setting" .
– nyxee
Aug 19 '17 at 2:27
1
For the benefit of others, the actual CLI command you want issystemctl set-default multi-user.target
(and I believesystemctl set-default graphical.target
would reset it)
– Andrea
Sep 17 '17 at 20:19
That's only if you want it semi-permanent, and can reach a shell in the first place. The main post has nothing to do with CLI commands.
– grawity
Sep 17 '17 at 22:08
add a comment |
it would be useful to mention how you return to normality from that "emergency setting" .
– nyxee
Aug 19 '17 at 2:27
1
For the benefit of others, the actual CLI command you want issystemctl set-default multi-user.target
(and I believesystemctl set-default graphical.target
would reset it)
– Andrea
Sep 17 '17 at 20:19
That's only if you want it semi-permanent, and can reach a shell in the first place. The main post has nothing to do with CLI commands.
– grawity
Sep 17 '17 at 22:08
it would be useful to mention how you return to normality from that "emergency setting" .
– nyxee
Aug 19 '17 at 2:27
it would be useful to mention how you return to normality from that "emergency setting" .
– nyxee
Aug 19 '17 at 2:27
1
1
For the benefit of others, the actual CLI command you want is
systemctl set-default multi-user.target
(and I believe systemctl set-default graphical.target
would reset it)– Andrea
Sep 17 '17 at 20:19
For the benefit of others, the actual CLI command you want is
systemctl set-default multi-user.target
(and I believe systemctl set-default graphical.target
would reset it)– Andrea
Sep 17 '17 at 20:19
That's only if you want it semi-permanent, and can reach a shell in the first place. The main post has nothing to do with CLI commands.
– grawity
Sep 17 '17 at 22:08
That's only if you want it semi-permanent, and can reach a shell in the first place. The main post has nothing to do with CLI commands.
– grawity
Sep 17 '17 at 22:08
add a comment |
for ubuntu 18.04 enable root user
sudo passwd
and then
systemctl set-default multi-user.target
add a comment |
for ubuntu 18.04 enable root user
sudo passwd
and then
systemctl set-default multi-user.target
add a comment |
for ubuntu 18.04 enable root user
sudo passwd
and then
systemctl set-default multi-user.target
for ubuntu 18.04 enable root user
sudo passwd
and then
systemctl set-default multi-user.target
answered Aug 27 '18 at 3:03
MohanndMohannd
775
775
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1106174%2fboot-ubuntu-16-04-into-command-line-do-not-start-gui%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown