Nano-4.4

#### Beyond Linux® From Scratch (systemd Edition) - Version 9.0

### Chapter 6. Editors

- Prev

  Mousepad-0.4.2

- Next

  Vim-8.1.1846

- Up
- Home

# Nano-4.4

## Introduction to Nano

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-9.0 platform.

### Package Information

- Download (HTTP): https://www.nano-editor.org/dist/v4/nano-4.4.tar.xz

- Download MD5 sum: 9650dd3eb0adbab6aaa748a6f1398ccb

- Download size: 1.4 MB

- Estimated disk space required: 19 MB

- Estimated build time: 0.2 SBU

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/Nano

## Installation of Nano

Install Nano by running the following commands:

    ./configure --prefix=/usr     \
                --sysconfdir=/etc \
                --enable-utf8     \
                --docdir=/usr/share/doc/nano-4.4 &&
    make

This package does not come with a test suite.

Now, as the `root` user:

    make install &&
    install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-4.4

## Command Explanations

`--enable-utf8`: This switch enables unicode support in Nano.

## Configuring nano

### Config Files

`/etc/nanorc` and `~/.nanorc`

### Configuration Information

Example configuration (create as a system-wide `/etc/nanorc` or a personal `~/.nanorc` file)

    set autoindent
    set constantshow
    set fill 72
    set historylog
    set multibuffer
    set nohelp
    set nowrap
    set positionlog
    set quickblank
    set regexp
    set smooth
    set suspend

Check the `sample.nanorc` file in the installed documentation directory. It includes color configurations and has some documentation included in the comments.

Syntax highlighting is provided for several file types, in `/usr/share/nano/` directory. E.g., for shell scripts, you can insert `include /usr/share/nano/sh.nanorc` in the personal or global configuration file. If you wish highlighting for all supported files, use `include /usr/share/nano/*.nanorc`.

## Contents

Installed Programs: nano and rnano (symlink)
Installed Libraries: None
Installed Directories: /usr/share/nano and /usr/share/doc/nano-4.4

### Short Descriptions

nano | is a small, simple text editor which aims to replace Pico, the default editor in the Pine package.
rnano | is a restricted mode for nano.

Last updated on 2019-08-27 10:19:50 -0700

- Prev

  Mousepad-0.4.2

- Next

  Vim-8.1.1846

- Up
- Home