The Nano package contains a small, simple text editor which aims to replace Pico, the default editor in the Pine package.
This package is known to build and work properly using an LFS-7.4 platform.
Download (HTTP): http://ftp.gnu.org/gnu/nano/nano-2.3.2.tar.gz
Download (FTP): ftp://ftp.gnu.org/gnu/nano/nano-2.3.2.tar.gz
Download MD5 sum: 6451aeae836471cadea8567c44a46c99
Download size: 1.7 MB
Estimated disk space required: 12 MB
Estimated build time: 0.2 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/Nano
Install Nano by running the following commands:
./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-utf8 && make
This package does not come with a test suite.
Now, as the root
user:
make install && install -v -m644 doc/nanorc.sample /etc && install -v -m755 -d /usr/share/doc/nano-2.3.2 && install -v -m644 doc/{,man/,texinfo/}*.html /usr/share/doc/nano-2.3.2
--enable-utf8
: This switch enables
unicode support in Nano.
--with-slang=/usr
: This
forces Nano to use S-Lang. Use this if installed.
Example configuration (create as a system-wide /etc/nanorc
or a personal ~/.nanorc
file)
set autoindent
set const
set fill 72
set historylog
set multibuffer
set nohelp
set regexp
set smooth
set suspend
Another example is the nanorc.sample
file in the /etc
directory. It includes color
configurations and has some documentation included in the
comments.
Last updated on 2013-08-21 18:50:45 -0700