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.
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'.
Re: Exit Gnome, Drop Back to Console/Terminal
Quote:
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
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.
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
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
Re: Exit Gnome, Drop Back to Console/Terminal
to go to console, I always just do a "Ctrl + Alt + F1"
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 ?
Re: Exit Gnome, Drop Back to Console/Terminal
Quote:
Originally Posted by
wiggie
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..
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.