source: postlfs/config/logon.xml@ b1c3841

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b1c3841 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

  • Property mode set to 100644
File size: 3.7 KB
RevLine 
[f8d632a]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[f8d632a]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
[0290a023]8<sect1 id="postlfs-config-logon" xreflabel="Customizing your Logon with /etc/issue">
[89acbff]9 <?dbhtml filename="logon.html"?>
[f45b1953]10
[89acbff]11 <sect1info>
12 <date>$Date$</date>
13 </sect1info>
[f45b1953]14
[89acbff]15 <title>Customizing your Logon with /etc/issue</title>
[f45b1953]16
[89acbff]17 <indexterm zone="postlfs-config-logon">
18 <primary sortas="e-etc-issue">/etc/issue</primary>
19 </indexterm>
[f45b1953]20
[81a73ed8]21 <para>
22 When you first boot up your new LFS system, the logon screen will be
23 nice and plain (as it should be in a bare-bones system). Many people
24 however, will want their system to display some information in the logon
25 message. This can be accomplished using the
26 file <filename>/etc/issue</filename>.
27 </para>
[f45b1953]28
[81a73ed8]29 <para>
30 The <filename>/etc/issue</filename> file is a plain text file
31 which will also accept certain escape sequences (see below) in order to
32 insert information about the system. There is also the file
33 <filename>issue.net</filename> which can be used when logging on remotely.
34 <command>ssh</command> however, will only use it if you set the option in
35 the configuration file and will <emphasis>not</emphasis> interpret the
36 escape sequences shown below.
37 </para>
[f45b1953]38
[81a73ed8]39 <para>
40 One of the most common things which people want to do is clear the
41 screen at each logon. The easiest way of doing that is to put a "clear"
42 escape sequence into <filename>/etc/issue</filename>. A simple way of
43 doing this is to issue the command <command>clear &gt;
44 /etc/issue</command>. This will insert the relevant escape code into
45 the start of the <filename>/etc/issue</filename> file. Note that if
46 you do this, when you edit the file, you should leave the characters
47 (normally '^[[H^[[2J') on the first line alone.
48 </para>
[bccbdaea]49
[81a73ed8]50 <note>
51 <para>
52 Terminal escape sequences are special codes recognized by the terminal.
53 The ^[ represents an ASCII ESC character. The sequence ESC [ H
54 puts the cursor in the upper left hand corner of the screen and ESC 2 J
55 erases the screen. For more information on terminal escape sequences see
56 <ulink url='http://rtfm.etla.org/xterm/ctlseq.html'/>
57 </para>
58 </note>
[89acbff]59
[81a73ed8]60 <para>
61 The following sequences are recognized by <command>agetty</command>
62 (the program which usually parses <filename>/etc/issue</filename>). This
63 information is from <command>man agetty</command> where you can find
64 extra information about the logon process.
65 </para>
[89acbff]66
[81a73ed8]67 <para>
68 The <filename>issue</filename> file can contain certain character
69 sequences to display various information. All <filename>issue</filename>
70 sequences consist of a backslash (\) immediately followed by one of the
71 letters explained below (so <option>\d</option> in
72 <filename>/etc/issue</filename> would insert the current date).
73 </para>
[89acbff]74
75<screen><literal>b Insert the baudrate of the current line.
[f45b1953]76d Insert the current date.
77s Insert the system name, the name of the operating system.
78l Insert the name of the current tty line.
[615b431]79m Insert the architecture identifier of the machine, e.g., i686.
[f45b1953]80n Insert the nodename of the machine, also known as the hostname.
81o Insert the domainname of the machine.
[615b431]82r Insert the release number of the kernel, e.g., 2.6.11.12.
[f45b1953]83t Insert the current time.
84u Insert the number of current users logged in.
85U Insert the string "1 user" or "&lt;n&gt; users" where &lt;n&gt; is the
86 number of current users logged in.
[89acbff]87v Insert the version of the OS, e.g., the build-date etc.</literal></screen>
[f45b1953]88
89</sect1>
Note: See TracBrowser for help on using the repository browser.