Loading...


bookmark - Howto: Change Graphical Login To Text and vice-versa ..in Redhat & Fedora Core

Howto: Change Graphical Login To Text - and vice-versa ..in Redhat & Fedora Core

 
 Discussion by miCRoSCoPiC^eaRthLinG with 6 Replies.
 Last Update: November 29, 2008, 6:24 am
 
bookmark - Howto: Change Graphical Login To Text and vice-versa ..in Redhat & Fedora Core  
Quickly Post to Howto: Change Graphical Login To Text and vice-versa ..in Redhat & Fedora Core w/o signup Share Info about Howto: Change Graphical Login To Text and vice-versa ..in Redhat & Fedora Core using Facebook, Twitter etc. email your friend about Howto: Change Graphical Login To Text and vice-versa ..in Redhat & Fedora Core Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Hi all,
This article shows you how to switch between Graphical and Text based Login Screens that are made available to you when you boot into either Redhat or Fedora Core Systems. This will work for Redhat 9.x and both Fedora Core 2 & 3.

I've two servers in my office - one of Fedora Core 2 and one on Redhat Enterprise Linux AS 3. I'd set the Redhat Server to boot into text login but missed out that option in Fedora. As a result it always started off in a X-Windows based login - which was pretty inconvenient. Linux users will know for sure how a GUI can impede your work flow specially on a Linux system which involves editing & modifying millions of config files to get all the services running according to your needs. Naturally, I started feeling very stifled as the FC Server was meant to be my primary internal LAN server and I was always playing around with the settings to get more out of it. So I had to finally give up on being lazy and went ahead and did the little tweak that changed it back to text login...Here's how...

First and foremost you should be logged in as root.

The /etc folder on these Linux installations contain a file named inittab - mind you no extensions to the filename. This file contains lots of important parameters & runlevel configurations that the kernel reads while booting and configures the system accordingly. Open this file in your favourite editor and scroll down just a little bit say, till the 18th-20th line (usually) till you find something similar to this:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

As you can see the last line id:5:initdefault: specifies WHAT MODE (Graphical/Text/MultiUser etc) to boot the system into. The number "5" here, according to the Commented out options above tells the system to boot straight into X11 (X-Windows) i.e. the Graphical Mode.

Change this value to "3" - which according to the options - is Full multiuser mode - involving all the networking features of Linux, but in a non-graphical environment.

That's it. We are done. Save the file and quit. Reboot your system for the setting to take effect.

WARNING: When you are editing these critical system files in Linux, be absolutely sure of WHAT you are editing. One SINGLE MISTAKE can render the whole system non-bootable. These are as dangerous as (if not more) Windows Registry. So there.... ;)

All the best

   Wed Feb 9, 2005    Reply         

cool...

plus, to switch runmode without a re-boot you can run

CODE

telinit 3
or
telinit 5

   Fri Feb 11, 2005    Reply         

Hey thanks for the runlevel tip. I didn't know that one..

   Sat Feb 12, 2005    Reply         


Hello,
I tried and did not work,still booting with X(I am running Red hat 5)
Any suggestions.Thanks ..Homa

-reply by Homa

   Thu Jul 3, 2008    Reply         

Hi!

Have you tried the post at the top? It should work out for you.

Or maybe you can try to press <Ctrl><Alt><F1> to get a console login (up to <F6>).

<Ctrl><Alt><F7> to get back to X Window.



QUOTE (iGuestHoma)

Hello,
I tried and did not work,still booting with X(I am running Red hat 5)
Any suggestions.Thanks ..Homa

-reply by Homa
Link: view Post: 125494









   Wed Nov 26, 2008    Reply         

QUOTE (qwijibow)

cool...

plus, to switch runmode without a re-boot you can run

CODE

telinit 3
or
telinit 5

Link: view Post: 17409


I just use init 3 or init 5 without rebooting :rolleyes: , or do you mean without terminating the X-session ? (btw, I only switch to runlevel 3 if X is acting up and I need to kill it :P ,

   Wed Nov 26, 2008    Reply         


And, of course, this is mainly useful for people wanting to stop the X-Windows graphical display because they have a small system, with slow cpu or few memory.
If you don't have any lack of cpu or memory, you can simply leave the graphical display as it is, and switch to the graphical login window. The key tu push is slightly different depending from the Linux distro you use, but it something like Shif-F1 to switch to the first ascii terminal, Shift-F2 for the second one, etc... I love this because you can edit in one display, compile in the second one, remote login in the third one, being consttantly in full-text full-window mode. On other distros it's something like shift-control-F1

   Sat Nov 29, 2008    Reply         

Quickly Post to Howto: Change Graphical Login To Text and vice-versa ..in Redhat & Fedora Core w/o signup Share Info about Howto: Change Graphical Login To Text and vice-versa ..in Redhat & Fedora Core using Facebook, Twitter etc. email your friend about Howto: Change Graphical Login To Text and vice-versa ..in Redhat & Fedora Core Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Similar Topics:

My Fedora Core 3.0 Appreciation Pag...

As you may have read in the other thread in this forum about my 'adventures' with Mandrake Linus 10.1. Well, it ended up with Quijibow telling me to try another distribution... Following that I also downloaded and installed debian, which I found was much easier to install than M ...more

   25-Feb-2005    Reply         

Fedora Core 3 And Vmware

Hi, Everyone uses Windows, but I think Windows is not a good operating system at all. I use Fedora Core 3 (http://fedora.redhat.com/) as a main operating system and it is all ok. It gives me everything I need. Easy to install, easy to configure, easy to maintain, free. Nothing else you need. ...more

   17-May-2005    Reply         

How Can I Install Netbeans Ide On F...

I've got the NetBeans IDE. But I can't install it on my Fedora Core. It exit unexpectedly in graphical mode. In text mode, I got a message that says : Missing INF file (or something like that). I don't know what to do. I want to do some development work on Linux now. I used to use NetBea ...more

   01-Nov-2005    Reply         

Howto: Setup Your Own DHCP Server On Linux And have it to allot IPs dynamically   Howto: Setup Your Own DHCP Server On Linux And have it to allot IPs dynamically (0) (0) Howto: Change System Runlevel Of A Process & assign multiple runlevels to processes  Howto: Change System Runlevel Of A Process & assign multiple runlevels to processes