source: postlfs/editors/nano.xml@ 54789f3

systemd-13485
Last change on this file since 54789f3 was 54789f3, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Update to LVM-2.02.420 (merged from trunk r16816).
Update to fuse-2.9.5 (merged from trunk r16814).
Update to gptfdisk-1.0.1 (merged from trunk r16553).
Update to xfsprogs-4.3.0 (merged from trunk r16376).
Update to JOE-4.1 (merged from trunk r16385).
Update to nano-2.5.1 (merged from trunk r16799).
Update to tcsh-6.19.00 (merged from trunk r16332).
Update to zsh-5.2 (merged from trunk r16706).
Update to qemu-2.5.0 (merged from trunk r16773).

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16834 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 <!ENTITY nano-download-http "http://ftp.gnu.org/gnu/nano/nano-&nano-version;.tar.gz">
8 <!ENTITY nano-download-ftp "ftp://ftp.gnu.org/gnu/nano/nano-&nano-version;.tar.gz">
9 <!ENTITY nano-md5sum "f25c7da9813ae5f1df7e5dd1072de4ce">
10 <!ENTITY nano-size "1.9 MB">
11 <!ENTITY nano-buildsize "13 MB">
12 <!ENTITY nano-time "0.1 SBU">
13]>
14
15<sect1 id="nano" xreflabel="nano-&nano-version;">
16 <?dbhtml filename="nano.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Nano-&nano-version;</title>
24
25 <indexterm zone="nano">
26 <primary sortas="a-Nano">Nano</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Nano</title>
31
32 <para>
33 The <application>Nano</application> package contains a small,
34 simple text editor which aims to replace <application>Pico</application>,
35 the default editor in the <application>Pine</application> package.
36 </para>
37
38 &lfs77_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&nano-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&nano-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &nano-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &nano-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &nano-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &nano-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Nano Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Optional</bridgehead>
77 <para role="optional">
78 <xref linkend="slang"/>
79 </para>
80
81 <para condition="html" role="usernotes">User Notes:
82 <ulink url="&blfs-wiki;/Nano"/>
83 </para>
84 </sect2>
85
86 <sect2 role="installation">
87 <title>Installation of Nano</title>
88
89 <para>Install <application>Nano</application> by running the following
90 commands:</para>
91
92<screen><userinput>./configure --prefix=/usr \
93 --sysconfdir=/etc \
94 --enable-utf8 \
95 --docdir=/usr/share/doc/nano-&nano-version; &amp;&amp;
96make</userinput></screen>
97
98 <para>
99 This package does not come with a test suite.
100 </para>
101
102 <para>
103 Now, as the <systemitem class="username">root</systemitem> user:
104 </para>
105
106<screen role="root"><userinput>make install &amp;&amp;
107install -v -m644 doc/nanorc.sample /etc &amp;&amp;
108install -v -m644 doc/texinfo/nano.html /usr/share/doc/nano-&nano-version;</userinput></screen>
109
110 </sect2>
111
112 <sect2 role="commands">
113 <title>Command Explanations</title>
114
115 <para>
116 <parameter>--enable-utf8</parameter>: This switch enables unicode support
117 in <application>Nano</application>.
118 </para>
119
120 <para>
121 <option>--with-slang</option>: This forces <application>Nano</application>
122 to use <application>S-Lang</application>.
123 Use this if installed.
124 </para>
125
126 </sect2>
127
128 <sect2 role="configuration">
129 <title>Configuring nano</title>
130
131 <sect3 id="nano-config">
132 <title>Config Files</title>
133
134 <para><filename>/etc/nanorc</filename> and
135 <filename>~/.nanorc</filename></para>
136
137 <indexterm zone="nano nano-config">
138 <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
139 </indexterm>
140
141 <indexterm zone="nano nano-config">
142 <primary sortas="e-AA.nanorc">~/.nanorc</primary>
143 </indexterm>
144
145 </sect3>
146
147 <sect3>
148 <title>Configuration Information</title>
149
150 <para>
151 Example configuration (create as a system-wide
152 <filename>/etc/nanorc</filename> or a personal
153 <filename>~/.nanorc</filename> file)
154 </para>
155
156<screen><literal>set autoindent
157set const
158set fill 72
159set historylog
160set multibuffer
161set nohelp
162set regexp
163set smooth
164set suspend</literal></screen>
165
166 <para>
167 Another example is the <filename>nanorc.sample</filename> file
168 in the <filename class="directory">/etc</filename> directory.
169 It includes color configurations and has some documentation included
170 in the comments.
171 </para>
172
173 <para>
174 Syntax highlighting is provided for several file types, in the
175 <filename class="directory">/usr/share/nano/</filename> directory.
176 As an example, for shell scripts, you can insert
177 <option>include /usr/share/nano/sh.nanorc</option> in your personal
178 or global configuration file. If you want highlighting for all supported
179 files, use <option>include /usr/share/nano/*.nanorc</option>.
180 </para>
181
182 </sect3>
183
184 </sect2>
185
186 <sect2 role="content">
187 <title>Contents</title>
188
189 <segmentedlist>
190 <segtitle>Installed Programs</segtitle>
191 <segtitle>Installed Libraries</segtitle>
192 <segtitle>Installed Directories</segtitle>
193
194 <seglistitem>
195 <seg>
196 nano
197 and rnano (symlink)
198 </seg>
199 <seg>
200 None
201 </seg>
202 <seg>
203 /usr/share/nano and
204 /usr/share/doc/nano-&nano-version;
205 </seg>
206 </seglistitem>
207 </segmentedlist>
208
209 <variablelist>
210 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
211 <?dbfo list-presentation="list"?>
212 <?dbhtml list-presentation="table"?>
213
214 <varlistentry id="nano-prog">
215 <term><command>nano</command></term>
216 <listitem>
217 <para>
218 is a small, simple text editor which aims to replace
219 <application>Pico</application>, the default editor in the
220 <application>Pine</application> package.
221 </para>
222 <indexterm zone="nano nano-prog">
223 <primary sortas="b-nano">nano</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="rnano-prog">
229 <term><command>rnano</command></term>
230 <listitem>
231 <para>
232 is a restricted mode for <command>nano</command>.
233 </para>
234 <indexterm zone="nano rnano-prog">
235 <primary sortas="b-rnano">rnano</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 </variablelist>
241
242 </sect2>
243
244</sect1>
Note: See TracBrowser for help on using the repository browser.