Linux Mint 18 Cinnamon default boot to shell / command line / disable GUI











up vote
4
down vote

favorite
2












What I Want



I want to run a box as (typically) a 'server' (no GUI) and occasionally with the GUI because some things are easier that way. I'm working with Linux Mint 18 Cinnamon. I want to boot to console and not start mdm but I want to be able to switch back, so solutions involving totally removing mdm won't work well for me.



What I've Tried



For the default boot, I have edited grub (whole file below) GRUB_CMDLINE_LINUX="text" and run sudo update-grub but mdm still started; then I tried to set mdm to manual with echo manual | sudo tee /etc/init/mdm.override but mdm still started.



I can stop mdm manually with sudo service mdm stop which is close to what I want.



What's Wrong With My Solution



My best solution has me boot, starting mdm as usual, and then I must stop mdm manually. I want the machine to start normally from a reboot or power cycle except the GUI doesn't start at all (unless I tell it to, e.g. by editing grub or choosing a different option in the grub menu). By 'start normally' I mean that services like tomcat start and I can still rsh to the machine and/or remote debug it.



# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'


GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="text"
GRUB_CMDLINE_LINUX="text"


# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"


# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console


# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480


# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true


# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"


# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"









share|improve this question


























    up vote
    4
    down vote

    favorite
    2












    What I Want



    I want to run a box as (typically) a 'server' (no GUI) and occasionally with the GUI because some things are easier that way. I'm working with Linux Mint 18 Cinnamon. I want to boot to console and not start mdm but I want to be able to switch back, so solutions involving totally removing mdm won't work well for me.



    What I've Tried



    For the default boot, I have edited grub (whole file below) GRUB_CMDLINE_LINUX="text" and run sudo update-grub but mdm still started; then I tried to set mdm to manual with echo manual | sudo tee /etc/init/mdm.override but mdm still started.



    I can stop mdm manually with sudo service mdm stop which is close to what I want.



    What's Wrong With My Solution



    My best solution has me boot, starting mdm as usual, and then I must stop mdm manually. I want the machine to start normally from a reboot or power cycle except the GUI doesn't start at all (unless I tell it to, e.g. by editing grub or choosing a different option in the grub menu). By 'start normally' I mean that services like tomcat start and I can still rsh to the machine and/or remote debug it.



    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    # info -f grub -n 'Simple configuration'


    GRUB_DEFAULT=0
    #GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="text"
    GRUB_CMDLINE_LINUX="text"


    # Uncomment to enable BadRAM filtering, modify to suit your needs
    # This works with Linux (no patch required) and with any kernel that obtains
    # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"


    # Uncomment to disable graphical terminal (grub-pc only)
    GRUB_TERMINAL=console


    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    #GRUB_GFXMODE=640x480


    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID=true


    # Uncomment to disable generation of recovery mode menu entries
    #GRUB_DISABLE_RECOVERY="true"


    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440 1"









    share|improve this question
























      up vote
      4
      down vote

      favorite
      2









      up vote
      4
      down vote

      favorite
      2






      2





      What I Want



      I want to run a box as (typically) a 'server' (no GUI) and occasionally with the GUI because some things are easier that way. I'm working with Linux Mint 18 Cinnamon. I want to boot to console and not start mdm but I want to be able to switch back, so solutions involving totally removing mdm won't work well for me.



      What I've Tried



      For the default boot, I have edited grub (whole file below) GRUB_CMDLINE_LINUX="text" and run sudo update-grub but mdm still started; then I tried to set mdm to manual with echo manual | sudo tee /etc/init/mdm.override but mdm still started.



      I can stop mdm manually with sudo service mdm stop which is close to what I want.



      What's Wrong With My Solution



      My best solution has me boot, starting mdm as usual, and then I must stop mdm manually. I want the machine to start normally from a reboot or power cycle except the GUI doesn't start at all (unless I tell it to, e.g. by editing grub or choosing a different option in the grub menu). By 'start normally' I mean that services like tomcat start and I can still rsh to the machine and/or remote debug it.



      # If you change this file, run 'update-grub' afterwards to update
      # /boot/grub/grub.cfg.
      # For full documentation of the options in this file, see:
      # info -f grub -n 'Simple configuration'


      GRUB_DEFAULT=0
      #GRUB_HIDDEN_TIMEOUT=0
      GRUB_HIDDEN_TIMEOUT_QUIET=true
      GRUB_TIMEOUT=10
      GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
      GRUB_CMDLINE_LINUX_DEFAULT="text"
      GRUB_CMDLINE_LINUX="text"


      # Uncomment to enable BadRAM filtering, modify to suit your needs
      # This works with Linux (no patch required) and with any kernel that obtains
      # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
      #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"


      # Uncomment to disable graphical terminal (grub-pc only)
      GRUB_TERMINAL=console


      # The resolution used on graphical terminal
      # note that you can use only modes which your graphic card supports via VBE
      # you can see them in real GRUB with the command `vbeinfo'
      #GRUB_GFXMODE=640x480


      # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
      #GRUB_DISABLE_LINUX_UUID=true


      # Uncomment to disable generation of recovery mode menu entries
      #GRUB_DISABLE_RECOVERY="true"


      # Uncomment to get a beep at grub start
      #GRUB_INIT_TUNE="480 440 1"









      share|improve this question













      What I Want



      I want to run a box as (typically) a 'server' (no GUI) and occasionally with the GUI because some things are easier that way. I'm working with Linux Mint 18 Cinnamon. I want to boot to console and not start mdm but I want to be able to switch back, so solutions involving totally removing mdm won't work well for me.



      What I've Tried



      For the default boot, I have edited grub (whole file below) GRUB_CMDLINE_LINUX="text" and run sudo update-grub but mdm still started; then I tried to set mdm to manual with echo manual | sudo tee /etc/init/mdm.override but mdm still started.



      I can stop mdm manually with sudo service mdm stop which is close to what I want.



      What's Wrong With My Solution



      My best solution has me boot, starting mdm as usual, and then I must stop mdm manually. I want the machine to start normally from a reboot or power cycle except the GUI doesn't start at all (unless I tell it to, e.g. by editing grub or choosing a different option in the grub menu). By 'start normally' I mean that services like tomcat start and I can still rsh to the machine and/or remote debug it.



      # If you change this file, run 'update-grub' afterwards to update
      # /boot/grub/grub.cfg.
      # For full documentation of the options in this file, see:
      # info -f grub -n 'Simple configuration'


      GRUB_DEFAULT=0
      #GRUB_HIDDEN_TIMEOUT=0
      GRUB_HIDDEN_TIMEOUT_QUIET=true
      GRUB_TIMEOUT=10
      GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
      GRUB_CMDLINE_LINUX_DEFAULT="text"
      GRUB_CMDLINE_LINUX="text"


      # Uncomment to enable BadRAM filtering, modify to suit your needs
      # This works with Linux (no patch required) and with any kernel that obtains
      # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
      #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"


      # Uncomment to disable graphical terminal (grub-pc only)
      GRUB_TERMINAL=console


      # The resolution used on graphical terminal
      # note that you can use only modes which your graphic card supports via VBE
      # you can see them in real GRUB with the command `vbeinfo'
      #GRUB_GFXMODE=640x480


      # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
      #GRUB_DISABLE_LINUX_UUID=true


      # Uncomment to disable generation of recovery mode menu entries
      #GRUB_DISABLE_RECOVERY="true"


      # Uncomment to get a beep at grub start
      #GRUB_INIT_TUNE="480 440 1"






      linux-mint






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 12 '16 at 21:20









      bronzenose

      23113




      23113






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          sudo systemctl disable mdm  


          This doesn't actually 'disable' the service, it just prevents it from automatically starting.



          Then if you want to go into your gui, you do



          sudo systemctl start mdm


          And if you want to boot to gui by default:



          sudo systemctl enable mdm 


          For pre-systemd systems, you'll want to delete the symlink for mdm in your /etc/rc* directories.






          share|improve this answer























          • thank you, that fixed it completely. I thought "Linux Mint 18" was enough; do I need to say "Linux Mint 18 Sarah"?
            – bronzenose
            Aug 13 '16 at 0:46










          • My mistake, I overlooked where you indicated the version. Am glad it worked for you!
            – Stephan
            Aug 14 '16 at 17:48











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f303113%2flinux-mint-18-cinnamon-default-boot-to-shell-command-line-disable-gui%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          down vote



          accepted










          sudo systemctl disable mdm  


          This doesn't actually 'disable' the service, it just prevents it from automatically starting.



          Then if you want to go into your gui, you do



          sudo systemctl start mdm


          And if you want to boot to gui by default:



          sudo systemctl enable mdm 


          For pre-systemd systems, you'll want to delete the symlink for mdm in your /etc/rc* directories.






          share|improve this answer























          • thank you, that fixed it completely. I thought "Linux Mint 18" was enough; do I need to say "Linux Mint 18 Sarah"?
            – bronzenose
            Aug 13 '16 at 0:46










          • My mistake, I overlooked where you indicated the version. Am glad it worked for you!
            – Stephan
            Aug 14 '16 at 17:48















          up vote
          5
          down vote



          accepted










          sudo systemctl disable mdm  


          This doesn't actually 'disable' the service, it just prevents it from automatically starting.



          Then if you want to go into your gui, you do



          sudo systemctl start mdm


          And if you want to boot to gui by default:



          sudo systemctl enable mdm 


          For pre-systemd systems, you'll want to delete the symlink for mdm in your /etc/rc* directories.






          share|improve this answer























          • thank you, that fixed it completely. I thought "Linux Mint 18" was enough; do I need to say "Linux Mint 18 Sarah"?
            – bronzenose
            Aug 13 '16 at 0:46










          • My mistake, I overlooked where you indicated the version. Am glad it worked for you!
            – Stephan
            Aug 14 '16 at 17:48













          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          sudo systemctl disable mdm  


          This doesn't actually 'disable' the service, it just prevents it from automatically starting.



          Then if you want to go into your gui, you do



          sudo systemctl start mdm


          And if you want to boot to gui by default:



          sudo systemctl enable mdm 


          For pre-systemd systems, you'll want to delete the symlink for mdm in your /etc/rc* directories.






          share|improve this answer














          sudo systemctl disable mdm  


          This doesn't actually 'disable' the service, it just prevents it from automatically starting.



          Then if you want to go into your gui, you do



          sudo systemctl start mdm


          And if you want to boot to gui by default:



          sudo systemctl enable mdm 


          For pre-systemd systems, you'll want to delete the symlink for mdm in your /etc/rc* directories.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 9 '17 at 0:19

























          answered Aug 12 '16 at 21:56









          Stephan

          1,751614




          1,751614












          • thank you, that fixed it completely. I thought "Linux Mint 18" was enough; do I need to say "Linux Mint 18 Sarah"?
            – bronzenose
            Aug 13 '16 at 0:46










          • My mistake, I overlooked where you indicated the version. Am glad it worked for you!
            – Stephan
            Aug 14 '16 at 17:48


















          • thank you, that fixed it completely. I thought "Linux Mint 18" was enough; do I need to say "Linux Mint 18 Sarah"?
            – bronzenose
            Aug 13 '16 at 0:46










          • My mistake, I overlooked where you indicated the version. Am glad it worked for you!
            – Stephan
            Aug 14 '16 at 17:48
















          thank you, that fixed it completely. I thought "Linux Mint 18" was enough; do I need to say "Linux Mint 18 Sarah"?
          – bronzenose
          Aug 13 '16 at 0:46




          thank you, that fixed it completely. I thought "Linux Mint 18" was enough; do I need to say "Linux Mint 18 Sarah"?
          – bronzenose
          Aug 13 '16 at 0:46












          My mistake, I overlooked where you indicated the version. Am glad it worked for you!
          – Stephan
          Aug 14 '16 at 17:48




          My mistake, I overlooked where you indicated the version. Am glad it worked for you!
          – Stephan
          Aug 14 '16 at 17:48


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


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





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2funix.stackexchange.com%2fquestions%2f303113%2flinux-mint-18-cinnamon-default-boot-to-shell-command-line-disable-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

          Morgemoulin

          Scott Moir

          Souastre