[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 -->
|
---|
[a49d043c] | 8 | <!ENTITY nano-download-http "https://www.nano-editor.org/dist/v4/nano-&nano-version;.tar.xz">
|
---|
[9513623] | 9 | <!ENTITY nano-download-ftp " ">
|
---|
[3a701ef] | 10 | <!ENTITY nano-md5sum "2de3e8a60ecf09649e316e89be2aac65">
|
---|
| 11 | <!ENTITY nano-size "1.5 MB">
|
---|
| 12 | <!ENTITY nano-buildsize "19 MB">
|
---|
[0e7f80e4] | 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 |
|
---|
[be2215e] | 39 | &lfs84_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 |
|
---|
[d78d84d] | 83 | <para>Install <application>Nano</application> by running the following
|
---|
[2cfa892] | 84 | commands:</para>
|
---|
| 85 |
|
---|
[fad8db2] | 86 | <screen><userinput>./configure --prefix=/usr \
|
---|
[d78d84d] | 87 | --sysconfdir=/etc \
|
---|
[30fe7dd] | 88 | --enable-utf8 \
|
---|
| 89 | --docdir=/usr/share/doc/nano-&nano-version; &&
|
---|
[2cfa892] | 90 | make</userinput></screen>
|
---|
[d7444dee] | 91 |
|
---|
[d78d84d] | 92 | <para>
|
---|
| 93 | This package does not come with a test suite.
|
---|
| 94 | </para>
|
---|
[40729db] | 95 |
|
---|
[d78d84d] | 96 | <para>
|
---|
| 97 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 98 | </para>
|
---|
[d7444dee] | 99 |
|
---|
[2cfa892] | 100 | <screen role="root"><userinput>make install &&
|
---|
[8d3f3780] | 101 | install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-&nano-version;</userinput></screen>
|
---|
[b5951ec] | 102 |
|
---|
[2cfa892] | 103 | </sect2>
|
---|
[b5951ec] | 104 |
|
---|
[c70fd34] | 105 | <sect2 role="commands">
|
---|
| 106 | <title>Command Explanations</title>
|
---|
| 107 |
|
---|
[90c160c] | 108 | <para>
|
---|
| 109 | <parameter>--enable-utf8</parameter>: This switch enables unicode support
|
---|
[4890200] | 110 | in <application>Nano</application>.
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
[c70fd34] | 113 | </sect2>
|
---|
| 114 |
|
---|
[2cfa892] | 115 | <sect2 role="configuration">
|
---|
| 116 | <title>Configuring nano</title>
|
---|
[b5951ec] | 117 |
|
---|
[2cfa892] | 118 | <sect3 id="nano-config">
|
---|
| 119 | <title>Config Files</title>
|
---|
[b5951ec] | 120 |
|
---|
[d78d84d] | 121 | <para><filename>/etc/nanorc</filename> and
|
---|
[2cfa892] | 122 | <filename>~/.nanorc</filename></para>
|
---|
[b5951ec] | 123 |
|
---|
[2cfa892] | 124 | <indexterm zone="nano nano-config">
|
---|
[d78d84d] | 125 | <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
|
---|
[2cfa892] | 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 |
|
---|
[d78d84d] | 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>
|
---|
[2cfa892] | 142 |
|
---|
| 143 | <screen><literal>set autoindent
|
---|
[ce34cbb] | 144 | set constantshow
|
---|
[b5951ec] | 145 | set fill 72
|
---|
| 146 | set historylog
|
---|
| 147 | set multibuffer
|
---|
| 148 | set nohelp
|
---|
[ce34cbb] | 149 | set nowrap
|
---|
| 150 | set positionlog
|
---|
| 151 | set quickblank
|
---|
[b5951ec] | 152 | set regexp
|
---|
| 153 | set smooth
|
---|
[2cfa892] | 154 | set suspend</literal></screen>
|
---|
| 155 |
|
---|
[d78d84d] | 156 | <para>
|
---|
[b285074] | 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.
|
---|
[d78d84d] | 160 | </para>
|
---|
[2cfa892] | 161 |
|
---|
[fcabde3c] | 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 |
|
---|
[2cfa892] | 171 | </sect3>
|
---|
| 172 |
|
---|
| 173 | </sect2>
|
---|
| 174 |
|
---|
| 175 | <sect2 role="content">
|
---|
| 176 | <title>Contents</title>
|
---|
| 177 |
|
---|
| 178 | <segmentedlist>
|
---|
| 179 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 180 | <segtitle>Installed Libraries</segtitle>
|
---|
[0af9f257] | 181 | <segtitle>Installed Directories</segtitle>
|
---|
[2cfa892] | 182 |
|
---|
| 183 | <seglistitem>
|
---|
[d78d84d] | 184 | <seg>
|
---|
[30fe7dd] | 185 | nano and rnano (symlink)
|
---|
[d78d84d] | 186 | </seg>
|
---|
[c3c56b2] | 187 | <seg>
|
---|
| 188 | None
|
---|
| 189 | </seg>
|
---|
[d78d84d] | 190 | <seg>
|
---|
| 191 | /usr/share/nano and
|
---|
| 192 | /usr/share/doc/nano-&nano-version;
|
---|
| 193 | </seg>
|
---|
[2cfa892] | 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>
|
---|
[d78d84d] | 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>
|
---|
[2cfa892] | 210 | <indexterm zone="nano nano-prog">
|
---|
| 211 | <primary sortas="b-nano">nano</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
[0af9f257] | 216 | <varlistentry id="rnano-prog">
|
---|
| 217 | <term><command>rnano</command></term>
|
---|
| 218 | <listitem>
|
---|
[d78d84d] | 219 | <para>
|
---|
| 220 | is a restricted mode for <command>nano</command>.
|
---|
| 221 | </para>
|
---|
[0af9f257] | 222 | <indexterm zone="nano rnano-prog">
|
---|
| 223 | <primary sortas="b-rnano">rnano</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
[2cfa892] | 228 | </variablelist>
|
---|
| 229 |
|
---|
| 230 | </sect2>
|
---|
[f45b1953] | 231 |
|
---|
| 232 | </sect1>
|
---|