How to change graphical into text login or vice versa In Fedora Core and Redhat

Share your knowledge, tips and tricks of your favorite Opearting System
Post Reply
anish
Posts: 353
Joined: Fri Apr 27, 2007 12:34 pm
Contact:

How to change graphical into text login or vice versa In Fedora Core and Redhat

Post by anish »

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...

[/tab]First and foremost you should be logged in as root.

[tab]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:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

[/tab]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.

[tab]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


csoftdev
Posts: 28
Joined: Fri Dec 07, 2007 4:49 pm

Post by csoftdev »

you can also switch to another non-X terminal by pressing ALT+F1 or ALT+F2 etc while running x-windows.
Post Reply