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