[b5951ec] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 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">
|
---|
[d4afab2] | 9 | <!ENTITY nano-md5sum "2c513310ec5e8b63abaecaf48670ac7a">
|
---|
[afa3ccc] | 10 | <!ENTITY nano-size "897 KB">
|
---|
| 11 | <!ENTITY nano-buildsize "4.3 MB">
|
---|
[b5951ec] | 12 | <!ENTITY nano-time "0.08 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[d7444dee] | 15 | <sect1 id="nano">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[bae6e15] | 20 | <?dbhtml filename="nano.html"?>
|
---|
[5ef91aa8] | 21 | <title>nano-&nano-version;</title>
|
---|
[d7444dee] | 22 | <indexterm zone="nano"><primary
|
---|
[0bfe309a] | 23 | sortas="a-nano">Nano</primary></indexterm>
|
---|
[f45b1953] | 24 |
|
---|
[b5951ec] | 25 | <sect2>
|
---|
| 26 | <title>Introduction to <application>nano</application></title>
|
---|
| 27 |
|
---|
[d4afab2] | 28 | <para>The <application>nano</application> package contains a small, simple
|
---|
| 29 | text editor which aims to replace <application>Pico</application>, the default
|
---|
| 30 | editor in the <application>Pine</application> package.</para>
|
---|
[b5951ec] | 31 |
|
---|
| 32 | <sect3><title>Package information</title>
|
---|
| 33 | <itemizedlist spacing='compact'>
|
---|
| 34 | <listitem><para>Download (HTTP): <ulink
|
---|
| 35 | url="&nano-download-http;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download (FTP): <ulink
|
---|
| 37 | url="&nano-download-ftp;"/></para></listitem>
|
---|
[d4afab2] | 38 | <listitem><para>Download MD5 sum: &nano-md5sum;</para></listitem>
|
---|
[b5951ec] | 39 | <listitem><para>Download size: &nano-size;</para></listitem>
|
---|
[518538f] | 40 | <listitem><para>Estimated disk space required:
|
---|
[b5951ec] | 41 | &nano-buildsize;</para></listitem>
|
---|
| 42 | <listitem><para>Estimated build time:
|
---|
| 43 | &nano-time;</para></listitem></itemizedlist>
|
---|
| 44 | </sect3>
|
---|
| 45 |
|
---|
| 46 | <sect3><title><application>nano</application> dependencies</title>
|
---|
| 47 | <sect4><title>Optional</title>
|
---|
[d4afab2] | 48 | <para><xref linkend="slang"/></para>
|
---|
| 49 | </sect4>
|
---|
[b5951ec] | 50 | </sect3>
|
---|
| 51 |
|
---|
| 52 | </sect2>
|
---|
| 53 |
|
---|
| 54 | <sect2>
|
---|
| 55 | <title>Installation of <application>nano</application></title>
|
---|
| 56 |
|
---|
[d4afab2] | 57 | <para>Install <application>nano</application> by running the following
|
---|
| 58 | commands:</para>
|
---|
[b5951ec] | 59 |
|
---|
| 60 | <screen><userinput><command>./configure --prefix=/usr --sysconfdir=/etc \
|
---|
| 61 | --enable-color --enable-multibuffer --enable-nanorc &&
|
---|
[d7444dee] | 62 | make</command></userinput></screen>
|
---|
| 63 |
|
---|
| 64 | <para>Now, as the root user:</para>
|
---|
| 65 |
|
---|
| 66 | <screen><userinput role='root'><command>make install &&
|
---|
[b5951ec] | 67 | mkdir -p /usr/share/doc/nano/examples &&
|
---|
| 68 | cp nanorc.sample /usr/share/doc/nano/examples</command></userinput></screen>
|
---|
| 69 |
|
---|
| 70 | </sect2>
|
---|
| 71 |
|
---|
| 72 | <sect2>
|
---|
| 73 | <title>Configuring nano</title>
|
---|
| 74 |
|
---|
[d7444dee] | 75 | <sect3 id="nano-config"><title>Config files</title>
|
---|
[b5951ec] | 76 | <para><filename>/etc/nanorc</filename>, <filename>~/.nanorc</filename></para>
|
---|
[d7444dee] | 77 | <indexterm zone="nano nano-config">
|
---|
| 78 | <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
|
---|
| 79 | </indexterm>
|
---|
| 80 | <indexterm zone="nano nano-config">
|
---|
| 81 | <primary sortas="e-AA.nanorc">~/.nanorc</primary>
|
---|
| 82 | </indexterm>
|
---|
[b5951ec] | 83 |
|
---|
| 84 | <para>Example Configuration</para>
|
---|
| 85 |
|
---|
| 86 | <screen><userinput>set autoindent
|
---|
| 87 | set const
|
---|
| 88 | set fill 72
|
---|
| 89 | set historylog
|
---|
| 90 | set multibuffer
|
---|
| 91 | set nohelp
|
---|
| 92 | set regexp
|
---|
| 93 | set smooth
|
---|
| 94 | set suspend</userinput></screen>
|
---|
| 95 |
|
---|
[d4afab2] | 96 | <para>Another example is in the
|
---|
| 97 | <filename class="directory">/usr/share/doc/nano/examples</filename> directory
|
---|
| 98 | in the <filename>nanorc.sample</filename> file. It includes color
|
---|
| 99 | configurations and has some documentation included in the comments.</para>
|
---|
[b5951ec] | 100 | </sect3>
|
---|
| 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2>
|
---|
| 104 | <title>Contents</title>
|
---|
| 105 |
|
---|
[d7444dee] | 106 | <segmentedlist>
|
---|
| 107 | <segtitle>Installed Programs</segtitle>
|
---|
[25d03a51] | 108 | <segtitle>Installed Libraries</segtitle>
|
---|
[36d9b2b] | 109 | <segtitle>Installed Directory</segtitle>
|
---|
[d7444dee] | 110 | <seglistitem>
|
---|
| 111 | <seg>nano</seg>
|
---|
[25d03a51] | 112 | <seg>None</seg>
|
---|
[36d9b2b] | 113 | <seg>/usr/share/doc/nano</seg>
|
---|
[d7444dee] | 114 | </seglistitem>
|
---|
| 115 | </segmentedlist>
|
---|
| 116 |
|
---|
| 117 | <variablelist>
|
---|
| 118 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 119 | <?dbfo list-presentation="list"?>
|
---|
| 120 |
|
---|
| 121 | <varlistentry id="nano-prog">
|
---|
| 122 | <term><filename>nano</filename></term>
|
---|
| 123 | <listitem><para>is a small, simple text editor which aims to
|
---|
| 124 | replace <application>Pico</application>, the default editor in the
|
---|
| 125 | <application>Pine</application> package.</para>
|
---|
| 126 | <indexterm zone="nano nano-prog">
|
---|
| 127 | <primary sortas="b-nano">nano</primary></indexterm>
|
---|
| 128 | </listitem>
|
---|
| 129 | </varlistentry>
|
---|
| 130 |
|
---|
| 131 | </variablelist>
|
---|
[b5951ec] | 132 |
|
---|
| 133 | </sect2>
|
---|
[f45b1953] | 134 |
|
---|
| 135 | </sect1>
|
---|