File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes How to end Gnome and use bash only? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "How to end Gnome and use bash only?" Watch "How to end Gnome and use bash only?" New topic
Author

How to end Gnome and use bash only?

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 664
Everytime I reboot my Linux I get Gnome. How do I end Gnome to free up memory?
Actually I only need to use bash. Can I kill X too?
When I log off Gnome it takes me to Gnome login. How to go to bash without starting Gnome and X?
Thanks.
Bruce
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Hi Bruce - The first (non-comment) line in your:
/etc/inittab
should say:
id:5:initdefault:
Very carefully change the 5 (X11-login) to a 3 (multi-user terminal login), save the file, shutdown, and re-boot.
HTH, Guy
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 664
Thanks Guy!
This helps.
Bruce
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 563
That's a question I've been meaning to ask for days but now I don't need to. Thanks.
But I will ask it's corrollary:
How can I start X & Gnome from the command prompt if I do want them?
Also, on my keyboard ctrl+alt+f5 swop the window to a terminal login prompt. ctrl+alt+f7 swop me back to Gnome. I remember using SCO and that had up to 8 different terminal prompts available by ctrl+1 ... 8
Are these settable in Linux?


I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Adam - From the command line:
startx
will get you to an XWindows environment.
A logout of the XWindows will get you back to the command line.
I use KDE, I'll bet I have not seen a Gnome XWindow system in a year - I don't know the answer to your last qeustion - I do know there is a way in Gnome to switch back/forth, I just don't know how.
Regards, Guy
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 563
Actually I'm using KDE at the moment because Gnome won't running for whatever reason. The behaviour with the ctrl+alt key-combo is the same: 7 shows the initial screen with KDE, 6 & 5 show new console login prompts.
I just tried startx from 6 and it gave me an ugly error msg about the server already running. Whoops.
:roll:
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 563
Ah. I just changed my inittab and nothing works anymore! No - only joking - but when I do startx from my console, I get launched straight into gnome, which isn't working properly.
What do I have to change to set my default GUI to KDE? Presumably something in my home directory, but there's quite a few files in there beginning with . and one of them even blocked red with a blinking name and it looks dangerous.
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
On the Gnome start menu, under 'system' there should be something called the 'desk top switching tool'. Use it to change to KDE as default.
I think you can also say:
switchdesk
at a (non-graphics) command line before you startx.
The flashing red file in your home directory is a broken sybbolic link. You can safely 'rm' it, but it will come back. I've never figured out what causes that particular link to be placed there and the link broken.
If you see flashing red's on other files, you need to take a look at them - they could be indicative of other problems.
(Symbolic links are kind of like 'shortcuts').
G.
[ February 10, 2002: Message edited by: Guy Allard ]
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 563
Originally posted by Guy Allard:
I think you can also say:
switchdesk
at a (non-graphics) command line before you startx.

That was easy enough. Thanks


If you see flashing red's on other files, you need to take a look at them - they could be indicative of other problems.

I'll keep my eye out for them (sort of hard to miss really). If that happened on my Windows computer, I think all the flashing bright colors would blow my video card.
 
IntelliJ Java IDE
 
subject: How to end Gnome and use bash only?
 
Threads others viewed
What command to call app for mimetype
add entry to PATH using Mac OS X
Linux Compiling Help and Why You Should Use Linux Mint Over Ubuntu
GNOME 3 vs Ubuntu Unity.
How to findout if GNOME or KDE is running
developer file tools