[b5951ec] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[b5951ec] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY nano-download-http "http://www.nano-editor.org/dist/v1.2/nano-&nano-version;.tar.gz">
|
---|
| 8 | <!ENTITY nano-download-ftp "ftp://ftp.uni-koeln.de/editor/nano-&nano-version;.tar.gz">
|
---|
[40729db] | 9 | <!ENTITY nano-md5sum "f2b3efbf1cf356d736740d531b6b22c4">
|
---|
| 10 | <!ENTITY nano-size "891 KB">
|
---|
| 11 | <!ENTITY nano-buildsize "5.1 MB">
|
---|
| 12 | <!ENTITY nano-time "0.1 SBU">
|
---|
[b5951ec] | 13 | ]>
|
---|
| 14 |
|
---|
[e19ad480] | 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>
|
---|
[e19ad480] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">nano-&nano-version;.tar</keyword>
|
---|
[9084c2eb] | 23 | <keyword role="ftpdir">nano</keyword>
|
---|
[e19ad480] | 24 | </keywordset>
|
---|
[2cfa892] | 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>Nano-&nano-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="nano">
|
---|
| 30 | <primary sortas="a-Nano">Nano</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to Nano</title>
|
---|
| 35 |
|
---|
[3aa07d1] | 36 | <para>The <application>nano</application> package contains a small,
|
---|
| 37 | simple text editor which aims to replace <application>Pico</application>,
|
---|
[2cfa892] | 38 | the default editor in the <application>Pine</application> package.</para>
|
---|
| 39 |
|
---|
[f6b83352] | 40 | <caution>
|
---|
| 41 | <para>The <application>Nano</application> package has some issues when
|
---|
| 42 | used in a UTF-8 based locale. A development version is available
|
---|
| 43 | which addresses these issues. Please see the
|
---|
| 44 | <xref linkend="locale-nano"/> section of the <xref
|
---|
| 45 | linkend="locale-issues"/>.</para>
|
---|
| 46 | </caution>
|
---|
| 47 |
|
---|
[2cfa892] | 48 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 49 | <itemizedlist spacing="compact">
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download (HTTP): <ulink url="&nano-download-http;"/></para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download (FTP): <ulink url="&nano-download-ftp;"/></para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Download MD5 sum: &nano-md5sum;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Download size: &nano-size;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Estimated disk space required: &nano-buildsize;</para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>Estimated build time: &nano-time;</para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">Nano Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e19ad480] | 73 | <para role="optional"><xref linkend="slang"/></para>
|
---|
[2cfa892] | 74 |
|
---|
[3597eb6] | 75 | <para condition="html" role="usernotes">User Notes:
|
---|
[6c42d4e] | 76 | <ulink url="&blfs-wiki;/Nano"/></para>
|
---|
[3597eb6] | 77 |
|
---|
[2cfa892] | 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2 role="installation">
|
---|
| 81 | <title>Installation of Nano</title>
|
---|
| 82 |
|
---|
[3aa07d1] | 83 | <para>Install <application>nano</application> by running the following
|
---|
[2cfa892] | 84 | commands:</para>
|
---|
| 85 |
|
---|
[13679edb] | 86 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc/nano \
|
---|
[b5951ec] | 87 | --enable-color --enable-multibuffer --enable-nanorc &&
|
---|
[2cfa892] | 88 | make</userinput></screen>
|
---|
[d7444dee] | 89 |
|
---|
[40729db] | 90 | <para>This package does not come with a test suite.</para>
|
---|
| 91 |
|
---|
[2cfa892] | 92 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[d7444dee] | 93 |
|
---|
[2cfa892] | 94 | <screen role="root"><userinput>make install &&
|
---|
[13679edb] | 95 | install -v -m644 -D nanorc.sample /etc/nano/nanorc.sample &&
|
---|
| 96 | install -v -m755 -d /usr/share/doc/nano-&nano-version; &&
|
---|
| 97 | install -v -m644 *.html /usr/share/doc/nano-&nano-version;</userinput></screen>
|
---|
[b5951ec] | 98 |
|
---|
[2cfa892] | 99 | </sect2>
|
---|
[b5951ec] | 100 |
|
---|
[2cfa892] | 101 | <sect2 role="configuration">
|
---|
| 102 | <title>Configuring nano</title>
|
---|
[b5951ec] | 103 |
|
---|
[2cfa892] | 104 | <sect3 id="nano-config">
|
---|
| 105 | <title>Config Files</title>
|
---|
[b5951ec] | 106 |
|
---|
[13679edb] | 107 | <para><filename>/etc/nano/nanorc</filename> and
|
---|
[2cfa892] | 108 | <filename>~/.nanorc</filename></para>
|
---|
[b5951ec] | 109 |
|
---|
[2cfa892] | 110 | <indexterm zone="nano nano-config">
|
---|
[13679edb] | 111 | <primary sortas="e-etc-nano-nanorc">/etc/nano/nanorc</primary>
|
---|
[2cfa892] | 112 | </indexterm>
|
---|
| 113 |
|
---|
| 114 | <indexterm zone="nano nano-config">
|
---|
| 115 | <primary sortas="e-AA.nanorc">~/.nanorc</primary>
|
---|
| 116 | </indexterm>
|
---|
| 117 |
|
---|
| 118 | </sect3>
|
---|
| 119 |
|
---|
| 120 | <sect3>
|
---|
| 121 | <title>Configuration Information</title>
|
---|
| 122 |
|
---|
[13679edb] | 123 | <para>Example configuration (create as a system-wide
|
---|
| 124 | <filename>/etc/nano/nanorc</filename> or a personal
|
---|
| 125 | <filename>~/.nanorc</filename> file)</para>
|
---|
[2cfa892] | 126 |
|
---|
| 127 | <screen><literal>set autoindent
|
---|
[b5951ec] | 128 | set const
|
---|
| 129 | set fill 72
|
---|
| 130 | set historylog
|
---|
| 131 | set multibuffer
|
---|
| 132 | set nohelp
|
---|
| 133 | set regexp
|
---|
| 134 | set smooth
|
---|
[2cfa892] | 135 | set suspend</literal></screen>
|
---|
| 136 |
|
---|
[13679edb] | 137 | <para>Another example is the <filename>nanorc.sample</filename> file
|
---|
| 138 | in the <filename class="directory">/etc/nano</filename> directory.
|
---|
| 139 | It includes color configurations and has some documentation included
|
---|
| 140 | in the comments.</para>
|
---|
[2cfa892] | 141 |
|
---|
| 142 | </sect3>
|
---|
| 143 |
|
---|
| 144 | </sect2>
|
---|
| 145 |
|
---|
| 146 | <sect2 role="content">
|
---|
| 147 | <title>Contents</title>
|
---|
| 148 |
|
---|
| 149 | <segmentedlist>
|
---|
| 150 | <segtitle>Installed Programs</segtitle>
|
---|
| 151 | <segtitle>Installed Libraries</segtitle>
|
---|
| 152 | <segtitle>Installed Directory</segtitle>
|
---|
| 153 |
|
---|
| 154 | <seglistitem>
|
---|
| 155 | <seg>nano</seg>
|
---|
| 156 | <seg>None</seg>
|
---|
| 157 | <seg>/usr/share/doc/nano</seg>
|
---|
| 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 |
|
---|
| 178 | </variablelist>
|
---|
| 179 |
|
---|
| 180 | </sect2>
|
---|
[f45b1953] | 181 |
|
---|
| 182 | </sect1>
|
---|