LinuxQuestions.org
Review your favorite Linux distribution.
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 09-28-2003, 10:51 AM   #1
bf84
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Rep: Reputation: 0
Command Line


I have Red Hat 9 with KDE running right now. Is there a way I can close the GUI and just use a real command prompt? Kind of like in DOS where you can exit Windows and then type 'win' to load it up again. also, does anyone know how i can switch from a graphical login screen to a text prompt there as well?
 
Old 09-28-2003, 11:15 AM   #2
peace
Member
 
Registered: Jul 2003
Location: Canada
Posts: 214

Rep: Reputation: 31
To close X (and KDE) try alt-ctrl-backspace.

To always log into text, edit the /etc/inittab file and read the comments at the start. In short, change the default from X11 to Multi-user. If you have any questions on that, come back to this thread.

Good luck!
 
Old 09-28-2003, 12:20 PM   #3
bf84
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Neither of those worked. I'm sure it's my fault the login thing didn't work. i'm sure i did something wrong. do i just save it for do i have to compile it or something, and if so, how do i do that? I don't know why Closing X and KDE wouldn't work. Is there a command i can use from the terminal maybe? Thanks
 
Old 09-28-2003, 12:39 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
You can always do a:

ctrl-alt-F2 thru F6 to login at a console.

But if you edit your inittab file in /etc to boot to runlevel 3, it will boot to a console everytime, to startx you would just type startx and when you exit, it will bring you back to a console once again.
 
Old 09-28-2003, 03:05 PM   #5
bf84
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
thanks alot that worked great. the only problem is that when i ctrl-alt-F? to get to a console i can't get back to X or KDE. i typed 'startx' and it told me that display 0 was already running it, but i couldn't figure out how to get back to display 0. sorry i know i nothing about this system. thanks for all the help though.
 
Old 09-28-2003, 03:23 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
To get back to X after its already running, you can do a:

ctrl-alt-F7
 
Old 09-28-2003, 03:42 PM   #7
bf84
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
That works great, thank you so much.
 
Old 09-28-2003, 09:24 PM   #8
h1tman
Member
 
Registered: Jul 2003
Distribution: Slackware 11
Posts: 439

Rep: Reputation: 30
or you can goto /etc/ and change inittab i believe and change the the runlevel so you dont go straight into the gui
 
Old 09-28-2003, 09:49 PM   #9
boreo
Member
 
Registered: Feb 2003
Location: Dominican Republic
Distribution: Slackware, FreeBSD, RedHat
Posts: 326

Rep: Reputation: 30
And if you want use two users at the same time and both with X server running.. You would for example startx to start the first user.. Then change to a consolse Ctrl-Alt-F3 and login with the other user.. And to start the Xserver again for that user you would do something like
startx -- :3
.. And this would start the Xserver for this user.. And to change from user to user you do Ctrl-Alt-F7 to F12
 
Old 09-28-2003, 10:14 PM   #10
Manny88
Member
 
Registered: Sep 2003
Distribution: Mandrake 9.1
Posts: 35

Rep: Reputation: 15
Go to your GUI terminal window and type in "init 3" That will put you into a straight command line. To go back to GUI type in "init 5" those are just temperary

**Credits for that go to my handy Linux for Dummies on pg 298***
 
Old 10-01-2003, 03:48 AM   #11
slappycakes
Member
 
Registered: Aug 2003
Location: Japan
Distribution: Slackware 10
Posts: 88

Rep: Reputation: 15
Thanks boreo. That is exactly what I was looking for. The way to login with multiple X sessions.

Thanks again,
Slappy
 
Old 10-01-2003, 12:35 PM   #12
boreo
Member
 
Registered: Feb 2003
Location: Dominican Republic
Distribution: Slackware, FreeBSD, RedHat
Posts: 326

Rep: Reputation: 30
No problem... Any time...
 
Old 10-01-2003, 10:21 PM   #13
bf84
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Most of that worked, but using startx --:3 doesn't work. is there some trick or is that short for something that i don't know?
 
Old 10-01-2003, 10:30 PM   #14
bf84
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Nevermind, I'm an idiot and I fixed it. One more thing though: when I do that it loads Gnome and I use KDE is there a way to specify which GUI to load? Thanks again.
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 01:28 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 10:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 12:24 AM

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

All times are GMT -5. The time now is 01:56 AM.

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