LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-22-2002, 11:49 AM   #1
Jnox
LQ Newbie
 
Registered: Jan 2002
Posts: 17

Rep: Reputation: 0
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!
 
Old 01-22-2002, 12:02 PM   #2
karanc
LQ Newbie
 
Registered: Jan 2002
Location: .
Distribution: Mandrake 8.1
Posts: 15

Rep: Reputation: 0
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.
 
Old 01-22-2002, 12:07 PM   #3
Jnox
LQ Newbie
 
Registered: Jan 2002
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 01-22-2002, 12:41 PM   #4
karanc
LQ Newbie
 
Registered: Jan 2002
Location: .
Distribution: Mandrake 8.1
Posts: 15

Rep: Reputation: 0
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.
 
Old 01-22-2002, 12:46 PM   #5
Jnox
LQ Newbie
 
Registered: Jan 2002
Posts: 17

Original Poster
Rep: Reputation: 0
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

Last edited by Jnox; 01-22-2002 at 12:47 PM.
 
Old 01-22-2002, 01:04 PM   #6
karanc
LQ Newbie
 
Registered: Jan 2002
Location: .
Distribution: Mandrake 8.1
Posts: 15

Rep: Reputation: 0
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
 
Old 01-22-2002, 01:21 PM   #7
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
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.
 
Old 01-22-2002, 02:12 PM   #8
Stephanie
LQ Addict
 
Registered: May 2001
Location: Arizona
Distribution: 9.2 Mandy 1.4 Gentoo 5.1 FreeBSD WinXP
Posts: 1,166

Rep: Reputation: 45
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.
 
Old 01-22-2002, 02:21 PM   #9
Jnox
LQ Newbie
 
Registered: Jan 2002
Posts: 17

Original Poster
Rep: Reputation: 0
wow thanks alot for your replies. That pretty much answers my question. Thank you, all of you

Jnox
 
Old 01-22-2002, 02:28 PM   #10
Jnox
LQ Newbie
 
Registered: Jan 2002
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 01-22-2002, 02:40 PM   #11
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
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.
 
Old 01-22-2002, 04:04 PM   #12
karanc
LQ Newbie
 
Registered: Jan 2002
Location: .
Distribution: Mandrake 8.1
Posts: 15

Rep: Reputation: 0
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.
 
Old 01-22-2002, 04:24 PM   #13
Jnox
LQ Newbie
 
Registered: Jan 2002
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 01-22-2002, 04:30 PM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...
 
Old 01-22-2002, 04:31 PM   #15
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
booting into console or GUI - Solaris 10 chexmix Solaris / OpenSolaris 12 06-07-2013 02:26 PM
I can't get from gui back to console nutbag Slackware 11 07-24-2005 08:16 AM
java gui console? sibtay Linux - General 1 11-29-2004 07:17 AM
NOT X (GUI) no Console - Help! tripweed Fedora 3 03-25-2004 11:32 AM
console or gui boot? Vyeperman Linux - Newbie 3 09-21-2003 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration