source: postlfs/editors/nano.xml

trunk
Last change on this file was 868811b, checked in by Bruce Dubbs <bdubbs@…>, 2 months ago

Many tags.
genutils
sysutils
netlibs
netprogs
netutils
editors
filesystems
shells

  • Property mode set to 100644
File size: 6.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!-- Note minor version in URL -->
8 <!ENTITY nano-download-http "https://www.nano-editor.org/dist/v7/nano-&nano-version;.tar.xz">
9 <!ENTITY nano-download-ftp " ">
10 <!ENTITY nano-md5sum "13742c686c6ddb0b7b294634f0c13cec">
11 <!ENTITY nano-size "1.5 MB">
12 <!ENTITY nano-buildsize "20 MB">
13 <!ENTITY nano-time "0.2 SBU">
14]>
15
16<sect1 id="nano" xreflabel="nano-&nano-version;">
17 <?dbhtml filename="nano.html"?>
18
19
20 <title>Nano-&nano-version;</title>
21
22 <indexterm zone="nano">
23 <primary sortas="a-Nano">Nano</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to Nano</title>
28
29 <para>
30 The <application>Nano</application> package contains a small,
31 simple text editor which aims to replace <application>Pico</application>,
32 the default editor in the <application>Pine</application> package.
33 </para>
34
35 &lfs121_checked;
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>
41 Download (HTTP): <ulink url="&nano-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&nano-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &nano-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &nano-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &nano-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &nano-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 </sect2>
72
73 <sect2 role="installation">
74 <title>Installation of Nano</title>
75
76 <para>
77 Install <application>Nano</application> by running the following
78 commands:
79 </para>
80
81<screen><userinput>./configure --prefix=/usr \
82 --sysconfdir=/etc \
83 --enable-utf8 \
84 --docdir=/usr/share/doc/nano-&nano-version; &amp;&amp;
85make</userinput></screen>
86
87 <para>
88 This package does not come with a test suite.
89 </para>
90
91 <para>
92 Now, as the <systemitem class="username">root</systemitem> user:
93 </para>
94
95<screen role="root"><userinput>make install &amp;&amp;
96install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-&nano-version;</userinput></screen>
97
98 </sect2>
99
100 <sect2 role="commands">
101 <title>Command Explanations</title>
102
103 <para>
104 <parameter>--enable-utf8</parameter>: This switch enables unicode support
105 in <application>Nano</application>.
106 </para>
107
108 </sect2>
109
110 <sect2 role="configuration">
111 <title>Configuring nano</title>
112
113 <sect3 id="nano-config">
114 <title>Config Files</title>
115
116 <para>
117 <filename>/etc/nanorc</filename> and
118 <filename>~/.nanorc</filename>
119 </para>
120
121 <indexterm zone="nano nano-config">
122 <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
123 </indexterm>
124
125 <indexterm zone="nano nano-config">
126 <primary sortas="e-AA.nanorc">~/.nanorc</primary>
127 </indexterm>
128
129 </sect3>
130
131 <sect3>
132 <title>Configuration Information</title>
133
134 <para>
135 Example configuration (create as a system-wide
136 <filename>/etc/nanorc</filename> or a personal
137 <filename>~/.nanorc</filename> file)
138 </para>
139
140<screen><literal>set autoindent
141set constantshow
142set fill 72
143set historylog
144set multibuffer
145set nohelp
146set positionlog
147set quickblank
148set regexp</literal></screen>
149
150 <para>
151 Check the <filename>sample.nanorc</filename> file in the installed
152 documentation directory. It includes color configurations and has
153 some documentation included in the comments.
154 </para>
155
156 <para>
157 Syntax highlighting is provided for several file types, in
158 <filename class="directory">/usr/share/nano/</filename> directory.
159 E.g., for shell scripts, you can insert
160 <option>include /usr/share/nano/sh.nanorc</option> in the personal or
161 global configuration file. If you wish highlighting for all supported
162 files, use <option>include /usr/share/nano/*.nanorc</option>. This
163 include does not descend into the <filename class="directory">extra</filename>
164 directory. Move required files one level up.
165 </para>
166
167 </sect3>
168
169 </sect2>
170
171 <sect2 role="content">
172 <title>Contents</title>
173
174 <segmentedlist>
175 <segtitle>Installed Programs</segtitle>
176 <segtitle>Installed Libraries</segtitle>
177 <segtitle>Installed Directories</segtitle>
178
179 <seglistitem>
180 <seg>
181 nano and rnano (symlink)
182 </seg>
183 <seg>
184 None
185 </seg>
186 <seg>
187 /usr/share/nano and
188 /usr/share/doc/nano-&nano-version;
189 </seg>
190 </seglistitem>
191 </segmentedlist>
192
193 <variablelist>
194 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
195 <?dbfo list-presentation="list"?>
196 <?dbhtml list-presentation="table"?>
197
198 <varlistentry id="nano-prog">
199 <term><command>nano</command></term>
200 <listitem>
201 <para>
202 is a small, simple text editor which aims to replace
203 <application>Pico</application>, the default editor in the
204 <application>Pine</application> package
205 </para>
206 <indexterm zone="nano nano-prog">
207 <primary sortas="b-nano">nano</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="rnano-prog">
213 <term><command>rnano</command></term>
214 <listitem>
215 <para>
216 is a restricted mode for <command>nano</command>
217 </para>
218 <indexterm zone="nano rnano-prog">
219 <primary sortas="b-rnano">rnano</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 </variablelist>
225
226 </sect2>
227
228</sect1>
Note: See TracBrowser for help on using the repository browser.