[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 |
|
---|
[d7444dee] | 15 | <sect1 id="nano">
|
---|
[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>
|
---|
| 61 | <para><xref linkend="slang"/></para>
|
---|
| 62 |
|
---|
| 63 | </sect2>
|
---|
| 64 |
|
---|
| 65 | <sect2 role="installation">
|
---|
| 66 | <title>Installation of Nano</title>
|
---|
| 67 |
|
---|
[3aa07d1] | 68 | <para>Install <application>nano</application> by running the following
|
---|
[2cfa892] | 69 | commands:</para>
|
---|
| 70 |
|
---|
[13679edb] | 71 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc/nano \
|
---|
[b5951ec] | 72 | --enable-color --enable-multibuffer --enable-nanorc &&
|
---|
[2cfa892] | 73 | make</userinput></screen>
|
---|
[d7444dee] | 74 |
|
---|
[40729db] | 75 | <para>This package does not come with a test suite.</para>
|
---|
| 76 |
|
---|
[2cfa892] | 77 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[d7444dee] | 78 |
|
---|
[2cfa892] | 79 | <screen role="root"><userinput>make install &&
|
---|
[13679edb] | 80 | install -v -m644 -D nanorc.sample /etc/nano/nanorc.sample &&
|
---|
| 81 | install -v -m755 -d /usr/share/doc/nano-&nano-version; &&
|
---|
| 82 | install -v -m644 *.html /usr/share/doc/nano-&nano-version;</userinput></screen>
|
---|
[b5951ec] | 83 |
|
---|
[2cfa892] | 84 | </sect2>
|
---|
[b5951ec] | 85 |
|
---|
[2cfa892] | 86 | <sect2 role="configuration">
|
---|
| 87 | <title>Configuring nano</title>
|
---|
[b5951ec] | 88 |
|
---|
[2cfa892] | 89 | <sect3 id="nano-config">
|
---|
| 90 | <title>Config Files</title>
|
---|
[b5951ec] | 91 |
|
---|
[13679edb] | 92 | <para><filename>/etc/nano/nanorc</filename> and
|
---|
[2cfa892] | 93 | <filename>~/.nanorc</filename></para>
|
---|
[b5951ec] | 94 |
|
---|
[2cfa892] | 95 | <indexterm zone="nano nano-config">
|
---|
[13679edb] | 96 | <primary sortas="e-etc-nano-nanorc">/etc/nano/nanorc</primary>
|
---|
[2cfa892] | 97 | </indexterm>
|
---|
| 98 |
|
---|
| 99 | <indexterm zone="nano nano-config">
|
---|
| 100 | <primary sortas="e-AA.nanorc">~/.nanorc</primary>
|
---|
| 101 | </indexterm>
|
---|
| 102 |
|
---|
| 103 | </sect3>
|
---|
| 104 |
|
---|
| 105 | <sect3>
|
---|
| 106 | <title>Configuration Information</title>
|
---|
| 107 |
|
---|
[13679edb] | 108 | <para>Example configuration (create as a system-wide
|
---|
| 109 | <filename>/etc/nano/nanorc</filename> or a personal
|
---|
| 110 | <filename>~/.nanorc</filename> file)</para>
|
---|
[2cfa892] | 111 |
|
---|
| 112 | <screen><literal>set autoindent
|
---|
[b5951ec] | 113 | set const
|
---|
| 114 | set fill 72
|
---|
| 115 | set historylog
|
---|
| 116 | set multibuffer
|
---|
| 117 | set nohelp
|
---|
| 118 | set regexp
|
---|
| 119 | set smooth
|
---|
[2cfa892] | 120 | set suspend</literal></screen>
|
---|
| 121 |
|
---|
[13679edb] | 122 | <para>Another example is the <filename>nanorc.sample</filename> file
|
---|
| 123 | in the <filename class="directory">/etc/nano</filename> directory.
|
---|
| 124 | It includes color configurations and has some documentation included
|
---|
| 125 | in the comments.</para>
|
---|
[2cfa892] | 126 |
|
---|
| 127 | </sect3>
|
---|
| 128 |
|
---|
| 129 | </sect2>
|
---|
| 130 |
|
---|
| 131 | <sect2 role="content">
|
---|
| 132 | <title>Contents</title>
|
---|
| 133 |
|
---|
| 134 | <segmentedlist>
|
---|
| 135 | <segtitle>Installed Programs</segtitle>
|
---|
| 136 | <segtitle>Installed Libraries</segtitle>
|
---|
| 137 | <segtitle>Installed Directory</segtitle>
|
---|
| 138 |
|
---|
| 139 | <seglistitem>
|
---|
| 140 | <seg>nano</seg>
|
---|
| 141 | <seg>None</seg>
|
---|
| 142 | <seg>/usr/share/doc/nano</seg>
|
---|
| 143 | </seglistitem>
|
---|
| 144 | </segmentedlist>
|
---|
| 145 |
|
---|
| 146 | <variablelist>
|
---|
| 147 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 148 | <?dbfo list-presentation="list"?>
|
---|
| 149 | <?dbhtml list-presentation="table"?>
|
---|
| 150 |
|
---|
| 151 | <varlistentry id="nano-prog">
|
---|
| 152 | <term><command>nano</command></term>
|
---|
| 153 | <listitem>
|
---|
[3aa07d1] | 154 | <para>is a small, simple text editor which aims to replace
|
---|
[2cfa892] | 155 | <application>Pico</application>, the default editor in the
|
---|
| 156 | <application>Pine</application> package.</para>
|
---|
| 157 | <indexterm zone="nano nano-prog">
|
---|
| 158 | <primary sortas="b-nano">nano</primary>
|
---|
| 159 | </indexterm>
|
---|
| 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
| 162 |
|
---|
| 163 | </variablelist>
|
---|
| 164 |
|
---|
| 165 | </sect2>
|
---|
[f45b1953] | 166 |
|
---|
| 167 | </sect1>
|
---|