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-md5sum "2c513310ec5e8b63abaecaf48670ac7a">
|
---|
10 | <!ENTITY nano-size "897 KB">
|
---|
11 | <!ENTITY nano-buildsize "4.3 MB">
|
---|
12 | <!ENTITY nano-time "0.08 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="nano">
|
---|
16 | <sect1info>
|
---|
17 | <othername>$LastChangedBy$</othername>
|
---|
18 | <date>$Date$</date>
|
---|
19 | </sect1info>
|
---|
20 | <?dbhtml filename="nano.html"?>
|
---|
21 | <title>nano-&nano-version;</title>
|
---|
22 | <indexterm zone="nano"><primary
|
---|
23 | sortas="a-nano">Nano</primary></indexterm>
|
---|
24 |
|
---|
25 | <sect2>
|
---|
26 | <title>Introduction to <application>nano</application></title>
|
---|
27 |
|
---|
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>
|
---|
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>
|
---|
38 | <listitem><para>Download MD5 sum: &nano-md5sum;</para></listitem>
|
---|
39 | <listitem><para>Download size: &nano-size;</para></listitem>
|
---|
40 | <listitem><para>Estimated disk space required:
|
---|
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>
|
---|
48 | <para><xref linkend="slang"/></para>
|
---|
49 | </sect4>
|
---|
50 | </sect3>
|
---|
51 |
|
---|
52 | </sect2>
|
---|
53 |
|
---|
54 | <sect2>
|
---|
55 | <title>Installation of <application>nano</application></title>
|
---|
56 |
|
---|
57 | <para>Install <application>nano</application> by running the following
|
---|
58 | commands:</para>
|
---|
59 |
|
---|
60 | <screen><userinput><command>./configure --prefix=/usr --sysconfdir=/etc \
|
---|
61 | --enable-color --enable-multibuffer --enable-nanorc &&
|
---|
62 | make</command></userinput></screen>
|
---|
63 |
|
---|
64 | <para>Now, as the root user:</para>
|
---|
65 |
|
---|
66 | <screen><userinput role='root'><command>make install &&
|
---|
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 |
|
---|
75 | <sect3 id="nano-config"><title>Config files</title>
|
---|
76 | <para><filename>/etc/nanorc</filename>, <filename>~/.nanorc</filename></para>
|
---|
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>
|
---|
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 |
|
---|
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>
|
---|
100 | </sect3>
|
---|
101 | </sect2>
|
---|
102 |
|
---|
103 | <sect2>
|
---|
104 | <title>Contents</title>
|
---|
105 |
|
---|
106 | <segmentedlist>
|
---|
107 | <segtitle>Installed Programs</segtitle>
|
---|
108 | <segtitle>Installed Libraries</segtitle>
|
---|
109 | <segtitle>Installed Directory</segtitle>
|
---|
110 | <seglistitem>
|
---|
111 | <seg>nano</seg>
|
---|
112 | <seg>None</seg>
|
---|
113 | <seg>/usr/share/doc/nano</seg>
|
---|
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>
|
---|
132 |
|
---|
133 | </sect2>
|
---|
134 |
|
---|
135 | </sect1>
|
---|