source: postlfs/editors/nano.xml@ 179d8abc

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 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 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 179d8abc was 179d8abc, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

nano-2.3.5: forgot to modify SBU, now that autoreconf is necessary. Before, I had fixed with a switch in configure, SBU was smaller.

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

  • Property mode set to 100644
File size: 6.5 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 "a771f6283ac1edee8e5486209910c829">
10 <!ENTITY nano-size "1.8 MB">
11 <!ENTITY nano-buildsize "11 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 &lfs75_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>sed -i '/dnl Silence/,+3d' configure.ac &amp;&amp;<!-- already commited upstream, remove it and the entry in Command Explanations, in next update-->
93autoreconf -fiv &amp;&amp;
94./configure --prefix=/usr \
95 --sysconfdir=/etc \
96 --enable-utf8 \
97 --docdir=/usr/share/doc/nano-&nano-version; &amp;&amp;
98make</userinput></screen>
99
100 <para>
101 This package does not come with a test suite.
102 </para>
103
104 <para>
105 Now, as the <systemitem class="username">root</systemitem> user:
106 </para>
107
108<screen role="root"><userinput>make install &amp;&amp;
109install -v -m644 doc/nanorc.sample /etc &amp;&amp;
110install -v -m644 doc/texinfo/nano.html /usr/share/doc/nano-&nano-version;</userinput></screen>
111
112 </sect2>
113
114 <sect2 role="commands">
115 <title>Command Explanations</title>
116
117 <para>
118 <command>sed -i '/dnl Silence/,+3d' configure.ac</command>: Fixes the
119 directory <filename class="directory">locale</filename> to be placed under
120 <filename class="directory">/usr/share</filename>.
121 </para>
122
123 <para>
124 <parameter>--enable-utf8</parameter>: This switch enables unicode support
125 in <application>Nano</application>.
126 </para>
127
128 <para>
129 <option>--with-slang</option>: This forces <application>Nano</application>
130 to use <application>S-Lang</application>.
131 Use this if installed.
132 </para>
133
134 </sect2>
135
136 <sect2 role="configuration">
137 <title>Configuring nano</title>
138
139 <sect3 id="nano-config">
140 <title>Config Files</title>
141
142 <para><filename>/etc/nanorc</filename> and
143 <filename>~/.nanorc</filename></para>
144
145 <indexterm zone="nano nano-config">
146 <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
147 </indexterm>
148
149 <indexterm zone="nano nano-config">
150 <primary sortas="e-AA.nanorc">~/.nanorc</primary>
151 </indexterm>
152
153 </sect3>
154
155 <sect3>
156 <title>Configuration Information</title>
157
158 <para>
159 Example configuration (create as a system-wide
160 <filename>/etc/nanorc</filename> or a personal
161 <filename>~/.nanorc</filename> file)
162 </para>
163
164<screen><literal>set autoindent
165set const
166set fill 72
167set historylog
168set multibuffer
169set nohelp
170set regexp
171set smooth
172set suspend</literal></screen>
173
174 <para>
175 Another example is the <filename>nanorc.sample</filename> file
176 in the <filename class="directory">/etc</filename> directory.
177 It includes color configurations and has some documentation included
178 in the comments.
179 </para>
180
181 </sect3>
182
183 </sect2>
184
185 <sect2 role="content">
186 <title>Contents</title>
187
188 <segmentedlist>
189 <segtitle>Installed Programs</segtitle>
190 <segtitle>Installed Libraries</segtitle>
191 <segtitle>Installed Directories</segtitle>
192
193 <seglistitem>
194 <seg>
195 nano and rnano (symlink)
196 </seg>
197 <seg>
198 None
199 </seg>
200 <seg>
201 /usr/share/nano and
202 /usr/share/doc/nano-&nano-version;
203 </seg>
204 </seglistitem>
205 </segmentedlist>
206
207 <variablelist>
208 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
209 <?dbfo list-presentation="list"?>
210 <?dbhtml list-presentation="table"?>
211
212 <varlistentry id="nano-prog">
213 <term><command>nano</command></term>
214 <listitem>
215 <para>
216 is a small, simple text editor which aims to replace
217 <application>Pico</application>, the default editor in the
218 <application>Pine</application> package.
219 </para>
220 <indexterm zone="nano nano-prog">
221 <primary sortas="b-nano">nano</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="rnano-prog">
227 <term><command>rnano</command></term>
228 <listitem>
229 <para>
230 is a restricted mode for <command>nano</command>.
231 </para>
232 <indexterm zone="nano rnano-prog">
233 <primary sortas="b-rnano">rnano</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 </variablelist>
239
240 </sect2>
241
242</sect1>
Note: See TracBrowser for help on using the repository browser.