[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 |
|
---|
[f45b1953] | 15 | <sect1 id="postlfs-editors-nano">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[bae6e15] | 20 | <?dbhtml filename="nano.html"?>
|
---|
[5ef91aa] | 21 | <title>nano-&nano-version;</title>
|
---|
[f45b1953] | 22 |
|
---|
[b5951ec] | 23 | <sect2>
|
---|
| 24 | <title>Introduction to <application>nano</application></title>
|
---|
| 25 |
|
---|
[d4afab2] | 26 | <para>The <application>nano</application> package contains a small, simple
|
---|
| 27 | text editor which aims to replace <application>Pico</application>, the default
|
---|
| 28 | editor in the <application>Pine</application> package.</para>
|
---|
[b5951ec] | 29 |
|
---|
| 30 | <sect3><title>Package information</title>
|
---|
| 31 | <itemizedlist spacing='compact'>
|
---|
| 32 | <listitem><para>Download (HTTP): <ulink
|
---|
| 33 | url="&nano-download-http;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download (FTP): <ulink
|
---|
| 35 | url="&nano-download-ftp;"/></para></listitem>
|
---|
[d4afab2] | 36 | <listitem><para>Download MD5 sum: &nano-md5sum;</para></listitem>
|
---|
[b5951ec] | 37 | <listitem><para>Download size: &nano-size;</para></listitem>
|
---|
[518538f] | 38 | <listitem><para>Estimated disk space required:
|
---|
[b5951ec] | 39 | &nano-buildsize;</para></listitem>
|
---|
| 40 | <listitem><para>Estimated build time:
|
---|
| 41 | &nano-time;</para></listitem></itemizedlist>
|
---|
| 42 | </sect3>
|
---|
| 43 |
|
---|
| 44 | <sect3><title><application>nano</application> dependencies</title>
|
---|
| 45 | <sect4><title>Optional</title>
|
---|
[d4afab2] | 46 | <para><xref linkend="slang"/></para>
|
---|
| 47 | </sect4>
|
---|
[b5951ec] | 48 | </sect3>
|
---|
| 49 |
|
---|
| 50 | </sect2>
|
---|
| 51 |
|
---|
| 52 | <sect2>
|
---|
| 53 | <title>Installation of <application>nano</application></title>
|
---|
| 54 |
|
---|
[d4afab2] | 55 | <para>Install <application>nano</application> by running the following
|
---|
| 56 | commands:</para>
|
---|
[b5951ec] | 57 |
|
---|
| 58 | <screen><userinput><command>./configure --prefix=/usr --sysconfdir=/etc \
|
---|
| 59 | --enable-color --enable-multibuffer --enable-nanorc &&
|
---|
| 60 | make &&
|
---|
| 61 | make install &&
|
---|
| 62 | mkdir -p /usr/share/doc/nano/examples &&
|
---|
| 63 | cp nanorc.sample /usr/share/doc/nano/examples</command></userinput></screen>
|
---|
| 64 |
|
---|
| 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 | <sect2>
|
---|
| 68 | <title>Configuring nano</title>
|
---|
| 69 |
|
---|
| 70 | <sect3><title>Config files</title>
|
---|
| 71 | <para><filename>/etc/nanorc</filename>, <filename>~/.nanorc</filename></para>
|
---|
| 72 |
|
---|
| 73 | <para>Example Configuration</para>
|
---|
| 74 |
|
---|
| 75 | <screen><userinput>set autoindent
|
---|
| 76 | set const
|
---|
| 77 | set fill 72
|
---|
| 78 | set historylog
|
---|
| 79 | set multibuffer
|
---|
| 80 | set nohelp
|
---|
| 81 | set regexp
|
---|
| 82 | set smooth
|
---|
| 83 | set suspend</userinput></screen>
|
---|
| 84 |
|
---|
[d4afab2] | 85 | <para>Another example is in the
|
---|
| 86 | <filename class="directory">/usr/share/doc/nano/examples</filename> directory
|
---|
| 87 | in the <filename>nanorc.sample</filename> file. It includes color
|
---|
| 88 | configurations and has some documentation included in the comments.</para>
|
---|
[b5951ec] | 89 | </sect3>
|
---|
| 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2>
|
---|
| 93 | <title>Contents</title>
|
---|
| 94 |
|
---|
| 95 | <para>The <application>nano</application> package contains
|
---|
| 96 | <command>nano</command>.</para>
|
---|
| 97 |
|
---|
| 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2><title>Description</title>
|
---|
| 101 |
|
---|
| 102 | <sect3><title>nano</title>
|
---|
[d4afab2] | 103 | <para><command>nano</command> is a small, simple text editor which aims to
|
---|
| 104 | replace <application>Pico</application>, the default editor in the
|
---|
[b5951ec] | 105 | <application>Pine</application> package.</para></sect3>
|
---|
| 106 |
|
---|
| 107 | </sect2>
|
---|
[f45b1953] | 108 |
|
---|
| 109 | </sect1>
|
---|