source: postlfs/editors/nano.xml@ 7ceb8d9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 7ceb8d9 was 7ceb8d9, checked in by Thomas Trepl <thomas@…>, 6 years ago

Version 2.9.0, fix #10044

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

  • Property mode set to 100644
File size: 7.1 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 <!-- Note minor version in URL -->
8 <!ENTITY nano-download-http "https://www.nano-editor.org/dist/v2.9/nano-&nano-version;.tar.xz">
9 <!ENTITY nano-download-ftp " ">
10 <!ENTITY nano-md5sum "a7f0a70fea21431745aa07ee2c5c8d3a">
11 <!ENTITY nano-size "1.4 MB">
12 <!ENTITY nano-buildsize "17 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 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>Nano-&nano-version;</title>
25
26 <indexterm zone="nano">
27 <primary sortas="a-Nano">Nano</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Nano</title>
32
33 <para>
34 The <application>Nano</application> package contains a small,
35 simple text editor which aims to replace <application>Pico</application>,
36 the default editor in the <application>Pine</application> package.
37 </para>
38
39 &lfs81_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&nano-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&nano-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &nano-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &nano-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &nano-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &nano-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">Nano Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Optional</bridgehead>
78 <para role="optional">
79 <xref linkend="slang"/>
80 </para>
81
82 <para condition="html" role="usernotes">User Notes:
83 <ulink url="&blfs-wiki;/Nano"/>
84 </para>
85 </sect2>
86
87 <sect2 role="installation">
88 <title>Installation of Nano</title>
89
90 <para>Install <application>Nano</application> by running the following
91 commands:</para>
92
93<screen><userinput>./configure --prefix=/usr \
94 --sysconfdir=/etc \
95 --enable-utf8 \
96 --docdir=/usr/share/doc/nano-&nano-version; &amp;&amp;
97make</userinput></screen>
98
99 <para>
100 This package does not come with a test suite.
101 </para>
102
103 <para>
104 Now, as the <systemitem class="username">root</systemitem> user:
105 </para>
106
107<screen role="root"><userinput>make install &amp;&amp;
108install -v -m644 doc/{nano.html,sample.nanorc} /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 constantshow
158set fill 72
159set historylog
160set multibuffer
161set nohelp
162set nowrap
163set positionlog
164set quickblank
165set regexp
166set smooth
167set suspend</literal></screen>
168
169 <para>You probably want to create the directory
170 <filename class="directory">$HOME/.local/share/nano</filename>.
171 This is where <application>Nano</application> will store search
172 and position log files. Required only if you have either historylog
173 and/or positionlog enabled. When using those settings in a system-wide
174 configuration, you may want to update
175 <filename class="directory">/etc/skel</filename> to make the
176 directory available for all (new) users.
177 </para>
178
179 <para>
180 Another example is the <filename>nanorc.sample</filename> file
181 in the installed documentation directory.
182 It includes color configurations and has some documentation included
183 in the comments.
184 </para>
185
186 <para>
187 Syntax highlighting is provided for several file types, in
188 <filename class="directory">/usr/share/nano/</filename> directory.
189 E.g., for shell scripts, you can insert
190 <option>include /usr/share/nano/sh.nanorc</option> in the personal or
191 global configuration file. If you wish highlighting for all supported
192 files, use <option>include /usr/share/nano/*.nanorc</option>.
193 </para>
194
195 </sect3>
196
197 </sect2>
198
199 <sect2 role="content">
200 <title>Contents</title>
201
202 <segmentedlist>
203 <segtitle>Installed Programs</segtitle>
204 <segtitle>Installed Libraries</segtitle>
205 <segtitle>Installed Directories</segtitle>
206
207 <seglistitem>
208 <seg>
209 nano and rnano (symlink)
210 </seg>
211 <seg>
212 None
213 </seg>
214 <seg>
215 /usr/share/nano and
216 /usr/share/doc/nano-&nano-version;
217 </seg>
218 </seglistitem>
219 </segmentedlist>
220
221 <variablelist>
222 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
223 <?dbfo list-presentation="list"?>
224 <?dbhtml list-presentation="table"?>
225
226 <varlistentry id="nano-prog">
227 <term><command>nano</command></term>
228 <listitem>
229 <para>
230 is a small, simple text editor which aims to replace
231 <application>Pico</application>, the default editor in the
232 <application>Pine</application> package.
233 </para>
234 <indexterm zone="nano nano-prog">
235 <primary sortas="b-nano">nano</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="rnano-prog">
241 <term><command>rnano</command></term>
242 <listitem>
243 <para>
244 is a restricted mode for <command>nano</command>.
245 </para>
246 <indexterm zone="nano rnano-prog">
247 <primary sortas="b-rnano">rnano</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 </variablelist>
253
254 </sect2>
255
256</sect1>
Note: See TracBrowser for help on using the repository browser.