[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 " ">
|
---|
[ce34cbb] | 10 | <!ENTITY nano-md5sum "66e3ca6b718d3cac7ba6c4410a198aab">
|
---|
[c0a8c0dc] | 11 | <!ENTITY nano-size "1.4 MB">
|
---|
| 12 | <!ENTITY nano-buildsize "16 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 |
|
---|
[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 &&
|
---|
[8d3f3780] | 108 | install -v -m644 doc/{nano.html,sample.nanorc} /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
|
---|
[ce34cbb] | 157 | set constantshow
|
---|
[b5951ec] | 158 | set fill 72
|
---|
| 159 | set historylog
|
---|
| 160 | set multibuffer
|
---|
| 161 | set nohelp
|
---|
[ce34cbb] | 162 | set nowrap
|
---|
| 163 | set positionlog
|
---|
| 164 | set quickblank
|
---|
[b5951ec] | 165 | set regexp
|
---|
| 166 | set smooth
|
---|
[2cfa892] | 167 | set suspend</literal></screen>
|
---|
| 168 |
|
---|
[d78d84d] | 169 | <para>
|
---|
| 170 | Another example is the <filename>nanorc.sample</filename> file
|
---|
[ce34cbb] | 171 | in the installed documentation directory.
|
---|
[d78d84d] | 172 | It includes color configurations and has some documentation included
|
---|
| 173 | in the comments.
|
---|
| 174 | </para>
|
---|
[2cfa892] | 175 |
|
---|
[fcabde3c] | 176 | <para>
|
---|
| 177 | Syntax highlighting is provided for several file types, in
|
---|
| 178 | <filename class="directory">/usr/share/nano/</filename> directory.
|
---|
| 179 | E.g., for shell scripts, you can insert
|
---|
| 180 | <option>include /usr/share/nano/sh.nanorc</option> in the personal or
|
---|
| 181 | global configuration file. If you wish highlighting for all supported
|
---|
| 182 | files, use <option>include /usr/share/nano/*.nanorc</option>.
|
---|
| 183 | </para>
|
---|
| 184 |
|
---|
[2cfa892] | 185 | </sect3>
|
---|
| 186 |
|
---|
| 187 | </sect2>
|
---|
| 188 |
|
---|
| 189 | <sect2 role="content">
|
---|
| 190 | <title>Contents</title>
|
---|
| 191 |
|
---|
| 192 | <segmentedlist>
|
---|
| 193 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 194 | <segtitle>Installed Libraries</segtitle>
|
---|
[0af9f257] | 195 | <segtitle>Installed Directories</segtitle>
|
---|
[2cfa892] | 196 |
|
---|
| 197 | <seglistitem>
|
---|
[d78d84d] | 198 | <seg>
|
---|
[30fe7dd] | 199 | nano and rnano (symlink)
|
---|
[d78d84d] | 200 | </seg>
|
---|
[c3c56b2] | 201 | <seg>
|
---|
| 202 | None
|
---|
| 203 | </seg>
|
---|
[d78d84d] | 204 | <seg>
|
---|
| 205 | /usr/share/nano and
|
---|
| 206 | /usr/share/doc/nano-&nano-version;
|
---|
| 207 | </seg>
|
---|
[2cfa892] | 208 | </seglistitem>
|
---|
| 209 | </segmentedlist>
|
---|
| 210 |
|
---|
| 211 | <variablelist>
|
---|
| 212 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 213 | <?dbfo list-presentation="list"?>
|
---|
| 214 | <?dbhtml list-presentation="table"?>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="nano-prog">
|
---|
| 217 | <term><command>nano</command></term>
|
---|
| 218 | <listitem>
|
---|
[d78d84d] | 219 | <para>
|
---|
| 220 | is a small, simple text editor which aims to replace
|
---|
| 221 | <application>Pico</application>, the default editor in the
|
---|
| 222 | <application>Pine</application> package.
|
---|
| 223 | </para>
|
---|
[2cfa892] | 224 | <indexterm zone="nano nano-prog">
|
---|
| 225 | <primary sortas="b-nano">nano</primary>
|
---|
| 226 | </indexterm>
|
---|
| 227 | </listitem>
|
---|
| 228 | </varlistentry>
|
---|
| 229 |
|
---|
[0af9f257] | 230 | <varlistentry id="rnano-prog">
|
---|
| 231 | <term><command>rnano</command></term>
|
---|
| 232 | <listitem>
|
---|
[d78d84d] | 233 | <para>
|
---|
| 234 | is a restricted mode for <command>nano</command>.
|
---|
| 235 | </para>
|
---|
[0af9f257] | 236 | <indexterm zone="nano rnano-prog">
|
---|
| 237 | <primary sortas="b-rnano">rnano</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 |
|
---|
[2cfa892] | 242 | </variablelist>
|
---|
| 243 |
|
---|
| 244 | </sect2>
|
---|
[f45b1953] | 245 |
|
---|
| 246 | </sect1>
|
---|