CH3SNAS:Tutorials/nano
From NAS-Tweaks
After the installation of the fun_plug the only available editor is "vi", which is not really considered a "newbie"-friendly editor. The nano editor is much easier to use and largely self-explanatory. If you nevertheless want more information on the GNU nano editor, see its home page.
Installation
In this tutorial we assume that the fun_plug is already installed on the NAS and that you synchronized Uli's repository (see here for instructions on how to do this). Afterwards install the package (see detailed instructions here):
funpkg -i /ffp/pkg/additional/app-editors/nano*.tgz
Move the configuration-file nanorc from /ffp/etc/examples/ to /ffp/etc/ to get syntax highlighting.
mv /ffp/etc/examples/nanorc /ffp/etc/
Usage
Simply enter "nano <filename>" on the commandline (replacing "<filename>" with the name of the file you want to edit).
Basic commands
The commnds are shown at the bottom of the nano screen. The main commands are:
- CTRL + G => Get Help
- CTRL + O => WriteOut ("Save")
- CTRL + W => Where Is (Search for a string in the file)
- CTRL + C => Cur Pos (Shows the line & column number of the current cursor-position)
- CTRL + X => Exit (Self explanatory)
The command to check spelling is disabled (as there is no dictionary available).
