From 949fcde6f7107ee117c85283acc5857b1b507e83 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg It's simple really! As root, type rpm -Uvh nano-x.y-1*.rpm if you have a RedHat-ish system or dpkg -i nano_x.y-1*.deb if you have a Debian-ish system, where x.y is the version number of nano. There are other programs to install packages, and if you wish to use those, knock yourself out. Okay, take a deep breath, this really isn't hard. Unpack the nano source with a command like: tar -xvf nano-x.y.tar.gz tar -xvf nano-x.y.tar.gz Then you need to run configure with any options you might want (if any). The average case is this: cd nano-x.y/ cd nano-x.y/3.2. Compiling from source: WHAT THE HECK DO I DO NOW?
+ make install #(as root, of course)
+
./configure
make
- make install (as root, of course)
Well, that's what the configure script defaults to. If you wish to change this, simply do this:
-./configure --prefix=/usr
+./configure --prefix=/usr
This will put nano into /usr/bin when you run make install.
@@ -179,7 +182,7 @@It does when you use make install-strip. The default make install does not, and will not, run strip automatically.
@@ -220,16 +223,16 @@On Debian and its derivatives, the Alt+Up keystroke on a Linux console produces by default a 'KeyboardSignal', which normally does absolutely nothing and is useless for the average user. To get the keystroke to work normally, run this in a Linux console:
- dumpkeys --full | sed s/KeyboardSignal/Up/ | sudo loadkeys - +dumpkeys --full | sed s/KeyboardSignal/Up/ | sudo loadkeys -
You will need to run this command whenever you first switch to a Linux console. Or you can put the command in your .bashrc or equivalent, conditionalized with: if [ $TERM == linux ]; then ... ; fi.
If you want nano to actually use color, you have to specify the color configurations you want it to use in your .nanorc. Several example configurations are in the syntax/ subdirectory of the nano source, which are normally installed to /usr/local/share/nano/. To enable all of them, uncomment the line # include "/usr/local/share/nano/*.nanorc" in your nanorc. See also section 3.9.
You need to make nano your $EDITOR. If you want this to be saved, you should put a line like this in your .bashrc if you use bash (or .zshrc if you believe in zsh):
-export EDITOR=/usr/local/bin/nano
+export EDITOR=/usr/local/bin/nano
or, if you use tcsh, put this in your .cshrc file:
-setenv EDITOR /usr/local/bin/nano
+setenv EDITOR /usr/local/bin/nano
Change /usr/local/bin/nano to wherever nano is installed on your system. Type "which nano" to find out. This will not take effect until the next time you log in. So log out and back in again.
Then, on top of that, if you use Pine, you must go into setup (type S at the main menu), and then configure (type C). Hit Enter on the lines that say:
-[ ] enable-alternate-editor-cmd
+[ ] enable-alternate-editor-cmd
[ ] enable-alternate-editor-implicitlyThen exit (E) and select Yes (Y).
If you're a mutt user, you should see an effect immediately the next time you log in. No further configuration is needed. However, if you want to let people know you use nano to compose your email messages, you can put a line like this in your .muttrc:
-my_hdr X-Composer: nano-x.y
+my_hdr X-Composer: nano-x.y
Again, replace x.y with the version of nano you use.