On Thu, Sep 21, 2006 at 05:24:44PM -0400, Philip Webb wrote

> I've never quite understood why it's Ctl-Alt-F7 which returns,
> when the TTY's involved seem to be 1 & 2 .  In fact,
> I've suppressed higher-numbered TTY 3-6 in  /etc/inittab .
> Another test reveals that Ctl-Alt-F3 returns to the X session,
> so perhaps the command to return uses the next free F key.
> Can anyone confirm that ?  Anyway the problem is solved.

  My own setup is somewhat non-standard.  I have...

# TERMINALS
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
c7:2345:respawn:/sbin/agetty 38400 tty7 linux
c8:2345:respawn:/sbin/agetty 38400 tty8 linux
c9:2345:respawn:/sbin/agetty 38400 tty9 linux

  I have a regular user account.  I launch X, which takes tty10.  I have
a second "scratch" account for certain tasks, and viewing Google and
other video sites in 400x300 mode or lower.  I tell it to use display :1,
which is tty11.  tty12 is used by kernel log messages.

  A hint for tweaking xorg.conf files.  I have several files in /etc/X11
i.e. /etc/X11/1024xorg.conf /etc/X11/2048xorg.conf /etc/X11/320xorg.conf
/etc/X11/360xorg.conf /etc/X11/400xorg.conf /etc/X11/800xorg.conf and
/etc/X11/xorg.conf.  My regular account has a script ~/bin/x

#! /bin/bash
startx -- -nolisten tcp -nosilk -config ${1}xorg.conf &

and the scratch account has ~/bin/x1

#! /bin/bash
startx -- :1 -nolisten tcp -nosilk -config ${1}xorg.conf &

  The regular account launches X with the command "x" to give me a
1280x1024 screen.  When I'm editing large digital photos, I use the
command "x 2048".  This launches X with the file 2048xorg.conf, which
I've set to give me 2048x1536.  When I want to run at 400x300 for
viewing videos, I launch with "x1 400", which invokes X with the config
file 400xorg.conf. I generally run with the following textmode ttys...
tty1 regular user, mutt (email)
tty2 regular user, slrn (usenet)
tty3 regular user, general purpose console
tty4 scratch account
tty5 scratch account
tty7 console when ssh'ing into the other machine (I have a 1999 Dell
             450 mhz PIII that is my emergency backup machine).
tty8 root (occasional use only) when doing admin stuff that requires
             root (emerge sync, etc).
tty9 regular user, used for launching X.  I find that X spits out a lot
             of logging garbage to the tty that launched it.

tty10 used by X session :0
tty11 used by X session :1
tty12 used by kernel logger for message output

  I run textmode at 80x48 (YES, forty-eight rows with 10-pixel-high
font, which is much easier on the eyes than 8x8 font).

-- 
Walter Dnes <[EMAIL PROTECTED]> In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list

Reply via email to