[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 |
|
---|
[c70fd34] | 7 | <!ENTITY nano-download-http "http://www.nano-editor.org/dist/v2.1/nano-&nano-version;.tar.gz">
|
---|
[38aa038] | 8 | <!ENTITY nano-download-ftp "ftp://ftp.gnu.org/gnu/nano/nano-&nano-version;.tar.gz">
|
---|
[c70fd34] | 9 | <!ENTITY nano-md5sum "f55bd9efeccf9da98950b54a4b0d872e">
|
---|
[a90bc8c] | 10 | <!ENTITY nano-size "1.4 MB">
|
---|
[c70fd34] | 11 | <!ENTITY nano-buildsize "9 MB">
|
---|
| 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 |
|
---|
[3aa07d1] | 32 | <para>The <application>nano</application> package contains a small,
|
---|
| 33 | simple text editor which aims to replace <application>Pico</application>,
|
---|
[2cfa892] | 34 | the default editor in the <application>Pine</application> package.</para>
|
---|
| 35 |
|
---|
[c70fd34] | 36 | &lfs65_checked;
|
---|
| 37 |
|
---|
[2cfa892] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&nano-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&nano-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &nano-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &nano-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &nano-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &nano-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">Nano Dependencies</bridgehead>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e19ad480] | 63 | <para role="optional"><xref linkend="slang"/></para>
|
---|
[2cfa892] | 64 |
|
---|
[3597eb6] | 65 | <para condition="html" role="usernotes">User Notes:
|
---|
[6c42d4e] | 66 | <ulink url="&blfs-wiki;/Nano"/></para>
|
---|
[3597eb6] | 67 |
|
---|
[2cfa892] | 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2 role="installation">
|
---|
| 71 | <title>Installation of Nano</title>
|
---|
| 72 |
|
---|
[3aa07d1] | 73 | <para>Install <application>nano</application> by running the following
|
---|
[2cfa892] | 74 | commands:</para>
|
---|
| 75 |
|
---|
[13679edb] | 76 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc/nano \
|
---|
[b5951ec] | 77 | --enable-color --enable-multibuffer --enable-nanorc &&
|
---|
[2cfa892] | 78 | make</userinput></screen>
|
---|
[d7444dee] | 79 |
|
---|
[40729db] | 80 | <para>This package does not come with a test suite.</para>
|
---|
| 81 |
|
---|
[2cfa892] | 82 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[d7444dee] | 83 |
|
---|
[2cfa892] | 84 | <screen role="root"><userinput>make install &&
|
---|
[0af9f257] | 85 | install -v -m644 -D doc/nanorc.sample /etc/nano/nanorc.sample &&
|
---|
[13679edb] | 86 | install -v -m755 -d /usr/share/doc/nano-&nano-version; &&
|
---|
[0af9f257] | 87 | install -v -m644 doc/{,man/,texinfo/}*.html /usr/share/doc/nano-&nano-version;</userinput></screen>
|
---|
[b5951ec] | 88 |
|
---|
[2cfa892] | 89 | </sect2>
|
---|
[b5951ec] | 90 |
|
---|
[c70fd34] | 91 | <sect2 role="commands">
|
---|
| 92 | <title>Command Explanations</title>
|
---|
| 93 |
|
---|
[79f8c294] | 94 | <para><option>--with-slang=/usr/lib</option>: This forces
|
---|
| 95 | <application>Nano</application> to detect <application>S-Lang</application>.
|
---|
| 96 | Use this if installed.</para>
|
---|
[c70fd34] | 97 |
|
---|
| 98 | </sect2>
|
---|
| 99 |
|
---|
[2cfa892] | 100 | <sect2 role="configuration">
|
---|
| 101 | <title>Configuring nano</title>
|
---|
[b5951ec] | 102 |
|
---|
[2cfa892] | 103 | <sect3 id="nano-config">
|
---|
| 104 | <title>Config Files</title>
|
---|
[b5951ec] | 105 |
|
---|
[13679edb] | 106 | <para><filename>/etc/nano/nanorc</filename> and
|
---|
[2cfa892] | 107 | <filename>~/.nanorc</filename></para>
|
---|
[b5951ec] | 108 |
|
---|
[2cfa892] | 109 | <indexterm zone="nano nano-config">
|
---|
[13679edb] | 110 | <primary sortas="e-etc-nano-nanorc">/etc/nano/nanorc</primary>
|
---|
[2cfa892] | 111 | </indexterm>
|
---|
| 112 |
|
---|
| 113 | <indexterm zone="nano nano-config">
|
---|
| 114 | <primary sortas="e-AA.nanorc">~/.nanorc</primary>
|
---|
| 115 | </indexterm>
|
---|
| 116 |
|
---|
| 117 | </sect3>
|
---|
| 118 |
|
---|
| 119 | <sect3>
|
---|
| 120 | <title>Configuration Information</title>
|
---|
| 121 |
|
---|
[13679edb] | 122 | <para>Example configuration (create as a system-wide
|
---|
| 123 | <filename>/etc/nano/nanorc</filename> or a personal
|
---|
| 124 | <filename>~/.nanorc</filename> file)</para>
|
---|
[2cfa892] | 125 |
|
---|
| 126 | <screen><literal>set autoindent
|
---|
[b5951ec] | 127 | set const
|
---|
| 128 | set fill 72
|
---|
| 129 | set historylog
|
---|
| 130 | set multibuffer
|
---|
| 131 | set nohelp
|
---|
| 132 | set regexp
|
---|
| 133 | set smooth
|
---|
[2cfa892] | 134 | set suspend</literal></screen>
|
---|
| 135 |
|
---|
[13679edb] | 136 | <para>Another example is the <filename>nanorc.sample</filename> file
|
---|
| 137 | in the <filename class="directory">/etc/nano</filename> directory.
|
---|
| 138 | It includes color configurations and has some documentation included
|
---|
| 139 | in the comments.</para>
|
---|
[2cfa892] | 140 |
|
---|
| 141 | </sect3>
|
---|
| 142 |
|
---|
| 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | <sect2 role="content">
|
---|
| 146 | <title>Contents</title>
|
---|
| 147 |
|
---|
| 148 | <segmentedlist>
|
---|
| 149 | <segtitle>Installed Programs</segtitle>
|
---|
| 150 | <segtitle>Installed Libraries</segtitle>
|
---|
[0af9f257] | 151 | <segtitle>Installed Directories</segtitle>
|
---|
[2cfa892] | 152 |
|
---|
| 153 | <seglistitem>
|
---|
[0af9f257] | 154 | <seg>nano and rnano</seg>
|
---|
[2cfa892] | 155 | <seg>None</seg>
|
---|
[1febec8] | 156 | <seg>/etc/nano, /usr/share/nano and
|
---|
| 157 | /usr/share/doc/nano-&nano-version;</seg>
|
---|
[2cfa892] | 158 | </seglistitem>
|
---|
| 159 | </segmentedlist>
|
---|
| 160 |
|
---|
| 161 | <variablelist>
|
---|
| 162 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 163 | <?dbfo list-presentation="list"?>
|
---|
| 164 | <?dbhtml list-presentation="table"?>
|
---|
| 165 |
|
---|
| 166 | <varlistentry id="nano-prog">
|
---|
| 167 | <term><command>nano</command></term>
|
---|
| 168 | <listitem>
|
---|
[3aa07d1] | 169 | <para>is a small, simple text editor which aims to replace
|
---|
[2cfa892] | 170 | <application>Pico</application>, the default editor in the
|
---|
| 171 | <application>Pine</application> package.</para>
|
---|
| 172 | <indexterm zone="nano nano-prog">
|
---|
| 173 | <primary sortas="b-nano">nano</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
[0af9f257] | 178 | <varlistentry id="rnano-prog">
|
---|
| 179 | <term><command>rnano</command></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>is a restricted mode for <command>nano</command>.</para>
|
---|
| 182 | <indexterm zone="nano rnano-prog">
|
---|
| 183 | <primary sortas="b-rnano">rnano</primary>
|
---|
| 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
[2cfa892] | 188 | </variablelist>
|
---|
| 189 |
|
---|
| 190 | </sect2>
|
---|
[f45b1953] | 191 |
|
---|
| 192 | </sect1>
|
---|