Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Exit Gnome, Drop Back to Console/Terminal

  1. #1
    Join Date
    Sep 2008
    Beans
    5

    Exit Gnome, Drop Back to Console/Terminal

    I'm pretty new to Linux, but I'm eager to become proficient. I want to run Ubuntu WITHOUT always using the GUI (Gnome). For most tasks, I'll want to work inside Gnome, but when I logoff, I want to drop back to the terminal. When I boot my machine, I want to see a terminal, thus only launching Gnome when I choose to.

    So far, I have configured my Ubuntu installation to boot to a terminal without a GUI by commenting out "/usr/sbin/gdm" from the "/etc/X11/default-display-manager" file. Then, when I type "sudo gdm", Gnome loads up and I have a nice desktop. This was half the battle. However, I cannot figure out how to drop back to that terminal when I'm finished in Gnome.

    I've tried issuing the "sudo gdm stop" command from /etc/init.d directory, but that gives me X errors, tries to restart, etc.

    1) Is my approach for the bootup correct?
    2) How can I achieve my desired effect of landing back in the terminal when I'm finished with gnome?

    Thanks.

  2. #2
    Join Date
    Dec 2006
    Beans
    1,089

    Re: Exit Gnome, Drop Back to Console/Terminal

    Your bootup looks fine. It is exactly what i would have tried. To get back to just a terminal, i would log out from gnome. Then (whilst on the login screen) i would Ctrl+Alt+F1, and login in from the command line. Then sudo killall gdm. You should now only have a terminal session - and no gnome. This is probably not the quickest way. I'd imagine there's a single command that could be given from within gnome that could get you back to the 'initial boot up / login screen'.
    Last edited by benerivo; September 14th, 2008 at 09:54 PM.

  3. #3
    Join Date
    Oct 2007
    Location
    ISS
    Beans
    1,429

    Re: Exit Gnome, Drop Back to Console/Terminal

    I want to see a terminal, thus only launching Gnome when I choose to.
    See my posts here:

    http://ubuntuforums.org/showthread.php?t=918077

  4. #4
    Join Date
    Sep 2008
    Beans
    5

    Re: Exit Gnome, Drop Back to Console/Terminal

    Thanks to both of you for the feedback so far. Both posts were helpful, and I actually hadn't realized there were 6 other terminal screens available by pressing Ctrl+Alt+(F1 thru F6) until I read benerivo's post and started experimenting.

    However, I'm still stuck on how to cleanly exit from Gnome, short of killing every gnome related process, which seems like an ugly way to do it, and leaves my Ctrl+Alt+F7 Display all hosed up.

    As I mentioned before, running "gdm stop", which every other post seems to suggest, just leaves a hanging "gdm stop" process, and/or just triggers a relaunch of GDM.

    Any other thoughts?

    Thanks.

  5. #5
    Join Date
    Apr 2006
    Location
    New Mills, UK
    Beans
    1,213

    Re: Exit Gnome, Drop Back to Console/Terminal

    This may work, haven't tried it.
    In /etc/rc1.d is a kill for gdm (K01gdm) when you are running in root single user mode.
    Try copying that to another run level e.g. /etc/rc3.d and setting that as one of the boot up options.
    following this to test it. http://ubuntuforums.org/showpost.php...82&postcount=4
    If it works then make the change permanent in /boot/grub/menu.lst
    Last edited by Malac; September 16th, 2008 at 02:46 PM.
    Malac - "Time Is Precious, Waste It Wisely"
    Registered Linux User 416897
    Registered Ubuntu User 7567

  6. #6
    Join Date
    Apr 2008
    Beans
    2

    Re: Exit Gnome, Drop Back to Console/Terminal

    not sure if this helps any but..

    for me i run Ubuntu server 8.10 and by default it boots CLI

    i later installed the gnome environment with apt-get so on rare days i would have a way to access a web browser

    i use the startx command to bring up gnome.

    when done with gnome and i want to return to the CLI without having to restart my server i simply use ctrl+alt+backspace and it takes me back to console.

    according to htop once back i am using the same amount of memory and tasks as i was prior to starting gnome... so it does not appear to be messy

  7. #7
    Join Date
    Sep 2008
    Beans
    71

    Re: Exit Gnome, Drop Back to Console/Terminal

    to go to console, I always just do a "Ctrl + Alt + F1"

  8. #8
    Join Date
    Apr 2006
    Location
    Germany
    Beans
    40
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Exit Gnome, Drop Back to Console/Terminal

    Hi, i have a question regarding the lack of any CLI, so before opening a new thread for a ridiculously easy problem maybe someone can tell me what I do wrong..

    After the Boot procedure, before and/or after logging into X11R7.4/Gnome on my Jaunty installation, pressing Ctrl+Alt+Fx does nothing but suspend my monitor into Power Save.
    Even though Alt+F7 brings me back unharmed I want, like maw246, to use the terminal without X.
    Any suggestions ?

  9. #9
    Join Date
    Dec 2009
    Beans
    21
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Exit Gnome, Drop Back to Console/Terminal

    Quote Originally Posted by wiggie View Post
    Hi, i have a question regarding the lack of any CLI, so before opening a new thread for a ridiculously easy problem maybe someone can tell me what I do wrong..
    I have the same problem. Can somebody make an educated guess where the problem could be..

  10. #10
    Join Date
    Dec 2009
    Beans
    21
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Exit Gnome, Drop Back to Console/Terminal

    I tried fiddling with Grub2 and changed /etc/grub.d/00_header as follows:
    Code:
      set gfxmode=0x0317
      set gfxpayload=keep
      insmod gfxterm
      insmod vbe
      terminal gfxterm
    but still nothing happens - i cannot use the console mode without X..
    Would it help if I`d post some more configs? Which?
    Any help would be most welcome.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •