Results 1 to 10 of 10

Thread: Booting to terminal

  1. #1
    Join Date
    Jun 2010
    Beans
    65
    Distro
    Kubuntu 10.04 Lucid Lynx

    Booting to terminal

    I'm looking for a way to add a menu entry into grub 2 that boots my computer but does not load the GUI, I want it to run the startup scripts and appear at the terminal login screen. I can't seem to get anything that I have found using google to work. It seems that it should be something simple to add to a grub file that shows "Ubuntu, Terminal" on the grub2 menu during system boot that then proceeds to boot ubuntu but does not load any GUI "stuff".

    The more I'm using Linux, the more it appears that the simplest of things have been overlooked during development. For example, the boot up (Grub2) stuff depends on multiple files. My windows server(s) I simply edit boot.ini and I'm done, I add a couple letters and I get no GUI at startup, but Linux is a different story. I have to spend days trying "solutions" I find online and none work. Sorry to ramble, I'm just getting frustrated with such simple task that feel nearly impossible to accomplish.

    To reiterate, I'd like to know if I can add an entry to my grub2 menu that boots my xubuntu to a terminal login.

    TYIA,
    Ray

  2. #2
    Join Date
    Mar 2009
    Location
    Washington DC
    Beans
    610

    Re: Booting to terminal

    I think maybe removing the login manager may send you directly to terminal prompt.
    "- Courage! It couldn't come at a worse time." | Favorite Hockey Player: #8 Cam Neely! |
    Read my Poetry at
    www.poemscribe.com |

  3. #3
    Join Date
    Apr 2008
    Location
    UK
    Beans
    496
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Booting to terminal

    NB: You'll probably need to replace gdm with xdm hereafter for Xubuntu.

    When your system boots you can naturally just switch to a console TTY with Ctrl+Alt+F1..F6. To complete the effect, you can stop gdb with something like:

    Code:
    sudo service gdm stop
    I think if you remove gdm from the startup apps, that'll do the trick for you. Something like this should work:

    Code:
    sudo update-rc.d -f gdm remove
    When you boot up and it hits terminal, you can start an X session with

    Code:
    startx
    Restore the graphical login with:

    Code:
    sudo update-rc.d gdm defaults
    Alternatively, I think if you manually create an /etc/inittab file and configure it to your needs, then Ubuntu will respect the init level you give it.
    Ace1 FreeBSD/Gnome 2, i5 2300, 16GB, HX750W, 20TB ZFS pool, 60GB SSD, Fractal Design XL
    Ace2 Ubuntu/Xubuntu, i7 2600, 16GB, HX850W, 4TB, Asus HD6970, Fractal Design R3
    Ace3 Ubuntu/XFCE, E7200, 4GB, OCZ GameXStream 700W, 8TB

  4. #4
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: Booting to terminal

    Just press CTRL+ALT+F2 once you have booted up to login prompt.

    If you don't want X running then login to your shell and type:
    Code:
    sudo /etc/init.d/gdm stop
    or
    Code:
    sudo service gdm stop
    depending upon which version you are running
    No longer participating......

  5. #5
    Join Date
    Jun 2010
    Beans
    65
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Booting to terminal

    st, I've tried those commands using both gdm and xdm. Stopping xdm gives an error saying unknown service, I believe xubuntu still uses gdm - but may be incorrect. However, those commands do not work, I've tried those (found them using google) before posting but to no avail.

    I'm shocked that it is such a pain to do such a simple task, I have the same issue when I attempt to boot without a monitor connected. I never would of thought either of these things would cause such a problem.
    Last edited by rensell; June 28th, 2010 at 02:42 AM.

  6. #6
    Join Date
    Jun 2010
    Beans
    65
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Booting to terminal

    bump for night time help...

  7. #7
    Join Date
    Jun 2010
    Beans
    65
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Booting to terminal

    I'm hoping someone online tonight may be of some help, I've finally found some time today to get back to this issue.

    I've ctr+alt+f1 and log in and run
    Code:
    sudo update-rc.d -f gdm remove
    and it runs and removes gdm. When I reboot it still loads into the GUI. Now when I ctr+alt+f1 and login and run
    Code:
    sudo update-rc.d -f gdm remove
    if says "Removing any system startup links for /etc/init.d/gdm... and is ready for my input, basically saying there are not links.

    So, I'm puzzled as to why it continues going to the GUI on startup!

    Thanks so much for any help.

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Booting to terminal

    Is not what you want what recovery mode is?

    Recovery mode just replaces quiet splash with single so then you boot to single user mode without the gui.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Nov 2008
    Location
    Southern Ontario, Canada
    Beans
    253
    Distro
    Ubuntu Development Release

    Re: Booting to terminal

    Debian distros have their runlevels configured half assed IMO. It's easy to do this on something like Fedora as all the run levels are pre-configured, but with Ubuntu youre going to have to learn how to use chkconfig.

    Code:
    sudo -i
    apt-get install chkconfig
    chkconfig --level 4 xdm off
    vi /etc/inittab
    logout
    Change the default runlevel to 4. Ubuntu does this differently than Fedora I think but if not it's just the questionable number at the bottom. This doesn't add an entry in grub, but you can switch between these modes using 'sudo init 5' for GUI mode and 'sudo init 4' for TUI mode. If you don't change your default runlevel, you can still use those 2 commands, you'll just have a GUI on startup.

    I personally start in a TUI and use 'startx' to start my GUI with no graphical login. Keeps things save in case my GUI messes up, I can still boot without messing around with GRUB settings or booting from a live disc to fix things.

  10. #10
    Join Date
    Jun 2010
    Beans
    65
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Booting to terminal

    finally found something to work. I'm not sure why
    Code:
    sudo update-rc.d -f gdm remove
    that doesn't actually keep the GUI from loading. But, I finally found a command for grub the will work for me, edit /etc/default/grub and for GRUB_CMDLINE_LINUX_DEFAULT put text and it will boot to a terminal login and allow startX after login. Hope this will help someone else sometime. Thanks everyone for your input.

    -RAY

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •