2004-06-11 14:33:09 +08:00
<?xml version="1.0" encoding="ISO-8859-1"?>
2007-04-05 03:42:53 +08:00
< !DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
2004-06-11 14:33:09 +08:00
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
2012-05-11 20:03:49 +08:00
<!ENTITY nano-download-http "http://ftp.gnu.org/gnu/nano/nano-&nano-version;.tar.gz">
2007-02-25 00:16:20 +08:00
<!ENTITY nano-download-ftp "ftp://ftp.gnu.org/gnu/nano/nano-&nano-version;.tar.gz">
2014-07-13 22:57:01 +08:00
<!ENTITY nano-md5sum "a771f6283ac1edee8e5486209910c829">
2014-07-10 00:37:43 +08:00
<!ENTITY nano-size "1.8 MB">
<!ENTITY nano-buildsize "11 MB">
<!ENTITY nano-time "less than 0.1 SBU">
2004-06-11 14:33:09 +08:00
]>
2007-02-15 01:41:56 +08:00
<sect1 id= "nano" xreflabel= "nano-&nano-version;" >
2005-05-14 01:52:11 +08:00
<?dbhtml filename="nano.html"?>
<sect1info >
<othername > $LastChangedBy$</othername>
<date > $Date$</date>
</sect1info>
<title > Nano-&nano-version; </title>
<indexterm zone= "nano" >
<primary sortas= "a-Nano" > Nano</primary>
</indexterm>
<sect2 role= "package" >
<title > Introduction to Nano</title>
2012-05-11 20:03:49 +08:00
<para >
The <application > Nano</application> package contains a small,
simple text editor which aims to replace <application > Pico</application> ,
the default editor in the <application > Pine</application> package.
</para>
2005-05-14 01:52:11 +08:00
2014-02-19 01:38:44 +08:00
&lfs75_checked;
2009-08-07 03:22:27 +08:00
2005-05-14 01:52:11 +08:00
<bridgehead renderas= "sect3" > Package Information</bridgehead>
<itemizedlist spacing= "compact" >
<listitem >
2012-05-11 20:03:49 +08:00
<para >
Download (HTTP): <ulink url= "&nano-download-http;" />
</para>
2005-05-14 01:52:11 +08:00
</listitem>
<listitem >
2012-05-11 20:03:49 +08:00
<para >
Download (FTP): <ulink url= "&nano-download-ftp;" />
</para>
2005-05-14 01:52:11 +08:00
</listitem>
<listitem >
2012-05-11 20:03:49 +08:00
<para >
Download MD5 sum: &nano-md5sum;
</para>
2005-05-14 01:52:11 +08:00
</listitem>
<listitem >
2012-05-11 20:03:49 +08:00
<para >
Download size: &nano-size;
</para>
2005-05-14 01:52:11 +08:00
</listitem>
<listitem >
2012-05-11 20:03:49 +08:00
<para >
Estimated disk space required: &nano-buildsize;
</para>
2005-05-14 01:52:11 +08:00
</listitem>
<listitem >
2012-05-11 20:03:49 +08:00
<para >
Estimated build time: &nano-time;
</para>
2005-05-14 01:52:11 +08:00
</listitem>
</itemizedlist>
<bridgehead renderas= "sect3" > Nano Dependencies</bridgehead>
<bridgehead renderas= "sect4" > Optional</bridgehead>
2012-05-11 20:03:49 +08:00
<para role= "optional" >
<xref linkend= "slang" />
</para>
2005-05-14 01:52:11 +08:00
2006-04-11 02:38:22 +08:00
<para condition= "html" role= "usernotes" > User Notes:
2013-04-28 02:04:22 +08:00
<ulink url= "&blfs-wiki;/Nano" />
</para>
2005-05-14 01:52:11 +08:00
</sect2>
<sect2 role= "installation" >
<title > Installation of Nano</title>
2012-05-11 20:03:49 +08:00
<para > Install <application > Nano</application> by running the following
2005-05-14 01:52:11 +08:00
commands:</para>
2014-07-13 22:57:01 +08:00
<screen > <userinput > sed -i '/dnl Silence/,+3d' configure.ac & & <!-- already commited upstream, remove it and the entry in Command Explanations, in next update -->
autoreconf -fiv & &
./configure --prefix=/usr \
2012-05-11 20:03:49 +08:00
--sysconfdir=/etc \
2014-07-10 00:37:43 +08:00
--enable-utf8 \
--docdir=/usr/share/doc/nano-&nano-version; & &
2005-05-14 01:52:11 +08:00
make</userinput> </screen>
2005-02-11 10:36:50 +08:00
2012-05-11 20:03:49 +08:00
<para >
This package does not come with a test suite.
</para>
2005-06-28 23:54:48 +08:00
2012-05-11 20:03:49 +08:00
<para >
Now, as the <systemitem class= "username" > root</systemitem> user:
</para>
2005-02-11 10:36:50 +08:00
2005-05-14 01:52:11 +08:00
<screen role= "root" > <userinput > make install & &
2012-05-11 20:03:49 +08:00
install -v -m644 doc/nanorc.sample /etc & &
2014-07-10 00:37:43 +08:00
install -v -m644 doc/texinfo/nano.html /usr/share/doc/nano-&nano-version; </userinput> </screen>
2004-06-11 14:33:09 +08:00
2005-05-14 01:52:11 +08:00
</sect2>
2004-06-11 14:33:09 +08:00
2009-08-07 03:22:27 +08:00
<sect2 role= "commands" >
<title > Command Explanations</title>
2013-04-28 02:04:22 +08:00
<para >
2014-07-13 22:57:01 +08:00
<command > sed -i '/dnl Silence/,+3d' configure.ac</command> : Fixes the
directory <filename class= "directory" > locale</filename> to be placed under
<filename class= "directory" > /usr/share</filename> .
</para>
<para >
<parameter > --enable-utf8</parameter> : This switch enables unicode support
2013-04-28 02:04:22 +08:00
in <application > Nano</application> .
</para>
2012-05-11 20:03:49 +08:00
<para >
2014-07-13 22:57:01 +08:00
<option > --with-slang</option> : This forces <application > Nano</application>
to use <application > S-Lang</application> .
2012-05-11 20:03:49 +08:00
Use this if installed.
</para>
2009-08-07 03:22:27 +08:00
</sect2>
2005-05-14 01:52:11 +08:00
<sect2 role= "configuration" >
<title > Configuring nano</title>
2004-06-11 14:33:09 +08:00
2005-05-14 01:52:11 +08:00
<sect3 id= "nano-config" >
<title > Config Files</title>
2004-06-11 14:33:09 +08:00
2012-05-11 20:03:49 +08:00
<para > <filename > /etc/nanorc</filename> and
2005-05-14 01:52:11 +08:00
<filename > ~/.nanorc</filename> </para>
2004-06-11 14:33:09 +08:00
2005-05-14 01:52:11 +08:00
<indexterm zone= "nano nano-config" >
2012-05-11 20:03:49 +08:00
<primary sortas= "e-etc-nanorc" > /etc/nanorc</primary>
2005-05-14 01:52:11 +08:00
</indexterm>
<indexterm zone= "nano nano-config" >
<primary sortas= "e-AA.nanorc" > ~/.nanorc</primary>
</indexterm>
</sect3>
<sect3 >
<title > Configuration Information</title>
2012-05-11 20:03:49 +08:00
<para >
Example configuration (create as a system-wide
<filename > /etc/nanorc</filename> or a personal
<filename > ~/.nanorc</filename> file)
</para>
2005-05-14 01:52:11 +08:00
<screen > <literal > set autoindent
2004-06-11 14:33:09 +08:00
set const
set fill 72
set historylog
set multibuffer
set nohelp
set regexp
set smooth
2005-05-14 01:52:11 +08:00
set suspend</literal> </screen>
2012-05-11 20:03:49 +08:00
<para >
Another example is the <filename > nanorc.sample</filename> file
in the <filename class= "directory" > /etc</filename> directory.
It includes color configurations and has some documentation included
in the comments.
</para>
2005-05-14 01:52:11 +08:00
</sect3>
</sect2>
<sect2 role= "content" >
<title > Contents</title>
<segmentedlist >
<segtitle > Installed Programs</segtitle>
2013-01-26 00:32:25 +08:00
<segtitle > Installed Libraries</segtitle>
2006-12-09 13:59:12 +08:00
<segtitle > Installed Directories</segtitle>
2005-05-14 01:52:11 +08:00
<seglistitem >
2012-05-11 20:03:49 +08:00
<seg >
2014-07-10 00:37:43 +08:00
nano and rnano (symlink)
2012-05-11 20:03:49 +08:00
</seg>
2013-01-26 00:32:25 +08:00
<seg >
None
</seg>
2012-05-11 20:03:49 +08:00
<seg >
/usr/share/nano and
/usr/share/doc/nano-&nano-version;
</seg>
2005-05-14 01:52:11 +08:00
</seglistitem>
</segmentedlist>
<variablelist >
<bridgehead renderas= "sect3" > Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id= "nano-prog" >
<term > <command > nano</command> </term>
<listitem >
2012-05-11 20:03:49 +08:00
<para >
is a small, simple text editor which aims to replace
<application > Pico</application> , the default editor in the
<application > Pine</application> package.
</para>
2005-05-14 01:52:11 +08:00
<indexterm zone= "nano nano-prog" >
<primary sortas= "b-nano" > nano</primary>
</indexterm>
</listitem>
</varlistentry>
2006-12-09 13:59:12 +08:00
<varlistentry id= "rnano-prog" >
<term > <command > rnano</command> </term>
<listitem >
2012-05-11 20:03:49 +08:00
<para >
is a restricted mode for <command > nano</command> .
</para>
2006-12-09 13:59:12 +08:00
<indexterm zone= "nano rnano-prog" >
<primary sortas= "b-rnano" > rnano</primary>
</indexterm>
</listitem>
</varlistentry>
2005-05-14 01:52:11 +08:00
</variablelist>
</sect2>
2002-07-08 04:28:42 +08:00
</sect1>