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