source: postlfs/editors/nano.xml@ 10c00a3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 9.0 9.1 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 10c00a3 was 10c00a3, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Update to icewm-1.6.1.
Update to nano-4.4.
Update to mpg123-1.25.12.
Update to dhcpcd-8.0.3.
Update to xfsprogs-5.2.1.

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

  • 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/v4/nano-&nano-version;.tar.xz">
9 <!ENTITY nano-download-ftp " ">
10 <!ENTITY nano-md5sum "9650dd3eb0adbab6aaa748a6f1398ccb">
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 &lfs90_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>Install <application>Nano</application> by running the following
84 commands:</para>
85
86<screen><userinput>./configure --prefix=/usr \
87 --sysconfdir=/etc \
88 --enable-utf8 \
89 --docdir=/usr/share/doc/nano-&nano-version; &amp;&amp;
90make</userinput></screen>
91
92 <para>
93 This package does not come with a test suite.
94 </para>
95
96 <para>
97 Now, as the <systemitem class="username">root</systemitem> user:
98 </para>
99
100<screen role="root"><userinput>make install &amp;&amp;
101install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-&nano-version;</userinput></screen>
102
103 </sect2>
104
105 <sect2 role="commands">
106 <title>Command Explanations</title>
107
108 <para>
109 <parameter>--enable-utf8</parameter>: This switch enables unicode support
110 in <application>Nano</application>.
111 </para>
112
113 </sect2>
114
115 <sect2 role="configuration">
116 <title>Configuring nano</title>
117
118 <sect3 id="nano-config">
119 <title>Config Files</title>
120
121 <para><filename>/etc/nanorc</filename> and
122 <filename>~/.nanorc</filename></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 nowrap
150set positionlog
151set quickblank
152set regexp
153set smooth
154set suspend</literal></screen>
155
156 <para>
157 Check the <filename>sample.nanorc</filename> file in the installed
158 documentation directory. It includes color configurations and has
159 some documentation included in the comments.
160 </para>
161
162 <para>
163 Syntax highlighting is provided for several file types, in
164 <filename class="directory">/usr/share/nano/</filename> directory.
165 E.g., for shell scripts, you can insert
166 <option>include /usr/share/nano/sh.nanorc</option> in the personal or
167 global configuration file. If you wish highlighting for all supported
168 files, use <option>include /usr/share/nano/*.nanorc</option>.
169 </para>
170
171 </sect3>
172
173 </sect2>
174
175 <sect2 role="content">
176 <title>Contents</title>
177
178 <segmentedlist>
179 <segtitle>Installed Programs</segtitle>
180 <segtitle>Installed Libraries</segtitle>
181 <segtitle>Installed Directories</segtitle>
182
183 <seglistitem>
184 <seg>
185 nano and rnano (symlink)
186 </seg>
187 <seg>
188 None
189 </seg>
190 <seg>
191 /usr/share/nano and
192 /usr/share/doc/nano-&nano-version;
193 </seg>
194 </seglistitem>
195 </segmentedlist>
196
197 <variablelist>
198 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
199 <?dbfo list-presentation="list"?>
200 <?dbhtml list-presentation="table"?>
201
202 <varlistentry id="nano-prog">
203 <term><command>nano</command></term>
204 <listitem>
205 <para>
206 is a small, simple text editor which aims to replace
207 <application>Pico</application>, the default editor in the
208 <application>Pine</application> package.
209 </para>
210 <indexterm zone="nano nano-prog">
211 <primary sortas="b-nano">nano</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="rnano-prog">
217 <term><command>rnano</command></term>
218 <listitem>
219 <para>
220 is a restricted mode for <command>nano</command>.
221 </para>
222 <indexterm zone="nano rnano-prog">
223 <primary sortas="b-rnano">rnano</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 </variablelist>
229
230 </sect2>
231
232</sect1>
Note: See TracBrowser for help on using the repository browser.