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