NAME
mingetty - 控制台最小的 getty
总览 SYNOPSIS
mingetty [--noclear] [--nonewline] [--noissue] [--nohangup] [--nohostname] [--long-hostname] [--loginprog=/bin/login] [--nice=10] [--delay=5] [--chdir=/home] [--chroot=/chroot] [--autologin username] tty
描述 DESCRIPTION
mingetty 是一个用于虚拟终端的最小的 getty。不像 agetty(8) , mingetty 不适于串行线。我建议使用 mgetty(8) 来替代。
选项 OPTIONS
- --noclear
- 在提示输入用户名之前不进行清屏操作 (通常屏幕被清除)。
- --nonewline
- 不在向 /etc/issue 输出之前打印一个信行符。
- --noissue
- 不输出 /etc/issue.
- --nohangup
- 不调用 vhangup() 来禁止其他应用程序对此 tty 的写入。
- --nohostname
- 不在提示登录之前打印主机名。
- --long-hostname
- 默认情况下,主机名只打印第一个句点符 (dot) 前面的部分。允许这个选项之后,将显示 gethostname() 得到的全文。
- --loginprog /bin/login
- 改变登录程序。
- --nice 10
- 调用 nice() 来改变优先级。
- --delay 5
- 启动 mingetty 之后,睡眠这么多秒。
- --chdir /home
- 调用登录程序之前,切换到这个目录。
- --chroot /chroot
- 调用 chroot() ,以这个目录名作为参数。
- --autologin username
- 自动地以指定的用户登录,不询问用户名和密码。为此请检查 /bin/login 的 -f 选项。
ISSUE ESCAPES
mingetty 可以识别下列可以内置于 /etc/issue 文件中的 escape 序列:
- \d
- 插入当前日期 (本地时间),
- \l
- 在 mingetty 运行的终端插入一行,
- \m
- 插入机器体系结构 (uname -m),
- \n
- 插入机器的网络节点主机名 (uname -n),
- \o
- 插入域名,
- \r
- 插入操作系统发行版信息 (uname -r),
- \t
- 插入当前时间 (本地时间),
- \s
- 插入操作系统名称,
- \u
- 以及 \U 插入当前已登录的用户数。 \U 插入 "n users",但是 \u 只插入 "n"。
- \v
- 插入操作系统版本号 (uname -v),
范例 EXAMPLE
"Linux eos i386 #1 Tue Mar 19 21:54:09 MET 1996" 是将 "\s \n \m \v" 写入 /etc/issue 产生的。
文件 FILES
/etc/issue, /var/run/utmp.
参见 SEE ALSO
mgetty(8), agetty(8).
#p#
NAME
mingetty - minimal getty for consoles
SYNOPSIS
mingetty [--noclear] [--nonewline] [--noissue] [--nohangup] [--nohostname] [--long-hostname] [--loginprog=/bin/login] [--nice=10] [--delay=5] [--chdir=/home] [--chroot=/chroot] [--autologin username] tty
DESCRIPTION
mingetty is a minimal getty for use on virtual consoles. Unlike agetty(8), mingetty is not suitable for serial lines. I recommend using mgetty(8) for this purpose.
OPTIONS
- --noclear
- Do not clear the screen before prompting for the login name (the screen is normally cleared).
- --nonewline
- Do not print a newline before writing out /etc/issue.
- --noissue
- Do not output /etc/issue.
- --nohangup
- Do not call vhangup() to disable writing to this tty by other applications.
- --nohostname
- Do not print the hostname before the login prompt.
- --long-hostname
- By default the hostname is only printed until the first dot. With this option enabled, the full text from gethostname() is shown.
- --loginprog /bin/login
- Change the login app.
- --nice 10
- Change the priority by calling nice().
- --delay 5
- Sleep this many seconds after startup of mingetty.
- --chdir /home
- Change into this directory before calling the login prog.
- --chroot /chroot
- Call chroot() with this directory name.
- --autologin username
- Log the specified user automatically in without asking for a login name and password. Check the -f option from /bin/login for this.
ISSUE ESCAPES
mingetty recognizes the following escapes sequences which might be embedded in the /etc/issue file:
- \d
- insert current day (localtime),
- \l
- insert line on which mingetty is running,
- \m
- inserts machine architecture (uname -m),
- \n
- inserts machine's network node hostname (uname -n),
- \o
- inserts domain name,
- \r
- inserts operating system release (uname -r),
- \t
- insert current time (localtime),
- \s
- inserts operating system name,
- \u
- resp. \U the current number of users which are currently logged in. \U inserts "n users", where as \u only inserts "n".
- \v
- inserts operating system version (uname -v).
EXAMPLE
"Linux eos i386 #1 Tue Mar 19 21:54:09 MET 1996" was produced by putting "\s \n \m \v" into /etc/issue.
FILES
/etc/issue, /var/run/utmp.
SEE ALSO
mgetty(8), agetty(8).