mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-01 13:02:35 +08:00
4890200212
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11157 af4574ff-66df-0310-9fd7-8a98e5e911e0
235 lines
6.1 KiB
XML
235 lines
6.1 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY nano-download-http "http://ftp.gnu.org/gnu/nano/nano-&nano-version;.tar.gz">
|
|
<!ENTITY nano-download-ftp "ftp://ftp.gnu.org/gnu/nano/nano-&nano-version;.tar.gz">
|
|
<!ENTITY nano-md5sum "6451aeae836471cadea8567c44a46c99">
|
|
<!ENTITY nano-size "1.7 MB">
|
|
<!ENTITY nano-buildsize "12 MB">
|
|
<!ENTITY nano-time "0.2 SBU">
|
|
]>
|
|
|
|
<sect1 id="nano" xreflabel="nano-&nano-version;">
|
|
<?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>
|
|
|
|
<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>
|
|
|
|
&lfs73_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&nano-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&nano-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &nano-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &nano-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &nano-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &nano-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">Nano Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="slang"/>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/Nano"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Nano</title>
|
|
|
|
<para>Install <application>Nano</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--enable-utf8 &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
This package does not come with a test suite.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
install -v -m644 doc/nanorc.sample /etc &&
|
|
install -v -m755 -d /usr/share/doc/nano-&nano-version; &&
|
|
install -v -m644 doc/{,man/,texinfo/}*.html /usr/share/doc/nano-&nano-version;</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<option>--enable-utf8</option>: This switch enables unicode support
|
|
in <application>Nano</application>.
|
|
</para>
|
|
|
|
<para>
|
|
<parameter>--with-slang=/usr</parameter>: This forces
|
|
<application>Nano</application> to use <application>S-Lang</application>.
|
|
Use this if installed.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring nano</title>
|
|
|
|
<sect3 id="nano-config">
|
|
<title>Config Files</title>
|
|
|
|
<para><filename>/etc/nanorc</filename> and
|
|
<filename>~/.nanorc</filename></para>
|
|
|
|
<indexterm zone="nano nano-config">
|
|
<primary sortas="e-etc-nanorc">/etc/nanorc</primary>
|
|
</indexterm>
|
|
|
|
<indexterm zone="nano nano-config">
|
|
<primary sortas="e-AA.nanorc">~/.nanorc</primary>
|
|
</indexterm>
|
|
|
|
</sect3>
|
|
|
|
<sect3>
|
|
<title>Configuration Information</title>
|
|
|
|
<para>
|
|
Example configuration (create as a system-wide
|
|
<filename>/etc/nanorc</filename> or a personal
|
|
<filename>~/.nanorc</filename> file)
|
|
</para>
|
|
|
|
<screen><literal>set autoindent
|
|
set const
|
|
set fill 72
|
|
set historylog
|
|
set multibuffer
|
|
set nohelp
|
|
set regexp
|
|
set smooth
|
|
set suspend</literal></screen>
|
|
|
|
<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>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
nano and rnano
|
|
</seg>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
<seg>
|
|
/usr/share/nano and
|
|
/usr/share/doc/nano-&nano-version;
|
|
</seg>
|
|
</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>
|
|
<para>
|
|
is a small, simple text editor which aims to replace
|
|
<application>Pico</application>, the default editor in the
|
|
<application>Pine</application> package.
|
|
</para>
|
|
<indexterm zone="nano nano-prog">
|
|
<primary sortas="b-nano">nano</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="rnano-prog">
|
|
<term><command>rnano</command></term>
|
|
<listitem>
|
|
<para>
|
|
is a restricted mode for <command>nano</command>.
|
|
</para>
|
|
<indexterm zone="nano rnano-prog">
|
|
<primary sortas="b-rnano">rnano</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|