LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Getting into Console instead GUI question! (http://www.linuxquestions.org/questions/linux-general-1/getting-into-console-instead-gui-question-12380/)

Jnox 01-22-2002 11:49 AM

Getting into Console instead GUI question!
 
I am running Mandrake Linux 8.1 fresh install. How do I get into linux console ( LIKE DOS IN WINDOWS) instead the GUI. I've heard it is alot faster in running servers for games like Counter-strike since it doesnt load the graphical interface.

Also another question. When my server is up for like 30 minutes, my computer goes into sleep mode. I have all the settings in Energy configuration disabled, so I dont see any reason why it still does that. Anyway because of it, my server crashes. :(

Any ideas? Thanks in advance everyone!

Jnox

The TOTAL LINUX NEWBIE! :)

karanc 01-22-2002 12:02 PM

Log in as the root . At the command line, use a text editor to open the file inittab under the /etc directory. Be careful! You should first make a copy of this file with the cp command.
Scroll through the file until you see the Default runlevel entry. This entry will contain the command id:5:initdefault: which starts Linux in the multiuser mode with a GUI. Cursor to the number 5 and change the 5 to 3. so it looks like ...

id:3:initdefault:

Save the file. The next time you boot Linux, you'll boot to console.

Jnox 01-22-2002 12:07 PM

But how do I get there from GUI? And then again, what do I do if I want to go back from console to GUI?

Jnox

karanc 01-22-2002 12:41 PM

If your running XWindows, Use a text editor to change the initab file. Then you will boot to the console.

If you want to start Xwindows just type startx at the shell prompt.

Jnox 01-22-2002 12:46 PM

nooo heh
thats not what i'm talking about.
I dont run any Xwindows
Simple question!
How do I get into console (JUST LIKE DOS IN WINDOWS) mode from GUI? When I start Mandrake it automatically boots into GUI? Also what command do I use to go from console to GUI?

Thats all! lol

Jnox

karanc 01-22-2002 01:04 PM

There are two ways u can run dos as in win9x systems.
1. Pure DOS mode (you boot to dos not windows)
2. Dos in a Window (You run it anytime after windows started)

If you are referring to 1, the equivalent in Linux is to edit the initab file.

If you are referring to 2, you just use the program xterm

There is another way which has no equivalent in Windows called Virtual Terminals.
see http://ctdp.tripod.com/os/linux/user...ux_ugtips.html

dorward 01-22-2002 01:21 PM

Quote:

Originally posted by Jnox
nooo heh
thats not what i'm talking about.
I dont run any Xwindows
Simple question!
How do I get into console (JUST LIKE DOS IN WINDOWS) mode from GUI? When I start Mandrake it automatically boots into GUI? Also what command do I use to go from console to GUI?

The X Window System, commonly known as X Windows forms the basis of most GUI systems (berlin is the only other one I've heard off, but I seriously doubt you are running it). Gnome, KDE, and all the others just run on top of X.

To get a console you can either run xterm (or another termianl application) or hit alt+ctrl+F1 (Or F2-6, F7 is X). However X will still be running so you won't get any performance increase. Follow the above instructions to disable booting to X.

Stephanie 01-22-2002 02:12 PM

Jnox,

To get to a console from the login screen select shutdown and a pop up menu appears asking if you want to drop to console. Select yes, and X shutsdown.

To get back into KDE, type startx at the command prompt. I am not sure what commands you type to get to other desktops or just to activate X, so if someone knows please post there.

Jnox 01-22-2002 02:21 PM

wow thanks alot for your replies. That pretty much answers my question. Thank you, all of you :)

Jnox

Jnox 01-22-2002 02:28 PM

Quote:

Log in as the root . At the command line, use a text editor to open the file inittab under the /etc directory. Be careful! You should first make a copy of this file with the cp command.
LOL one more question. How do I edit that text file. I know you have to do it from console. What do I type! :)

Jnox

dorward 01-22-2002 02:40 PM

Quote:

Originally posted by Jnox


LOL one more question. How do I edit that text file. I know you have to do it from console. What do I type! :)

Jnox

You don't have to do that at the console, but its a good idea to learn a console text editor anyway. Emacs and vi at the most popular, although both take some getting used to.

karanc 01-22-2002 04:04 PM

Quote:

Originally posted by Jnox


LOL one more question. How do I edit that text file. I know you have to do it from console. What do I type! :)

Jnox

if you have mcedit it looks a lot like the dos edit. Good for a beginner.

Jnox 01-22-2002 04:24 PM

I really appriceate you guys replying, and I'm sure you guys know alot but you guys are not helping at all :(

I'm a newbie, I need step by step instructions.

what is the command to edit a file

is it for example

edit inipub

or something?

Jnox

acid_kewpie 01-22-2002 04:30 PM

not helping? it helps it YOU read what people say... they listed THREE editors: mcedit, vi and emacs, so naturally you'd type:

mcedit /etc/inittab

and so forth...

Scotty2435 01-22-2002 04:31 PM

I like emacs but it can be hard to use from a pure console.

In console just put in

emacs YOURFILENAME

and it will start


All times are GMT -5. The time now is 09:58 AM.