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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 7fdc32cb was 7fdc32cb, checked in by Thomas Trepl <thomas@…>, 4 years ago

Upgrade nano-5-0

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

  • Property mode set to 100644
File size: 6.3 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/v5/nano-&nano-version;.tar.xz">
9 <!ENTITY nano-download-ftp " ">
10 <!ENTITY nano-md5sum "6afe46e78f8d6fcd8369d4d966617f47">
11 <!ENTITY nano-size "1.4 MB">
12 <!ENTITY nano-buildsize "19 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 &lfs91_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 <para condition="html" role="usernotes">User Notes:
76 <ulink url="&blfs-wiki;/Nano"/>
77 </para>
78 </sect2>
79
80 <sect2 role="installation">
81 <title>Installation of Nano</title>
82
83 <para>
84 Install <application>Nano</application> by running the following
85 commands:
86 </para>
87
88<screen><userinput>./configure --prefix=/usr \
89 --sysconfdir=/etc \
90 --enable-utf8 \
91 --docdir=/usr/share/doc/nano-&nano-version; &amp;&amp;
92make</userinput></screen>
93
94 <para>
95 This package does not come with a test suite.
96 </para>
97
98 <para>
99 Now, as the <systemitem class="username">root</systemitem> user:
100 </para>
101
102<screen role="root"><userinput>make install &amp;&amp;
103install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-&nano-version;</userinput></screen>
104
105 </sect2>
106
107 <sect2 role="commands">
108 <title>Command Explanations</title>
109
110 <para>
111 <parameter>--enable-utf8</parameter>: This switch enables unicode support
112 in <application>Nano</application>.
113 </para>
114
115 </sect2>
116
117 <sect2 role="configuration">
118 <title>Configuring nano</title>
119
120 <sect3 id="nano-config">
121 <title>Config Files</title>
122
123 <para>
124 <filename>/etc/nanorc</filename> and
125 <filename>~/.nanorc</filename>
126 </para>
127
128 <indexterm zone="nano nano-config">
129 <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
130 </indexterm>
131
132 <indexterm zone="nano nano-config">
133 <primary sortas="e-AA.nanorc">~/.nanorc</primary>
134 </indexterm>
135
136 </sect3>
137
138 <sect3>
139 <title>Configuration Information</title>
140
141 <para>
142 Example configuration (create as a system-wide
143 <filename>/etc/nanorc</filename> or a personal
144 <filename>~/.nanorc</filename> file)
145 </para>
146
147<screen><literal>set autoindent
148set constantshow
149set fill 72
150set historylog
151set multibuffer
152set nohelp
153set positionlog
154set quickblank
155set regexp
156set suspend</literal></screen>
157
158 <para>
159 Check the <filename>sample.nanorc</filename> file in the installed
160 documentation directory. It includes color configurations and has
161 some documentation included in the comments.
162 </para>
163
164 <para>
165 Syntax highlighting is provided for several file types, in
166 <filename class="directory">/usr/share/nano/</filename> directory.
167 E.g., for shell scripts, you can insert
168 <option>include /usr/share/nano/sh.nanorc</option> in the personal or
169 global configuration file. If you wish highlighting for all supported
170 files, use <option>include /usr/share/nano/*.nanorc</option>. This
171 include does not descend into the <filename class="directory">extra</filename>
172 directory. Move required files one level up.
173 </para>
174
175 </sect3>
176
177 </sect2>
178
179 <sect2 role="content">
180 <title>Contents</title>
181
182 <segmentedlist>
183 <segtitle>Installed Programs</segtitle>
184 <segtitle>Installed Libraries</segtitle>
185 <segtitle>Installed Directories</segtitle>
186
187 <seglistitem>
188 <seg>
189 nano and rnano (symlink)
190 </seg>
191 <seg>
192 None
193 </seg>
194 <seg>
195 /usr/share/nano and
196 /usr/share/doc/nano-&nano-version;
197 </seg>
198 </seglistitem>
199 </segmentedlist>
200
201 <variablelist>
202 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
203 <?dbfo list-presentation="list"?>
204 <?dbhtml list-presentation="table"?>
205
206 <varlistentry id="nano-prog">
207 <term><command>nano</command></term>
208 <listitem>
209 <para>
210 is a small, simple text editor which aims to replace
211 <application>Pico</application>, the default editor in the
212 <application>Pine</application> package.
213 </para>
214 <indexterm zone="nano nano-prog">
215 <primary sortas="b-nano">nano</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="rnano-prog">
221 <term><command>rnano</command></term>
222 <listitem>
223 <para>
224 is a restricted mode for <command>nano</command>.
225 </para>
226 <indexterm zone="nano rnano-prog">
227 <primary sortas="b-rnano">rnano</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 </variablelist>
233
234 </sect2>
235
236</sect1>
Note: See TracBrowser for help on using the repository browser.