
02-19-2008, 12:40 PM
|
| |
Re: halt for users pgp trash troll delete
Lew Pitcher <lpitcher@sympatico.ca> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> standardblue wrote:
> | On Wed, 23 Jun 2004 14:35:25 -0400, Lew Pitcher wrote:
> |
> | <snip about terminals/consoles>
> |
> | Thanks Lew, I didn't know any of that. Quite interesting, and probably
> | good to know at some point!
> |
> |
> |>Now, where is your X session? If you don't tell X otherwise, it starts
> |>the X session on the first free console after the last used one. In
> |>other words, without any overriding instructions, in this case X will
> |>start the session on tty7, and you'd get to tty7 through
> |>[<ctl>]<alt><F7>.
> |
> |
> | So, does that mean that I could add more terminals by adding a line
> | starting cN, and with ttyN? (where N is between 7 and 12 - the number of
> | function keys on a keyboard)?
> No, but close.
> Here's that /etc/inittab fragment again
> ~ # 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
> It's the /second/ field that tells init when to start the named process.
> In the standard Slackware inittab, tty1 through tty5 are only started when you
> enter runlevel 1 or 2 or 3 or 5, while tty6 is started when you enter runlevel
> 1 or 2 or 3 or 4 or 5. Notice anything about that list of runlevels?
> The second field of the inittab indicates which runlevels to run the process
> under. If you wanted to start more 'console' text terminals when you enter run
> level 4 (the run level under which X starts), you'd have some entries with a 4
> in that field. You can just edit /etc/inittab, and /add/ a 4 to the runlevels
> for c1 through c5, and you'll get terminals on tty1 (F1) through tty5 (F5).
> /That/ inittab would look like
> ~ # All the terminals are started up in X mode (runlevel 4)
> ~ 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
> You can even add more terminals (here, tty7 @ F7 and tty8 @ F8)
> ~ # X7 and X8 are ttys (tty7 and tty8) that only run when X is up
> ~ X7:4:respawn:/sbin/agetty 38400 tty7 linux
> ~ X8:4:respawn:/sbin/agetty 38400 tty8 linux
> Take a look at the inittab(5) manpage ('man 5 inittab') to learn more about
> how inittab works. For Linux sysadms, it's something worth knowing, and I
> can't imagine a Slackware sysadm that isn't interested in it.
> | And, if I did, and <ctrl><alt><Fx>'d out of x-windows, and had 12
> | consoles, how would I get back in - there's no F13?
> IIRC, [<ctrl>]<alt><SHIFT><F1>
> F13 through F24 are shifted F1 through F12
> [snip]
> | Thanks
> You're quite welcome. Anything for a fellow Slacker <grin>
> - --
> Lew Pitcher
> Master Codewright & JOAT-in-training | GPG public key available on request
> Registered Linux User #112576 (http://counter.li.org/)
> Slackware - Because I know what I'm doing.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> iD8DBQFA2jS9agVFX4UWr64RAgciAJ9i24F0IJGB2auG3Te47U OAmsQJigCePkGq
> WOgbK4+fOCYD6ac6xJvhduw=
> =+s/9
> -----END PGP SIGNATURE----- |