Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-28-2012, 11:09 PM   #1
LQ Newbie
Registered: May 2012
Posts: 16

Rep: Reputation: Disabled
How to configure Linux to login with the terminal

I'm somewhat new to linux. I know a bit about the terminal and how linux works. I'm wondering if there is a way to boot into the terminal and log into my account from there. I like the GUI in fedora 16, but I feel much more interested in Linux when I'm required to do more technical things than when it's handed to me on a silver platter.

I want to turn my computer on.
See the terminal
Login with a command (su austin??)
Start the GUI at when I want to (startx?? I know this from BackTrack)
And then continue normally using my computer.

Is this possible? Thanks in advance.
Old 05-28-2012, 11:38 PM   #2
Registered: Apr 2012
Location: /root
Distribution: Ubuntu, Redhat, Fedora, CentOS
Posts: 190

Rep: Reputation: 55
use combination of keys at login screen to switch to console mode

usally in fedora, centos, redhat have "CTRL+ALT+F6" are keys which is used to swtich into console mode, "CTRL"ALT+F7" for move back to GUI.

further go directory into console mode, you need to edit /etc/inittab file

Run the following command to edit the /etc/inittab file:

#vi /etc/inittab
Press the I key to enter insert mode.
Find the line that includes the text initdefault. Change the numeral 5 to 3.
Type :wq and press the Enter key to save the file and exit the vi text editor.

and than a reboot.

this was started process upto rhel5, fedora older versions and centos5, but from fedora16, CENTOS6, rhel6. they have changed init process with upstart that is module approach to boot the system.

so /etc/inittab file is deprecated, and is now used only for setting up the default runlevel via the initdefault line. Other configuration is done via upstart jobs in the /etc/init directory.

so if you read other documents on internet make sure those are not old.
Old 05-29-2012, 12:27 PM   #3
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Or when you boot , edit the kernel parameters adding a space then 3 to the end.
If you want to make it permanent, edit grub.conf the same way.
Old 05-29-2012, 08:23 PM   #4
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Or edit /etc/inittab and change the default runlevel to 3.

# The default runlevel.
This does not work out-of-the-box with Debian flavored distros, in which runlevels 3-5 are all treated like runlevel 5 (that is, booting into a graphical display manager).

Last edited by frankbell; 05-29-2012 at 08:27 PM.
Old 05-29-2012, 09:01 PM   #5
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Welcome to LinuxQuestions.
As stated Fedora 16 uses upstart so changing inittab will not work. linux distributions are slightly different so here you go.

FYI runlevel 3 is console mode and 5 is GUI

Last edited by michaelk; 05-29-2012 at 09:02 PM.
Old 05-30-2012, 12:06 AM   #6
Registered: May 2012
Posts: 426

Rep: Reputation: 53
Not too sure about Fedora as it's been a long time since I used this distro but, you could try uninstalling the Gnome Display Manager (gdm3) package and create a .xinitrc file in your home directory. The following should be inserted into the .xinitrc file,

exec ck-launch-session gnome-session
Restart machine and you hopefully will get a console login appear, login and do a startx.

I would try it on a test box or VM first so you don't hose your system.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Intermittent SSH login problem into Linux terminal debStudent Linux - Server 3 11-05-2011 08:45 PM
[SOLVED] Difference between a login terminal & non-login termiinal Soji Antony Linux - Newbie 6 06-26-2011 09:07 AM
How to configure Windows XP to login into Linux/Unix Samba Networking charlesedwin Linux - Enterprise 1 12-29-2009 05:38 AM
Debian Linux Graphical Login Terminal not responding after screen lock kzhou Linux - Newbie 1 04-25-2009 04:26 AM
Linux Terminal Server With Remote Login 2-tone-joe Linux - Newbie 1 09-08-2008 04:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:58 AM.

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