[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 -->
|
---|
[c0a8c0dc] | 8 | <!ENTITY nano-download-http "https://www.nano-editor.org/dist/v2.8/nano-&nano-version;.tar.xz">
|
---|
[9513623] | 9 | <!ENTITY nano-download-ftp " ">
|
---|
[c0a8c0dc] | 10 | <!ENTITY nano-md5sum "6db558d528bfb50aba7f7504a1e61b16">
|
---|
| 11 | <!ENTITY nano-size "1.4 MB">
|
---|
| 12 | <!ENTITY nano-buildsize "16 MB">
|
---|
| 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 |
|
---|
[995a461b] | 39 | &lfs80_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 |
|
---|
| 75 | <bridgehead renderas="sect3">Nano Dependencies</bridgehead>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[d78d84d] | 78 | <para role="optional">
|
---|
| 79 | <xref linkend="slang"/>
|
---|
| 80 | </para>
|
---|
[2cfa892] | 81 |
|
---|
[3597eb6] | 82 | <para condition="html" role="usernotes">User Notes:
|
---|
[4890200] | 83 | <ulink url="&blfs-wiki;/Nano"/>
|
---|
| 84 | </para>
|
---|
[2cfa892] | 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of Nano</title>
|
---|
| 89 |
|
---|
[d78d84d] | 90 | <para>Install <application>Nano</application> by running the following
|
---|
[2cfa892] | 91 | commands:</para>
|
---|
| 92 |
|
---|
[fad8db2] | 93 | <screen><userinput>./configure --prefix=/usr \
|
---|
[d78d84d] | 94 | --sysconfdir=/etc \
|
---|
[30fe7dd] | 95 | --enable-utf8 \
|
---|
| 96 | --docdir=/usr/share/doc/nano-&nano-version; &&
|
---|
[2cfa892] | 97 | make</userinput></screen>
|
---|
[d7444dee] | 98 |
|
---|
[d78d84d] | 99 | <para>
|
---|
| 100 | This package does not come with a test suite.
|
---|
| 101 | </para>
|
---|
[40729db] | 102 |
|
---|
[d78d84d] | 103 | <para>
|
---|
| 104 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 105 | </para>
|
---|
[d7444dee] | 106 |
|
---|
[2cfa892] | 107 | <screen role="root"><userinput>make install &&
|
---|
[4b65cdf] | 108 | install -v -m644 doc/nano.html /usr/share/doc/nano-&nano-version;</userinput></screen>
|
---|
[b5951ec] | 109 |
|
---|
[2cfa892] | 110 | </sect2>
|
---|
[b5951ec] | 111 |
|
---|
[c70fd34] | 112 | <sect2 role="commands">
|
---|
| 113 | <title>Command Explanations</title>
|
---|
| 114 |
|
---|
[90c160c] | 115 | <para>
|
---|
| 116 | <parameter>--enable-utf8</parameter>: This switch enables unicode support
|
---|
[4890200] | 117 | in <application>Nano</application>.
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
[d78d84d] | 120 | <para>
|
---|
[90c160c] | 121 | <option>--with-slang</option>: This forces <application>Nano</application>
|
---|
| 122 | to use <application>S-Lang</application>.
|
---|
[d78d84d] | 123 | Use this if installed.
|
---|
| 124 | </para>
|
---|
[c70fd34] | 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
[2cfa892] | 128 | <sect2 role="configuration">
|
---|
| 129 | <title>Configuring nano</title>
|
---|
[b5951ec] | 130 |
|
---|
[2cfa892] | 131 | <sect3 id="nano-config">
|
---|
| 132 | <title>Config Files</title>
|
---|
[b5951ec] | 133 |
|
---|
[d78d84d] | 134 | <para><filename>/etc/nanorc</filename> and
|
---|
[2cfa892] | 135 | <filename>~/.nanorc</filename></para>
|
---|
[b5951ec] | 136 |
|
---|
[2cfa892] | 137 | <indexterm zone="nano nano-config">
|
---|
[d78d84d] | 138 | <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
|
---|
[2cfa892] | 139 | </indexterm>
|
---|
| 140 |
|
---|
| 141 | <indexterm zone="nano nano-config">
|
---|
| 142 | <primary sortas="e-AA.nanorc">~/.nanorc</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 |
|
---|
| 145 | </sect3>
|
---|
| 146 |
|
---|
| 147 | <sect3>
|
---|
| 148 | <title>Configuration Information</title>
|
---|
| 149 |
|
---|
[d78d84d] | 150 | <para>
|
---|
| 151 | Example configuration (create as a system-wide
|
---|
| 152 | <filename>/etc/nanorc</filename> or a personal
|
---|
| 153 | <filename>~/.nanorc</filename> file)
|
---|
| 154 | </para>
|
---|
[2cfa892] | 155 |
|
---|
| 156 | <screen><literal>set autoindent
|
---|
[b5951ec] | 157 | set const
|
---|
| 158 | set fill 72
|
---|
| 159 | set historylog
|
---|
| 160 | set multibuffer
|
---|
| 161 | set nohelp
|
---|
| 162 | set regexp
|
---|
| 163 | set smooth
|
---|
[2cfa892] | 164 | set suspend</literal></screen>
|
---|
| 165 |
|
---|
[d78d84d] | 166 | <para>
|
---|
| 167 | Another example is the <filename>nanorc.sample</filename> file
|
---|
| 168 | in the <filename class="directory">/etc</filename> directory.
|
---|
| 169 | It includes color configurations and has some documentation included
|
---|
| 170 | in the comments.
|
---|
| 171 | </para>
|
---|
[2cfa892] | 172 |
|
---|
[fcabde3c] | 173 | <para>
|
---|
| 174 | Syntax highlighting is provided for several file types, in
|
---|
| 175 | <filename class="directory">/usr/share/nano/</filename> directory.
|
---|
| 176 | E.g., for shell scripts, you can insert
|
---|
| 177 | <option>include /usr/share/nano/sh.nanorc</option> in the personal or
|
---|
| 178 | global configuration file. If you wish highlighting for all supported
|
---|
| 179 | files, use <option>include /usr/share/nano/*.nanorc</option>.
|
---|
| 180 | </para>
|
---|
| 181 |
|
---|
[2cfa892] | 182 | </sect3>
|
---|
| 183 |
|
---|
| 184 | </sect2>
|
---|
| 185 |
|
---|
| 186 | <sect2 role="content">
|
---|
| 187 | <title>Contents</title>
|
---|
| 188 |
|
---|
| 189 | <segmentedlist>
|
---|
| 190 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 191 | <segtitle>Installed Libraries</segtitle>
|
---|
[0af9f257] | 192 | <segtitle>Installed Directories</segtitle>
|
---|
[2cfa892] | 193 |
|
---|
| 194 | <seglistitem>
|
---|
[d78d84d] | 195 | <seg>
|
---|
[30fe7dd] | 196 | nano and rnano (symlink)
|
---|
[d78d84d] | 197 | </seg>
|
---|
[c3c56b2] | 198 | <seg>
|
---|
| 199 | None
|
---|
| 200 | </seg>
|
---|
[d78d84d] | 201 | <seg>
|
---|
| 202 | /usr/share/nano and
|
---|
| 203 | /usr/share/doc/nano-&nano-version;
|
---|
| 204 | </seg>
|
---|
[2cfa892] | 205 | </seglistitem>
|
---|
| 206 | </segmentedlist>
|
---|
| 207 |
|
---|
| 208 | <variablelist>
|
---|
| 209 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 210 | <?dbfo list-presentation="list"?>
|
---|
| 211 | <?dbhtml list-presentation="table"?>
|
---|
| 212 |
|
---|
| 213 | <varlistentry id="nano-prog">
|
---|
| 214 | <term><command>nano</command></term>
|
---|
| 215 | <listitem>
|
---|
[d78d84d] | 216 | <para>
|
---|
| 217 | is a small, simple text editor which aims to replace
|
---|
| 218 | <application>Pico</application>, the default editor in the
|
---|
| 219 | <application>Pine</application> package.
|
---|
| 220 | </para>
|
---|
[2cfa892] | 221 | <indexterm zone="nano nano-prog">
|
---|
| 222 | <primary sortas="b-nano">nano</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
| 226 |
|
---|
[0af9f257] | 227 | <varlistentry id="rnano-prog">
|
---|
| 228 | <term><command>rnano</command></term>
|
---|
| 229 | <listitem>
|
---|
[d78d84d] | 230 | <para>
|
---|
| 231 | is a restricted mode for <command>nano</command>.
|
---|
| 232 | </para>
|
---|
[0af9f257] | 233 | <indexterm zone="nano rnano-prog">
|
---|
| 234 | <primary sortas="b-rnano">rnano</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
| 238 |
|
---|
[2cfa892] | 239 | </variablelist>
|
---|
| 240 |
|
---|
| 241 | </sect2>
|
---|
[f45b1953] | 242 |
|
---|
| 243 | </sect1>
|
---|