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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2006, 02:03 AM   #1
xylebhaby
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
how to's??


how change log in screen from gui to text mode?
 
Old 10-02-2006, 02:15 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
edit /etc/inittab and set your default runlevel to 3 instead of five.

If this is what you mean?
And If your looking for how to's then visit tldp.org
 
Old 10-02-2006, 02:18 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
edit /etc/inittab and set your default runlevel to 3 instead of five.
Actually only most distributions use 3 for text and 5 for graphical. You can test if 3 is your number like this: give (in terminal) command
Code:
init 3
and if it brings you to text-login, 3 is your number. If not, try other numbers from 2 to 5 until you bump into a text-login. One of those is for graphical, at least, and numbers 1 and 6 are reserved for shutdown etc. so just try 2-5.

After that open your /etc/inittab with a text editor for editing (like odcheck said):
Code:
texteditor /etc/inittab
Where texteditor is your favourite editor: vim, joe, nano, pico, ...

Then find a line that says something about initdefault. There is a number on that line - usually 5, like said - put the number you tried (3) instead of that number, save and exit - that's it.

EDIT: if you later want to revert, remember the number that was on the initdefault line, or write it to a comment line to the same file, so later you can just switch the numbers back and get a graphical login.

If you change the initdefault value, you'll always get a text-login instead of a graphical one when you boot. If you only wanted to get into text-login mode this single time, use the init 3 -method; that gets you to to runlevel 3 (text), but next time you boot (or issue init 5) you'll be back to graphical login.

The whole thing is about runlevels: like said, 1 and 6 are not for normal usage. Number 2 is usually used for a single-user login if I remember correctly, then 3 and 4 are used for text logins (but on some systems 3 and 5) and 5 for graphical login (on some systems 4). It simply means 3-5 are "normal multiuser runlevels", but on level 5 it is defined that a graphical login app should be run by default. The file /etc/inittab describes these all, and reading that file you'll get to know which one of the runlevels is for which use (normal multiuser, single user, graphical, ...)

Last edited by b0uncer; 10-02-2006 at 02:23 AM.
 
Old 10-02-2006, 02:18 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
What Linux distribution are you using? Please put this in your profile so that you get accurate answers to your questions.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
10 Linux How -To's khurramshahzad Linux - Newbie 1 03-11-2006 01:11 AM
How to's? Jayce21 Linux - Newbie 2 12-15-2005 11:20 PM
How to's zWaR Linux - Newbie 2 02-22-2004 09:51 AM
mplayer HOW-TO's air_vin General 1 09-11-2003 06:40 AM
How to read how to's... sramelyk Slackware 20 08-24-2003 03:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:46 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