[b5951ec] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[b5951ec] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[9513623] | 7 | <!-- Note minor version in URL -->
|
---|
[f8b0f9e] | 8 | <!ENTITY nano-download-http "https://www.nano-editor.org/dist/v6/nano-&nano-version;.tar.xz">
|
---|
[9513623] | 9 | <!ENTITY nano-download-ftp " ">
|
---|
[95145941] | 10 | <!ENTITY nano-md5sum "5b6ff59f2490db80a3498c4cd3eda085">
|
---|
[498a011] | 11 | <!ENTITY nano-size "1.4 MB">
|
---|
[95145941] | 12 | <!ENTITY nano-buildsize "20 MB">
|
---|
[0f5f10b] | 13 | <!ENTITY nano-time "0.2 SBU">
|
---|
[b5951ec] | 14 | ]>
|
---|
| 15 |
|
---|
[fd680fb] | 16 | <sect1 id="nano" xreflabel="nano-&nano-version;">
|
---|
[2cfa892] | 17 | <?dbhtml filename="nano.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 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 |
|
---|
[d78d84d] | 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>
|
---|
[2cfa892] | 37 |
|
---|
[3d8d0049] | 38 | &lfs110a_checked;
|
---|
[c70fd34] | 39 |
|
---|
[2cfa892] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[d78d84d] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&nano-download-http;"/>
|
---|
| 45 | </para>
|
---|
[2cfa892] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[d78d84d] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&nano-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[2cfa892] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[d78d84d] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &nano-md5sum;
|
---|
| 55 | </para>
|
---|
[2cfa892] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[d78d84d] | 58 | <para>
|
---|
| 59 | Download size: &nano-size;
|
---|
| 60 | </para>
|
---|
[2cfa892] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[d78d84d] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &nano-buildsize;
|
---|
| 65 | </para>
|
---|
[2cfa892] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[d78d84d] | 68 | <para>
|
---|
| 69 | Estimated build time: &nano-time;
|
---|
| 70 | </para>
|
---|
[2cfa892] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[3597eb6] | 74 | <para condition="html" role="usernotes">User Notes:
|
---|
[4890200] | 75 | <ulink url="&blfs-wiki;/Nano"/>
|
---|
| 76 | </para>
|
---|
[2cfa892] | 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2 role="installation">
|
---|
| 80 | <title>Installation of Nano</title>
|
---|
| 81 |
|
---|
[f716ef4] | 82 | <para>
|
---|
| 83 | Install <application>Nano</application> by running the following
|
---|
| 84 | commands:
|
---|
| 85 | </para>
|
---|
[2cfa892] | 86 |
|
---|
[fad8db2] | 87 | <screen><userinput>./configure --prefix=/usr \
|
---|
[d78d84d] | 88 | --sysconfdir=/etc \
|
---|
[30fe7dd] | 89 | --enable-utf8 \
|
---|
| 90 | --docdir=/usr/share/doc/nano-&nano-version; &&
|
---|
[2cfa892] | 91 | make</userinput></screen>
|
---|
[d7444dee] | 92 |
|
---|
[d78d84d] | 93 | <para>
|
---|
| 94 | This package does not come with a test suite.
|
---|
| 95 | </para>
|
---|
[40729db] | 96 |
|
---|
[d78d84d] | 97 | <para>
|
---|
| 98 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 99 | </para>
|
---|
[d7444dee] | 100 |
|
---|
[2cfa892] | 101 | <screen role="root"><userinput>make install &&
|
---|
[8d3f3780] | 102 | install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-&nano-version;</userinput></screen>
|
---|
[b5951ec] | 103 |
|
---|
[2cfa892] | 104 | </sect2>
|
---|
[b5951ec] | 105 |
|
---|
[c70fd34] | 106 | <sect2 role="commands">
|
---|
| 107 | <title>Command Explanations</title>
|
---|
| 108 |
|
---|
[90c160c] | 109 | <para>
|
---|
| 110 | <parameter>--enable-utf8</parameter>: This switch enables unicode support
|
---|
[4890200] | 111 | in <application>Nano</application>.
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
[c70fd34] | 114 | </sect2>
|
---|
| 115 |
|
---|
[2cfa892] | 116 | <sect2 role="configuration">
|
---|
| 117 | <title>Configuring nano</title>
|
---|
[b5951ec] | 118 |
|
---|
[2cfa892] | 119 | <sect3 id="nano-config">
|
---|
| 120 | <title>Config Files</title>
|
---|
[b5951ec] | 121 |
|
---|
[f716ef4] | 122 | <para>
|
---|
| 123 | <filename>/etc/nanorc</filename> and
|
---|
| 124 | <filename>~/.nanorc</filename>
|
---|
| 125 | </para>
|
---|
[b5951ec] | 126 |
|
---|
[2cfa892] | 127 | <indexterm zone="nano nano-config">
|
---|
[d78d84d] | 128 | <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
|
---|
[2cfa892] | 129 | </indexterm>
|
---|
| 130 |
|
---|
| 131 | <indexterm zone="nano nano-config">
|
---|
| 132 | <primary sortas="e-AA.nanorc">~/.nanorc</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 |
|
---|
| 135 | </sect3>
|
---|
| 136 |
|
---|
| 137 | <sect3>
|
---|
| 138 | <title>Configuration Information</title>
|
---|
| 139 |
|
---|
[d78d84d] | 140 | <para>
|
---|
| 141 | Example configuration (create as a system-wide
|
---|
| 142 | <filename>/etc/nanorc</filename> or a personal
|
---|
| 143 | <filename>~/.nanorc</filename> file)
|
---|
| 144 | </para>
|
---|
[2cfa892] | 145 |
|
---|
| 146 | <screen><literal>set autoindent
|
---|
[ce34cbb] | 147 | set constantshow
|
---|
[b5951ec] | 148 | set fill 72
|
---|
| 149 | set historylog
|
---|
| 150 | set multibuffer
|
---|
| 151 | set nohelp
|
---|
[ce34cbb] | 152 | set positionlog
|
---|
[8558044] | 153 | set quickblank
|
---|
[b5951ec] | 154 | set regexp
|
---|
[2cfa892] | 155 | set suspend</literal></screen>
|
---|
| 156 |
|
---|
[d78d84d] | 157 | <para>
|
---|
[b285074] | 158 | Check the <filename>sample.nanorc</filename> file in the installed
|
---|
| 159 | documentation directory. It includes color configurations and has
|
---|
| 160 | some documentation included in the comments.
|
---|
[d78d84d] | 161 | </para>
|
---|
[2cfa892] | 162 |
|
---|
[fcabde3c] | 163 | <para>
|
---|
| 164 | Syntax highlighting is provided for several file types, in
|
---|
| 165 | <filename class="directory">/usr/share/nano/</filename> directory.
|
---|
| 166 | E.g., for shell scripts, you can insert
|
---|
| 167 | <option>include /usr/share/nano/sh.nanorc</option> in the personal or
|
---|
| 168 | global configuration file. If you wish highlighting for all supported
|
---|
[7fdc32cb] | 169 | files, use <option>include /usr/share/nano/*.nanorc</option>. This
|
---|
| 170 | include does not descend into the <filename class="directory">extra</filename>
|
---|
| 171 | directory. Move required files one level up.
|
---|
[fcabde3c] | 172 | </para>
|
---|
| 173 |
|
---|
[2cfa892] | 174 | </sect3>
|
---|
| 175 |
|
---|
| 176 | </sect2>
|
---|
| 177 |
|
---|
| 178 | <sect2 role="content">
|
---|
| 179 | <title>Contents</title>
|
---|
| 180 |
|
---|
| 181 | <segmentedlist>
|
---|
| 182 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 183 | <segtitle>Installed Libraries</segtitle>
|
---|
[0af9f257] | 184 | <segtitle>Installed Directories</segtitle>
|
---|
[2cfa892] | 185 |
|
---|
| 186 | <seglistitem>
|
---|
[d78d84d] | 187 | <seg>
|
---|
[30fe7dd] | 188 | nano and rnano (symlink)
|
---|
[d78d84d] | 189 | </seg>
|
---|
[c3c56b2] | 190 | <seg>
|
---|
| 191 | None
|
---|
| 192 | </seg>
|
---|
[d78d84d] | 193 | <seg>
|
---|
| 194 | /usr/share/nano and
|
---|
| 195 | /usr/share/doc/nano-&nano-version;
|
---|
| 196 | </seg>
|
---|
[2cfa892] | 197 | </seglistitem>
|
---|
| 198 | </segmentedlist>
|
---|
| 199 |
|
---|
| 200 | <variablelist>
|
---|
| 201 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 202 | <?dbfo list-presentation="list"?>
|
---|
| 203 | <?dbhtml list-presentation="table"?>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="nano-prog">
|
---|
| 206 | <term><command>nano</command></term>
|
---|
| 207 | <listitem>
|
---|
[d78d84d] | 208 | <para>
|
---|
| 209 | is a small, simple text editor which aims to replace
|
---|
| 210 | <application>Pico</application>, the default editor in the
|
---|
[4c24eb0a] | 211 | <application>Pine</application> package
|
---|
[d78d84d] | 212 | </para>
|
---|
[2cfa892] | 213 | <indexterm zone="nano nano-prog">
|
---|
| 214 | <primary sortas="b-nano">nano</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
| 218 |
|
---|
[0af9f257] | 219 | <varlistentry id="rnano-prog">
|
---|
| 220 | <term><command>rnano</command></term>
|
---|
| 221 | <listitem>
|
---|
[d78d84d] | 222 | <para>
|
---|
[4c24eb0a] | 223 | is a restricted mode for <command>nano</command>
|
---|
[d78d84d] | 224 | </para>
|
---|
[0af9f257] | 225 | <indexterm zone="nano rnano-prog">
|
---|
| 226 | <primary sortas="b-rnano">rnano</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
[2cfa892] | 231 | </variablelist>
|
---|
| 232 |
|
---|
| 233 | </sect2>
|
---|
[f45b1953] | 234 |
|
---|
| 235 | </sect1>
|
---|