[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 -->
|
---|
[7fdc32cb] | 8 | <!ENTITY nano-download-http "https://www.nano-editor.org/dist/v5/nano-&nano-version;.tar.xz">
|
---|
[9513623] | 9 | <!ENTITY nano-download-ftp " ">
|
---|
[ae0944a3] | 10 | <!ENTITY nano-md5sum "703d9b5317486c6f49918e27c435fbc9">
|
---|
[a5f7042] | 11 | <!ENTITY nano-size "1.3 MB">
|
---|
[ae0944a3] | 12 | <!ENTITY nano-buildsize "23 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 | <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 |
|
---|
[d78d84d] | 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>
|
---|
[2cfa892] | 38 |
|
---|
[742cddb5] | 39 | &lfs10_checked;
|
---|
[c70fd34] | 40 |
|
---|
[2cfa892] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[d78d84d] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&nano-download-http;"/>
|
---|
| 46 | </para>
|
---|
[2cfa892] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[d78d84d] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&nano-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[2cfa892] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[d78d84d] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &nano-md5sum;
|
---|
| 56 | </para>
|
---|
[2cfa892] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[d78d84d] | 59 | <para>
|
---|
| 60 | Download size: &nano-size;
|
---|
| 61 | </para>
|
---|
[2cfa892] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[d78d84d] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &nano-buildsize;
|
---|
| 66 | </para>
|
---|
[2cfa892] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[d78d84d] | 69 | <para>
|
---|
| 70 | Estimated build time: &nano-time;
|
---|
| 71 | </para>
|
---|
[2cfa892] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[3597eb6] | 75 | <para condition="html" role="usernotes">User Notes:
|
---|
[4890200] | 76 | <ulink url="&blfs-wiki;/Nano"/>
|
---|
| 77 | </para>
|
---|
[2cfa892] | 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2 role="installation">
|
---|
| 81 | <title>Installation of Nano</title>
|
---|
| 82 |
|
---|
[f716ef4] | 83 | <para>
|
---|
| 84 | Install <application>Nano</application> by running the following
|
---|
| 85 | commands:
|
---|
| 86 | </para>
|
---|
[2cfa892] | 87 |
|
---|
[fad8db2] | 88 | <screen><userinput>./configure --prefix=/usr \
|
---|
[d78d84d] | 89 | --sysconfdir=/etc \
|
---|
[30fe7dd] | 90 | --enable-utf8 \
|
---|
| 91 | --docdir=/usr/share/doc/nano-&nano-version; &&
|
---|
[2cfa892] | 92 | make</userinput></screen>
|
---|
[d7444dee] | 93 |
|
---|
[d78d84d] | 94 | <para>
|
---|
| 95 | This package does not come with a test suite.
|
---|
| 96 | </para>
|
---|
[40729db] | 97 |
|
---|
[d78d84d] | 98 | <para>
|
---|
| 99 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 100 | </para>
|
---|
[d7444dee] | 101 |
|
---|
[2cfa892] | 102 | <screen role="root"><userinput>make install &&
|
---|
[8d3f3780] | 103 | install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-&nano-version;</userinput></screen>
|
---|
[b5951ec] | 104 |
|
---|
[2cfa892] | 105 | </sect2>
|
---|
[b5951ec] | 106 |
|
---|
[c70fd34] | 107 | <sect2 role="commands">
|
---|
| 108 | <title>Command Explanations</title>
|
---|
| 109 |
|
---|
[90c160c] | 110 | <para>
|
---|
| 111 | <parameter>--enable-utf8</parameter>: This switch enables unicode support
|
---|
[4890200] | 112 | in <application>Nano</application>.
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
[c70fd34] | 115 | </sect2>
|
---|
| 116 |
|
---|
[2cfa892] | 117 | <sect2 role="configuration">
|
---|
| 118 | <title>Configuring nano</title>
|
---|
[b5951ec] | 119 |
|
---|
[2cfa892] | 120 | <sect3 id="nano-config">
|
---|
| 121 | <title>Config Files</title>
|
---|
[b5951ec] | 122 |
|
---|
[f716ef4] | 123 | <para>
|
---|
| 124 | <filename>/etc/nanorc</filename> and
|
---|
| 125 | <filename>~/.nanorc</filename>
|
---|
| 126 | </para>
|
---|
[b5951ec] | 127 |
|
---|
[2cfa892] | 128 | <indexterm zone="nano nano-config">
|
---|
[d78d84d] | 129 | <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
|
---|
[2cfa892] | 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 |
|
---|
[d78d84d] | 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>
|
---|
[2cfa892] | 146 |
|
---|
| 147 | <screen><literal>set autoindent
|
---|
[ce34cbb] | 148 | set constantshow
|
---|
[b5951ec] | 149 | set fill 72
|
---|
| 150 | set historylog
|
---|
| 151 | set multibuffer
|
---|
| 152 | set nohelp
|
---|
[ce34cbb] | 153 | set positionlog
|
---|
| 154 | set quickblank
|
---|
[b5951ec] | 155 | set regexp
|
---|
[2cfa892] | 156 | set suspend</literal></screen>
|
---|
| 157 |
|
---|
[d78d84d] | 158 | <para>
|
---|
[b285074] | 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.
|
---|
[d78d84d] | 162 | </para>
|
---|
[2cfa892] | 163 |
|
---|
[fcabde3c] | 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
|
---|
[7fdc32cb] | 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.
|
---|
[fcabde3c] | 173 | </para>
|
---|
| 174 |
|
---|
[2cfa892] | 175 | </sect3>
|
---|
| 176 |
|
---|
| 177 | </sect2>
|
---|
| 178 |
|
---|
| 179 | <sect2 role="content">
|
---|
| 180 | <title>Contents</title>
|
---|
| 181 |
|
---|
| 182 | <segmentedlist>
|
---|
| 183 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 184 | <segtitle>Installed Libraries</segtitle>
|
---|
[0af9f257] | 185 | <segtitle>Installed Directories</segtitle>
|
---|
[2cfa892] | 186 |
|
---|
| 187 | <seglistitem>
|
---|
[d78d84d] | 188 | <seg>
|
---|
[30fe7dd] | 189 | nano and rnano (symlink)
|
---|
[d78d84d] | 190 | </seg>
|
---|
[c3c56b2] | 191 | <seg>
|
---|
| 192 | None
|
---|
| 193 | </seg>
|
---|
[d78d84d] | 194 | <seg>
|
---|
| 195 | /usr/share/nano and
|
---|
| 196 | /usr/share/doc/nano-&nano-version;
|
---|
| 197 | </seg>
|
---|
[2cfa892] | 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>
|
---|
[d78d84d] | 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>
|
---|
[2cfa892] | 214 | <indexterm zone="nano nano-prog">
|
---|
| 215 | <primary sortas="b-nano">nano</primary>
|
---|
| 216 | </indexterm>
|
---|
| 217 | </listitem>
|
---|
| 218 | </varlistentry>
|
---|
| 219 |
|
---|
[0af9f257] | 220 | <varlistentry id="rnano-prog">
|
---|
| 221 | <term><command>rnano</command></term>
|
---|
| 222 | <listitem>
|
---|
[d78d84d] | 223 | <para>
|
---|
| 224 | is a restricted mode for <command>nano</command>.
|
---|
| 225 | </para>
|
---|
[0af9f257] | 226 | <indexterm zone="nano rnano-prog">
|
---|
| 227 | <primary sortas="b-rnano">rnano</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
[2cfa892] | 232 | </variablelist>
|
---|
| 233 |
|
---|
| 234 | </sect2>
|
---|
[f45b1953] | 235 |
|
---|
| 236 | </sect1>
|
---|