[f8d632ac] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[f45b1953] | 8 | <sect1 id="postlfs-config-logon">
|
---|
[a0f03b0] | 9 | <sect1info>
|
---|
[5cd0959d] | 10 | <othername>$LastChangedBy$</othername>
|
---|
| 11 | <date>$Date$</date>
|
---|
[a0f03b0] | 12 | </sect1info>
|
---|
[bae6e15] | 13 | <?dbhtml filename="logon.html"?>
|
---|
[64d97b7c] | 14 | <title>/etc/issue (Customizing your logon)</title>
|
---|
[f45b1953] | 15 |
|
---|
[766bbe40] | 16 | <para>When you first boot up your new <acronym>LFS</acronym> system, the logon
|
---|
| 17 | screen will
|
---|
[f45b1953] | 18 | be nice and plain (as it should be in a bare-bones system). Many people
|
---|
| 19 | however, will want their system to display some information in the logon
|
---|
| 20 | message. This can be accomplished using the
|
---|
| 21 | file <filename>/etc/issue</filename>.</para>
|
---|
| 22 |
|
---|
| 23 | <para>The <filename>/etc/issue</filename> file is a plain text file
|
---|
| 24 | which will also accept certain Escape sequences (see below) in order to
|
---|
| 25 | insert information about the system. There is also the file
|
---|
| 26 | <filename>issue.net</filename> which can be used when logging on remotely.
|
---|
[766bbe40] | 27 | <command>ssh</command> however, will only use it if you set the option in the
|
---|
[f45b1953] | 28 | configuration file and will also <emphasis>not</emphasis> interpret the
|
---|
[cfc2a54] | 29 | escape sequences shown below.</para>
|
---|
[f45b1953] | 30 |
|
---|
| 31 | <para>One of the most common things which people want to do is to clear
|
---|
| 32 | the screen at each logon. The easiest way of doing that is to put a
|
---|
[cfc2a54] | 33 | "clear" escape-sequence into <filename>/etc/issue</filename>. A simple way of doing
|
---|
[766bbe40] | 34 | this is to do <userinput><command>clear > /etc/issue</command></userinput>.
|
---|
| 35 | This will insert the relevant escape code into the start of the
|
---|
[f45b1953] | 36 | <filename>/etc/issue</filename> file. Note that if you do this, when
|
---|
[766bbe40] | 37 | you edit the file, you should leave the ^[c character on
|
---|
| 38 | the first line alone.</para>
|
---|
[f45b1953] | 39 |
|
---|
[64d97b7c] | 40 | <para>The following escapes are recognized by agetty (the program which
|
---|
[f45b1953] | 41 | usually parses <filename>/etc/issue</filename>). This information is from
|
---|
[766bbe40] | 42 | <command>man agetty</command> where you can find extra information
|
---|
[f45b1953] | 43 | about the logon process.</para>
|
---|
| 44 |
|
---|
[766bbe40] | 45 | <para>The <filename>issue</filename> file can contain certain escape codes to
|
---|
| 46 | display various information. All escape codes consist of a backslash
|
---|
| 47 | (\) immediately followed by one of the letters explained
|
---|
[3df86b66] | 48 | below (so <option>\d</option> in <filename>/etc/issue</filename> would
|
---|
[766bbe40] | 49 | insert the current date).</para>
|
---|
[f45b1953] | 50 |
|
---|
[766bbe40] | 51 | <screen>b Insert the baudrate of the current line.
|
---|
[f45b1953] | 52 | d Insert the current date.
|
---|
| 53 | s Insert the system name, the name of the operating system.
|
---|
| 54 | l Insert the name of the current tty line.
|
---|
[0990cf7a] | 55 | m Insert the architecture identifier of the machine, e.g., i486
|
---|
[f45b1953] | 56 | n Insert the nodename of the machine, also known as the hostname.
|
---|
| 57 | o Insert the domainname of the machine.
|
---|
[0990cf7a] | 58 | r Insert the release number of the kernel, e.g., 2.4.16.
|
---|
[f45b1953] | 59 | t Insert the current time.
|
---|
| 60 | u Insert the number of current users logged in.
|
---|
| 61 | U Insert the string "1 user" or "<n> users" where <n> is the
|
---|
| 62 | number of current users logged in.
|
---|
[0990cf7a] | 63 | v Insert the version of the <acronym>OS</acronym>, e.g., the build-date etc.</screen>
|
---|
[f45b1953] | 64 |
|
---|
| 65 | </sect1>
|
---|
| 66 |
|
---|