source: postlfs/config/logon.xml@ 0990cf7a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v5_1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0990cf7a was 0990cf7a, checked in by Bruce Dubbs <bdubbs@…>, 20 years ago

More commas, update Makefile

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2241 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[f45b1953]1<sect1 id="postlfs-config-logon">
[bae6e15]2<?dbhtml filename="logon.html"?>
[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
6screen will
[f45b1953]7be nice and plain (as it should be in a bare-bones system). Many people
8however, will want their system to display some information in the logon
9message. This can be accomplished using the
10file <filename>/etc/issue</filename>.</para>
11
12<para>The <filename>/etc/issue</filename> file is a plain text file
13which will also accept certain Escape sequences (see below) in order to
14insert 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]17configuration file and will also <emphasis>not</emphasis> interpret the
[cfc2a54]18escape sequences shown below.</para>
[f45b1953]19
20<para>One of the most common things which people want to do is to clear
21the 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]23this is to do <userinput><command>clear &gt; /etc/issue</command></userinput>.
24This 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]26you edit the file, you should leave the ^[c character on
27the first line alone.</para>
[f45b1953]28
[64d97b7c]29<para>The following escapes are recognized by agetty (the program which
[f45b1953]30usually parses <filename>/etc/issue</filename>). This information is from
[766bbe40]31<command>man agetty</command> where you can find extra information
[f45b1953]32about the logon process.</para>
33
[766bbe40]34<para>The <filename>issue</filename> file can contain certain escape codes to
35display various information. All escape codes consist of a backslash
36(\) immediately followed by one of the letters explained
[3df86b66]37below (so <option>\d</option> in <filename>/etc/issue</filename> would
[766bbe40]38insert the current date).</para>
[f45b1953]39
[766bbe40]40<screen>b Insert the baudrate of the current line.
[f45b1953]41d Insert the current date.
42s Insert the system name, the name of the operating system.
43l Insert the name of the current tty line.
[0990cf7a]44m Insert the architecture identifier of the machine, e.g., i486
[f45b1953]45n Insert the nodename of the machine, also known as the hostname.
46o Insert the domainname of the machine.
[0990cf7a]47r Insert the release number of the kernel, e.g., 2.4.16.
[f45b1953]48t Insert the current time.
49u Insert the number of current users logged in.
50U Insert the string "1 user" or "&lt;n&gt; users" where &lt;n&gt; is the
51 number of current users logged in.
[0990cf7a]52v Insert the version of the <acronym>OS</acronym>, e.g., the build-date etc.</screen>
[f45b1953]53
54</sect1>
55
Note: See TracBrowser for help on using the repository browser.