How to install htop and nano Neth Server

Greetings everyone i am back to sharing tips… I love nano and can’t stand vi so the moment i get my server installed here are the very basic first steps i take to make the system stand out…

First off htop best tool to see whats eating up what…
Here is the resource where i pulled my information…

open up a terminal to use these commands…

Here is what i do on NethServer 6.8 centos

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -ihv rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

The next command you need to run is this…
yum install htop

Ok now that you got htop installed I want to teach you how to install nano and make it your default editor system wide…

First off run this command to install it.
yum -y install nano

Now that you have it installed lets make sure word wrap is turned off…
echo "set nowrap" >>/etc/nanorc

Ok now that we have gotten this far lets make it a the default editor.
Make sure you copy and paste the whole thing in other wise it won’t work correctly…

cat <<EOF >>/etc/profile.d/nano.sh
export VISUAL="nano"
export EDITOR="nano"
EOF

Now to ensure that things look right cat command should show you this…

cat /etc/profile.d/nano.sh 

Should display this

export VISUAL="nano"
export EDITOR="nano"

Now log out of ssh and log back in and try crontab -e to see if it works…

Lets say you don’t want to make nano default for what ever reason for the entire system but you want to let users only use nano you can run this command below as the user to change the default text editor for that user…

cat <<EOF >>~/.bash_profile
export VISUAL="nano"
export EDITOR="nano"
EOF

I hope this helps this is some of the steps I use to get my server rocking back to normal…

6 Likes