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?













24















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:




  1. GRUB_CMDLINE_LINUX=”text”


  2. Changing the default runlevel



Ideally I also want to be able to start GUI by typig a command.










share|improve this question





























    24















    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:




    1. GRUB_CMDLINE_LINUX=”text”


    2. Changing the default runlevel



    Ideally I also want to be able to start GUI by typig a command.










    share|improve this question



























      24












      24








      24


      18






      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:




      1. GRUB_CMDLINE_LINUX=”text”


      2. Changing the default runlevel



      Ideally I also want to be able to start GUI by typig a command.










      share|improve this question
















      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:




      1. GRUB_CMDLINE_LINUX=”text”


      2. 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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 20 '17 at 10:16









      Community

      1




      1










      asked Jul 28 '16 at 17:26









      GreendrakeGreendrake

      3221311




      3221311






















          5 Answers
          5






          active

          oldest

          votes


















          22














          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





          share|improve this answer





















          • 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



















          14














          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.






          share|improve this answer



















          • 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





















          9















          • 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






          share|improve this answer

































            8














            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 aka systemd.unit=rescue.target is the equivalent of "single-user runlevel"; not for daily use, but useful when fixing broken GUI.






            share|improve this answer
























            • 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 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



















            2














            for ubuntu 18.04 enable root user



             sudo passwd


            and then



            systemctl set-default multi-user.target





            share|improve this answer























              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
              });


              }
              });














              draft saved

              draft discarded


















              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









              22














              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





              share|improve this answer





















              • 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
















              22














              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





              share|improve this answer





















              • 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














              22












              22








              22







              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





              share|improve this answer















              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






              share|improve this answer














              share|improve this answer



              share|improve this answer








              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














              • 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













              14














              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.






              share|improve this answer



















              • 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


















              14














              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.






              share|improve this answer



















              • 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
















              14












              14








              14







              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.






              share|improve this answer













              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.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              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
















              • 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













              9















              • 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






              share|improve this answer






























                9















                • 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






                share|improve this answer




























                  9












                  9








                  9








                  • 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






                  share|improve this answer
















                  • 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







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Aug 21 '17 at 17:07

























                  answered Aug 19 '17 at 23:30









                  nyxeenyxee

                  20625




                  20625























                      8














                      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 aka systemd.unit=rescue.target is the equivalent of "single-user runlevel"; not for daily use, but useful when fixing broken GUI.






                      share|improve this answer
























                      • 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 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
















                      8














                      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 aka systemd.unit=rescue.target is the equivalent of "single-user runlevel"; not for daily use, but useful when fixing broken GUI.






                      share|improve this answer
























                      • 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 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














                      8












                      8








                      8







                      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 aka systemd.unit=rescue.target is the equivalent of "single-user runlevel"; not for daily use, but useful when fixing broken GUI.






                      share|improve this answer













                      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 aka systemd.unit=rescue.target is the equivalent of "single-user runlevel"; not for daily use, but useful when fixing broken GUI.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      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 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



















                      • 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 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

















                      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











                      2














                      for ubuntu 18.04 enable root user



                       sudo passwd


                      and then



                      systemctl set-default multi-user.target





                      share|improve this answer




























                        2














                        for ubuntu 18.04 enable root user



                         sudo passwd


                        and then



                        systemctl set-default multi-user.target





                        share|improve this answer


























                          2












                          2








                          2







                          for ubuntu 18.04 enable root user



                           sudo passwd


                          and then



                          systemctl set-default multi-user.target





                          share|improve this answer













                          for ubuntu 18.04 enable root user



                           sudo passwd


                          and then



                          systemctl set-default multi-user.target






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Aug 27 '18 at 3:03









                          MohanndMohannd

                          775




                          775






























                              draft saved

                              draft discarded




















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

                              Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                              VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...