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://www.nano-editor.org/dist/v2.1/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 "f55bd9efeccf9da98950b54a4b0d872e">
|
---|
10 | <!ENTITY nano-size "1.4 MB">
|
---|
11 | <!ENTITY nano-buildsize "9 MB">
|
---|
12 | <!ENTITY nano-time "less than 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>The <application>nano</application> package contains a small,
|
---|
33 | simple text editor which aims to replace <application>Pico</application>,
|
---|
34 | the default editor in the <application>Pine</application> package.</para>
|
---|
35 |
|
---|
36 | &lfs65_checked;
|
---|
37 |
|
---|
38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
39 | <itemizedlist spacing="compact">
|
---|
40 | <listitem>
|
---|
41 | <para>Download (HTTP): <ulink url="&nano-download-http;"/></para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>Download (FTP): <ulink url="&nano-download-ftp;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download MD5 sum: &nano-md5sum;</para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download size: &nano-size;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Estimated disk space required: &nano-buildsize;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated build time: &nano-time;</para>
|
---|
57 | </listitem>
|
---|
58 | </itemizedlist>
|
---|
59 |
|
---|
60 | <bridgehead renderas="sect3">Nano Dependencies</bridgehead>
|
---|
61 |
|
---|
62 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
63 | <para role="optional"><xref linkend="slang"/></para>
|
---|
64 |
|
---|
65 | <para condition="html" role="usernotes">User Notes:
|
---|
66 | <ulink url="&blfs-wiki;/Nano"/></para>
|
---|
67 |
|
---|
68 | </sect2>
|
---|
69 |
|
---|
70 | <sect2 role="installation">
|
---|
71 | <title>Installation of Nano</title>
|
---|
72 |
|
---|
73 | <para>Install <application>nano</application> by running the following
|
---|
74 | commands:</para>
|
---|
75 |
|
---|
76 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc/nano \
|
---|
77 | --enable-color --enable-multibuffer --enable-nanorc &&
|
---|
78 | make</userinput></screen>
|
---|
79 |
|
---|
80 | <para>This package does not come with a test suite.</para>
|
---|
81 |
|
---|
82 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
83 |
|
---|
84 | <screen role="root"><userinput>make install &&
|
---|
85 | install -v -m644 -D doc/nanorc.sample /etc/nano/nanorc.sample &&
|
---|
86 | install -v -m755 -d /usr/share/doc/nano-&nano-version; &&
|
---|
87 | install -v -m644 doc/{,man/,texinfo/}*.html /usr/share/doc/nano-&nano-version;</userinput></screen>
|
---|
88 |
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <sect2 role="commands">
|
---|
92 | <title>Command Explanations</title>
|
---|
93 |
|
---|
94 | <para><option>--with-slang=/usr/lib</option>: This forces
|
---|
95 | <application>Nano</application> to detect <application>S-Lang</application>.
|
---|
96 | Use this if installed.</para>
|
---|
97 |
|
---|
98 | </sect2>
|
---|
99 |
|
---|
100 | <sect2 role="configuration">
|
---|
101 | <title>Configuring nano</title>
|
---|
102 |
|
---|
103 | <sect3 id="nano-config">
|
---|
104 | <title>Config Files</title>
|
---|
105 |
|
---|
106 | <para><filename>/etc/nano/nanorc</filename> and
|
---|
107 | <filename>~/.nanorc</filename></para>
|
---|
108 |
|
---|
109 | <indexterm zone="nano nano-config">
|
---|
110 | <primary sortas="e-etc-nano-nanorc">/etc/nano/nanorc</primary>
|
---|
111 | </indexterm>
|
---|
112 |
|
---|
113 | <indexterm zone="nano nano-config">
|
---|
114 | <primary sortas="e-AA.nanorc">~/.nanorc</primary>
|
---|
115 | </indexterm>
|
---|
116 |
|
---|
117 | </sect3>
|
---|
118 |
|
---|
119 | <sect3>
|
---|
120 | <title>Configuration Information</title>
|
---|
121 |
|
---|
122 | <para>Example configuration (create as a system-wide
|
---|
123 | <filename>/etc/nano/nanorc</filename> or a personal
|
---|
124 | <filename>~/.nanorc</filename> file)</para>
|
---|
125 |
|
---|
126 | <screen><literal>set autoindent
|
---|
127 | set const
|
---|
128 | set fill 72
|
---|
129 | set historylog
|
---|
130 | set multibuffer
|
---|
131 | set nohelp
|
---|
132 | set regexp
|
---|
133 | set smooth
|
---|
134 | set suspend</literal></screen>
|
---|
135 |
|
---|
136 | <para>Another example is the <filename>nanorc.sample</filename> file
|
---|
137 | in the <filename class="directory">/etc/nano</filename> directory.
|
---|
138 | It includes color configurations and has some documentation included
|
---|
139 | in the comments.</para>
|
---|
140 |
|
---|
141 | </sect3>
|
---|
142 |
|
---|
143 | </sect2>
|
---|
144 |
|
---|
145 | <sect2 role="content">
|
---|
146 | <title>Contents</title>
|
---|
147 |
|
---|
148 | <segmentedlist>
|
---|
149 | <segtitle>Installed Programs</segtitle>
|
---|
150 | <segtitle>Installed Libraries</segtitle>
|
---|
151 | <segtitle>Installed Directories</segtitle>
|
---|
152 |
|
---|
153 | <seglistitem>
|
---|
154 | <seg>nano and rnano</seg>
|
---|
155 | <seg>None</seg>
|
---|
156 | <seg>/etc/nano, /usr/share/nano and
|
---|
157 | /usr/share/doc/nano-&nano-version;</seg>
|
---|
158 | </seglistitem>
|
---|
159 | </segmentedlist>
|
---|
160 |
|
---|
161 | <variablelist>
|
---|
162 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
163 | <?dbfo list-presentation="list"?>
|
---|
164 | <?dbhtml list-presentation="table"?>
|
---|
165 |
|
---|
166 | <varlistentry id="nano-prog">
|
---|
167 | <term><command>nano</command></term>
|
---|
168 | <listitem>
|
---|
169 | <para>is a small, simple text editor which aims to replace
|
---|
170 | <application>Pico</application>, the default editor in the
|
---|
171 | <application>Pine</application> package.</para>
|
---|
172 | <indexterm zone="nano nano-prog">
|
---|
173 | <primary sortas="b-nano">nano</primary>
|
---|
174 | </indexterm>
|
---|
175 | </listitem>
|
---|
176 | </varlistentry>
|
---|
177 |
|
---|
178 | <varlistentry id="rnano-prog">
|
---|
179 | <term><command>rnano</command></term>
|
---|
180 | <listitem>
|
---|
181 | <para>is a restricted mode for <command>nano</command>.</para>
|
---|
182 | <indexterm zone="nano rnano-prog">
|
---|
183 | <primary sortas="b-rnano">rnano</primary>
|
---|
184 | </indexterm>
|
---|
185 | </listitem>
|
---|
186 | </varlistentry>
|
---|
187 |
|
---|
188 | </variablelist>
|
---|
189 |
|
---|
190 | </sect2>
|
---|
191 |
|
---|
192 | </sect1>
|
---|