LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-01-2004, 09:41 AM   #1
c31c
Member
 
Registered: Mar 2004
Location: Planet Earth
Distribution: Arch Linux
Posts: 106

Rep: Reputation: Disabled
Question gdm and login console questions


hi
I'd like to change the default init level from 3 to 4.
i edited /etc/inittab only to find out that with any graphical login manager I won't have the text login opiton under tty1 to 6.
how do I configure things so that I can hit ctrl+alt+F* to get to a pure text console?
I had this problem once, when i experienced some driver problems after a kernel compile, and now I just want to make sure that I can go back to console at anytime.

thanks in advance
 
Old 07-01-2004, 10:39 AM   #2
aoe2bug
LQ Newbie
 
Registered: Apr 2004
Posts: 10

Rep: Reputation: 0
you should be able to hit ctr-alt-F6 and it should give you a console, the 1-5 wont work in runlevel 4, but 6 always should. i dont know what could be the problem if 6 doesnt work....
 
Old 07-01-2004, 11:24 AM   #3
c31c
Member
 
Registered: Mar 2004
Location: Planet Earth
Distribution: Arch Linux
Posts: 106

Original Poster
Rep: Reputation: Disabled
hmmm, ok. thanks
i guess 6 works
anyway... how can I get 1-5 to work?
 
Old 07-01-2004, 11:30 AM   #4
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
/etc/inittab... the vc's are listed with runlevels... find the ones that don't have runlevel 4 and add 4 in...
 
Old 07-01-2004, 11:40 AM   #5
AxelFendersson
Member
 
Registered: Mar 2004
Location: Darkest Oxfordshire
Distribution: Arch, Slackware
Posts: 184

Rep: Reputation: 32
Yeah, in RL4 there's a single text console on tty6 (in the comments in /etc/inittab it explains why it's there).

If you want all 6 text consoles and X running, there are two ways to do it. The first is to create a custom runlevel 5, with this setup. To do this change the penultimate line in /etc/inittab from

x1:4:wait:/etc/rc.d/rc.4
to
x1:45:wait:/etc/rc.d/rc.4

(and optionally, change
# 5 = unused (but configured the same as runlevel 3)
which is near the top, to
# 5 = as runlevel 4 with 6 text consoles
)

Then set your default runlevel to 5.

Alternatively, you could add more text consoles to RL4
If you want the full complement of consoles in RL4, change this bit:

# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

To this:

# These are the standard console login getties in multiuser mode:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

That will make runlevel 4 give you all your consoles, as well as X on terminal 7.

Last edited by AxelFendersson; 07-01-2004 at 11:43 AM.
 
Old 07-01-2004, 11:54 AM   #6
c31c
Member
 
Registered: Mar 2004
Location: Planet Earth
Distribution: Arch Linux
Posts: 106

Original Poster
Rep: Reputation: Disabled
wow.
thanks
that's what I wanted to know.
where can i get more information about getty and login topic stuff?
 
Old 07-01-2004, 03:16 PM   #7
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
Why didn't you guys give him the HECK of a lot easier option of just booting into run level 3 and adding gdm to his rc.local? :-P
 
Old 07-01-2004, 03:23 PM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
We use slackware, i guess we always choose the hard way :P
 
Old 07-01-2004, 03:24 PM   #9
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
What's so hard about editing a text file?
 
Old 07-01-2004, 03:26 PM   #10
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
My way involves MUCH less typing ;-)
 
Old 07-01-2004, 03:56 PM   #11
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Well, it's not hard to edit a file, but my very first attempt at linux (back at RedHat 5.2) was very frustrating because X wasn't working and i didn't know which file to edit, and when i did it, i didn't know about a text editor (i didn't have internet, a book or a pet to ask about that :P)
 
Old 07-01-2004, 05:48 PM   #12
AxelFendersson
Member
 
Registered: Mar 2004
Location: Darkest Oxfordshire
Distribution: Arch, Slackware
Posts: 184

Rep: Reputation: 32
Quote:
Quoth lupin_the_3rd:
What's so hard about editing a text file?
Exactly. Adding one character and changing another in /etc/inittab is the easiest thing in the world.
 
Old 07-02-2004, 06:32 AM   #13
c31c
Member
 
Registered: Mar 2004
Location: Planet Earth
Distribution: Arch Linux
Posts: 106

Original Poster
Rep: Reputation: Disabled
thank you guys
that was indeed easy. i just added the 4's in the inittab

now it's finally the way I wanted it to be....
 
  


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
gdm, cannot login as root. Why Biased turkey Linux - Security 10 09-29-2009 04:03 PM
GDM: one login per user Pastorino Linux - Software 2 05-10-2005 01:19 PM
gdm login help moschi Linux - Newbie 2 07-03-2004 12:30 PM
XFree86 4.4.0 - removing console window at gdm login killer_bunny Linux - Software 2 04-15-2004 04:13 AM
X login using GDM koyi Slackware 2 07-24-2003 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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