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 - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-13-2008, 02:00 PM   #1
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
[SOLVED] tty and xdm - getting both


Hi!

I have enabled rc.4 by modifying id:3 to id:4 in inittab. But now I cannot access tty login screen, because it stops after loading "kdm".

Anyway to get back my tty? (I am sure this is an oft asked question, but I cannot find any answers to this question )

Last edited by anupamsr; 07-13-2008 at 03:35 PM.
 
Old 07-13-2008, 03:00 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
But now I cannot access tty login screen, because it stops after loading "kdm".
The system is working as you configured. If you scroll down inittab you'll see a section labeled:

These are the standard console login getties in multiuser mode

Notice in this section that for consoles c1 through c5 there is no number 4 in each console list. That means in runlevel 4, the console is unavailable in those consoles.

Notice that the number 4 is listed for console c6. When in runlevel 4, console 6 (tty6) is available. With the stock Slackware configuration, if you want direct access to a console while in runlevel 4, then press Ctrl-Alt-F6 to toggle to the tty 6 screen.

Traditionally, (Ctrl)-Alt-F1 through (Ctrl)-Alt-F6 is reserved for console screens and (Ctrl)-Alt-F7 through (Ctrl)-Alt-F12 for X sessions. Therefore if you are in X using runlevel 4, press Ctrl-Alt-F6 to toggle to console 6 and Alt-F7 to return to the first X session. Typically the Ctrl key is not needed when toggling in runlevel 3. The Ctrl key is an extra modifier key needed when in X.

You can modify inittab as you desire. Mine looks like this:

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:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux


With this configuration I have access to all 6 console screens when in runlevel 3 and access to tty 4 through 6 when in runlevel 4.

To expand upon this refer to:

Configuring Slackware for a GUI Startup - Part I
Configuring Slackware for a GUI Startup - Part II

With that said, there is a more elegant method to have access to both runlevel 3 and runlevel 4, regardless of which one is the default in inittab. Merely add both options to your boot loader configuration. For this simple tweak refer to:

Configuring Slackware for a GUI and a Command Line Startup

I hope this helps.

Last edited by Woodsman; 07-13-2008 at 03:13 PM.
 
Old 07-13-2008, 03:34 PM   #3
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Original Poster
Rep: Reputation: 30
Thanks! This is exactly what I wanted

(I have a habit of working on tty4 )
 
  


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
I it possible to kill a tty or find which tty is being using by which process? geletine Linux - Software 2 01-15-2006 08:40 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
xdm >minimalist< Linux - Software 1 05-05-2004 06:35 PM
XDM opens XDM after login jpbarto Linux - Software 1 01-26-2004 10:23 PM
xdm hommih Linux - Networking 4 04-16-2002 06:58 PM

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

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