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