source: postlfs/editors/nano.xml@ 37a472fd

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 xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 37a472fd was 37a472fd, checked in by Thomas Trepl <thomas@…>, 17 months ago

Update to nano-7.1

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