[b5951ec] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[b5951ec] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[d78d84d] | 7 | <!ENTITY nano-download-http "http://ftp.gnu.org/gnu/nano/nano-&nano-version;.tar.gz">
|
---|
[38aa038] | 8 | <!ENTITY nano-download-ftp "ftp://ftp.gnu.org/gnu/nano/nano-&nano-version;.tar.gz">
|
---|
[d78d84d] | 9 | <!ENTITY nano-md5sum "af09f8828744b0ea0808d6c19a2b4bfd">
|
---|
| 10 | <!ENTITY nano-size "1.5 MB">
|
---|
| 11 | <!ENTITY nano-buildsize "11 MB">
|
---|
| 12 | <!ENTITY nano-time "0.2 SBU">
|
---|
[b5951ec] | 13 | ]>
|
---|
| 14 |
|
---|
[fd680fb] | 15 | <sect1 id="nano" xreflabel="nano-&nano-version;">
|
---|
[2cfa892] | 16 | <?dbhtml filename="nano.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Nano-&nano-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="nano">
|
---|
| 26 | <primary sortas="a-Nano">Nano</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Nano</title>
|
---|
| 31 |
|
---|
[d78d84d] | 32 | <para>
|
---|
| 33 | The <application>Nano</application> package contains a small,
|
---|
| 34 | simple text editor which aims to replace <application>Pico</application>,
|
---|
| 35 | the default editor in the <application>Pine</application> package.
|
---|
| 36 | </para>
|
---|
[2cfa892] | 37 |
|
---|
[d78d84d] | 38 | &lfs70_checked;
|
---|
[c70fd34] | 39 |
|
---|
[2cfa892] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[d78d84d] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&nano-download-http;"/>
|
---|
| 45 | </para>
|
---|
[2cfa892] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[d78d84d] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&nano-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[2cfa892] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[d78d84d] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &nano-md5sum;
|
---|
| 55 | </para>
|
---|
[2cfa892] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[d78d84d] | 58 | <para>
|
---|
| 59 | Download size: &nano-size;
|
---|
| 60 | </para>
|
---|
[2cfa892] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[d78d84d] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &nano-buildsize;
|
---|
| 65 | </para>
|
---|
[2cfa892] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[d78d84d] | 68 | <para>
|
---|
| 69 | Estimated build time: &nano-time;
|
---|
| 70 | </para>
|
---|
[2cfa892] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">Nano Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[d78d84d] | 77 | <para role="optional">
|
---|
| 78 | <xref linkend="slang"/>
|
---|
| 79 | </para>
|
---|
[2cfa892] | 80 |
|
---|
[3597eb6] | 81 | <para condition="html" role="usernotes">User Notes:
|
---|
[6c42d4e] | 82 | <ulink url="&blfs-wiki;/Nano"/></para>
|
---|
[3597eb6] | 83 |
|
---|
[2cfa892] | 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 role="installation">
|
---|
| 87 | <title>Installation of Nano</title>
|
---|
| 88 |
|
---|
[d78d84d] | 89 | <para>Install <application>Nano</application> by running the following
|
---|
[2cfa892] | 90 | commands:</para>
|
---|
| 91 |
|
---|
[d78d84d] | 92 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 93 | --sysconfdir=/etc \
|
---|
| 94 | --enable-utf8 &&
|
---|
[2cfa892] | 95 | make</userinput></screen>
|
---|
[d7444dee] | 96 |
|
---|
[d78d84d] | 97 | <para>
|
---|
| 98 | This package does not come with a test suite.
|
---|
| 99 | </para>
|
---|
[40729db] | 100 |
|
---|
[d78d84d] | 101 | <para>
|
---|
| 102 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 103 | </para>
|
---|
[d7444dee] | 104 |
|
---|
[2cfa892] | 105 | <screen role="root"><userinput>make install &&
|
---|
[d78d84d] | 106 | install -v -m644 doc/nanorc.sample /etc &&
|
---|
[13679edb] | 107 | install -v -m755 -d /usr/share/doc/nano-&nano-version; &&
|
---|
[0af9f257] | 108 | install -v -m644 doc/{,man/,texinfo/}*.html /usr/share/doc/nano-&nano-version;</userinput></screen>
|
---|
[b5951ec] | 109 |
|
---|
[2cfa892] | 110 | </sect2>
|
---|
[b5951ec] | 111 |
|
---|
[c70fd34] | 112 | <sect2 role="commands">
|
---|
| 113 | <title>Command Explanations</title>
|
---|
| 114 |
|
---|
[d78d84d] | 115 | <para>
|
---|
| 116 | <parameter>--with-slang=/usr</parameter>: This forces
|
---|
| 117 | <application>Nano</application> to use <application>S-Lang</application>.
|
---|
| 118 | Use this if installed.
|
---|
| 119 | </para>
|
---|
[c70fd34] | 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
[2cfa892] | 123 | <sect2 role="configuration">
|
---|
| 124 | <title>Configuring nano</title>
|
---|
[b5951ec] | 125 |
|
---|
[2cfa892] | 126 | <sect3 id="nano-config">
|
---|
| 127 | <title>Config Files</title>
|
---|
[b5951ec] | 128 |
|
---|
[d78d84d] | 129 | <para><filename>/etc/nanorc</filename> and
|
---|
[2cfa892] | 130 | <filename>~/.nanorc</filename></para>
|
---|
[b5951ec] | 131 |
|
---|
[2cfa892] | 132 | <indexterm zone="nano nano-config">
|
---|
[d78d84d] | 133 | <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
|
---|
[2cfa892] | 134 | </indexterm>
|
---|
| 135 |
|
---|
| 136 | <indexterm zone="nano nano-config">
|
---|
| 137 | <primary sortas="e-AA.nanorc">~/.nanorc</primary>
|
---|
| 138 | </indexterm>
|
---|
| 139 |
|
---|
| 140 | </sect3>
|
---|
| 141 |
|
---|
| 142 | <sect3>
|
---|
| 143 | <title>Configuration Information</title>
|
---|
| 144 |
|
---|
[d78d84d] | 145 | <para>
|
---|
| 146 | Example configuration (create as a system-wide
|
---|
| 147 | <filename>/etc/nanorc</filename> or a personal
|
---|
| 148 | <filename>~/.nanorc</filename> file)
|
---|
| 149 | </para>
|
---|
[2cfa892] | 150 |
|
---|
| 151 | <screen><literal>set autoindent
|
---|
[b5951ec] | 152 | set const
|
---|
| 153 | set fill 72
|
---|
| 154 | set historylog
|
---|
| 155 | set multibuffer
|
---|
| 156 | set nohelp
|
---|
| 157 | set regexp
|
---|
| 158 | set smooth
|
---|
[2cfa892] | 159 | set suspend</literal></screen>
|
---|
| 160 |
|
---|
[d78d84d] | 161 | <para>
|
---|
| 162 | Another example is the <filename>nanorc.sample</filename> file
|
---|
| 163 | in the <filename class="directory">/etc</filename> directory.
|
---|
| 164 | It includes color configurations and has some documentation included
|
---|
| 165 | in the comments.
|
---|
| 166 | </para>
|
---|
[2cfa892] | 167 |
|
---|
| 168 | </sect3>
|
---|
| 169 |
|
---|
| 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | <sect2 role="content">
|
---|
| 173 | <title>Contents</title>
|
---|
| 174 |
|
---|
| 175 | <segmentedlist>
|
---|
| 176 | <segtitle>Installed Programs</segtitle>
|
---|
[0af9f257] | 177 | <segtitle>Installed Directories</segtitle>
|
---|
[2cfa892] | 178 |
|
---|
| 179 | <seglistitem>
|
---|
[d78d84d] | 180 | <seg>
|
---|
| 181 | nano and rnano
|
---|
| 182 | </seg>
|
---|
| 183 | <seg>
|
---|
| 184 | /usr/share/nano and
|
---|
| 185 | /usr/share/doc/nano-&nano-version;
|
---|
| 186 | </seg>
|
---|
[2cfa892] | 187 | </seglistitem>
|
---|
| 188 | </segmentedlist>
|
---|
| 189 |
|
---|
| 190 | <variablelist>
|
---|
| 191 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 192 | <?dbfo list-presentation="list"?>
|
---|
| 193 | <?dbhtml list-presentation="table"?>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="nano-prog">
|
---|
| 196 | <term><command>nano</command></term>
|
---|
| 197 | <listitem>
|
---|
[d78d84d] | 198 | <para>
|
---|
| 199 | is a small, simple text editor which aims to replace
|
---|
| 200 | <application>Pico</application>, the default editor in the
|
---|
| 201 | <application>Pine</application> package.
|
---|
| 202 | </para>
|
---|
[2cfa892] | 203 | <indexterm zone="nano nano-prog">
|
---|
| 204 | <primary sortas="b-nano">nano</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
| 208 |
|
---|
[0af9f257] | 209 | <varlistentry id="rnano-prog">
|
---|
| 210 | <term><command>rnano</command></term>
|
---|
| 211 | <listitem>
|
---|
[d78d84d] | 212 | <para>
|
---|
| 213 | is a restricted mode for <command>nano</command>.
|
---|
| 214 | </para>
|
---|
[0af9f257] | 215 | <indexterm zone="nano rnano-prog">
|
---|
| 216 | <primary sortas="b-rnano">rnano</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
[2cfa892] | 221 | </variablelist>
|
---|
| 222 |
|
---|
| 223 | </sect2>
|
---|
[f45b1953] | 224 |
|
---|
| 225 | </sect1>
|
---|