[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 |
|
---|
[d78d84d] | 7 | <!ENTITY nano-download-http "http://ftp.gnu.org/gnu/nano/nano-&nano-version;.tar.gz">
|
---|
[38aa038] | 8 | <!ENTITY nano-download-ftp "ftp://ftp.gnu.org/gnu/nano/nano-&nano-version;.tar.gz">
|
---|
[2fcf2384] | 9 | <!ENTITY nano-md5sum "1c612b478f976abf8ef926480c7a3684">
|
---|
| 10 | <!ENTITY nano-size "1.9 MB">
|
---|
| 11 | <!ENTITY nano-buildsize "13 MB">
|
---|
[40a6fadf] | 12 | <!ENTITY nano-time "less than 0.1 SBU">
|
---|
[b5951ec] | 13 | ]>
|
---|
| 14 |
|
---|
[fd680fb] | 15 | <sect1 id="nano" xreflabel="nano-&nano-version;">
|
---|
[2cfa892] | 16 | <?dbhtml filename="nano.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 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 |
|
---|
[56d38b8] | 38 | &lfs77_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 |
|
---|
| 74 | <bridgehead renderas="sect3">Nano Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[d78d84d] | 77 | <para role="optional">
|
---|
| 78 | <xref linkend="slang"/>
|
---|
| 79 | </para>
|
---|
[2cfa892] | 80 |
|
---|
[3597eb6] | 81 | <para condition="html" role="usernotes">User Notes:
|
---|
[4890200] | 82 | <ulink url="&blfs-wiki;/Nano"/>
|
---|
| 83 | </para>
|
---|
[2cfa892] | 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 role="installation">
|
---|
| 87 | <title>Installation of Nano</title>
|
---|
| 88 |
|
---|
[d78d84d] | 89 | <para>Install <application>Nano</application> by running the following
|
---|
[2cfa892] | 90 | commands:</para>
|
---|
| 91 |
|
---|
[fad8db2] | 92 | <screen><userinput>./configure --prefix=/usr \
|
---|
[d78d84d] | 93 | --sysconfdir=/etc \
|
---|
[30fe7dd] | 94 | --enable-utf8 \
|
---|
| 95 | --docdir=/usr/share/doc/nano-&nano-version; &&
|
---|
[2cfa892] | 96 | make</userinput></screen>
|
---|
[d7444dee] | 97 |
|
---|
[d78d84d] | 98 | <para>
|
---|
| 99 | This package does not come with a test suite.
|
---|
| 100 | </para>
|
---|
[40729db] | 101 |
|
---|
[d78d84d] | 102 | <para>
|
---|
| 103 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 104 | </para>
|
---|
[d7444dee] | 105 |
|
---|
[2cfa892] | 106 | <screen role="root"><userinput>make install &&
|
---|
[d78d84d] | 107 | install -v -m644 doc/nanorc.sample /etc &&
|
---|
[30fe7dd] | 108 | install -v -m644 doc/texinfo/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 |
|
---|
| 173 | </sect3>
|
---|
| 174 |
|
---|
| 175 | </sect2>
|
---|
| 176 |
|
---|
| 177 | <sect2 role="content">
|
---|
| 178 | <title>Contents</title>
|
---|
| 179 |
|
---|
| 180 | <segmentedlist>
|
---|
| 181 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 182 | <segtitle>Installed Libraries</segtitle>
|
---|
[0af9f257] | 183 | <segtitle>Installed Directories</segtitle>
|
---|
[2cfa892] | 184 |
|
---|
| 185 | <seglistitem>
|
---|
[d78d84d] | 186 | <seg>
|
---|
[30fe7dd] | 187 | nano and rnano (symlink)
|
---|
[d78d84d] | 188 | </seg>
|
---|
[c3c56b2] | 189 | <seg>
|
---|
| 190 | None
|
---|
| 191 | </seg>
|
---|
[d78d84d] | 192 | <seg>
|
---|
| 193 | /usr/share/nano and
|
---|
| 194 | /usr/share/doc/nano-&nano-version;
|
---|
| 195 | </seg>
|
---|
[2cfa892] | 196 | </seglistitem>
|
---|
| 197 | </segmentedlist>
|
---|
| 198 |
|
---|
| 199 | <variablelist>
|
---|
| 200 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 201 | <?dbfo list-presentation="list"?>
|
---|
| 202 | <?dbhtml list-presentation="table"?>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="nano-prog">
|
---|
| 205 | <term><command>nano</command></term>
|
---|
| 206 | <listitem>
|
---|
[d78d84d] | 207 | <para>
|
---|
| 208 | is a small, simple text editor which aims to replace
|
---|
| 209 | <application>Pico</application>, the default editor in the
|
---|
| 210 | <application>Pine</application> package.
|
---|
| 211 | </para>
|
---|
[2cfa892] | 212 | <indexterm zone="nano nano-prog">
|
---|
| 213 | <primary sortas="b-nano">nano</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
[0af9f257] | 218 | <varlistentry id="rnano-prog">
|
---|
| 219 | <term><command>rnano</command></term>
|
---|
| 220 | <listitem>
|
---|
[d78d84d] | 221 | <para>
|
---|
| 222 | is a restricted mode for <command>nano</command>.
|
---|
| 223 | </para>
|
---|
[0af9f257] | 224 | <indexterm zone="nano rnano-prog">
|
---|
| 225 | <primary sortas="b-rnano">rnano</primary>
|
---|
| 226 | </indexterm>
|
---|
| 227 | </listitem>
|
---|
| 228 | </varlistentry>
|
---|
| 229 |
|
---|
[2cfa892] | 230 | </variablelist>
|
---|
| 231 |
|
---|
| 232 | </sect2>
|
---|
[f45b1953] | 233 |
|
---|
| 234 | </sect1>
|
---|