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