Set NTP to listen only on eth0

Open the /etc/sysconfig/ntp file, and find the OPTIONS directive.

Inside the quotes of that directive, add the following: “-L”

The final product should look like this:
OPTIONS=”-L”

This directs the NTP daemon to only listen on eth0 (not on other virtual IP’s).

Set NTP to log to its own file

Open the /etc/sysconfig/ntp file, and find the OPTIONS directive.

Inside the quotes of that directive, add the following: “-l /var/log/ntp.log”

The final product should look like this:
OPTIONS=”-l /var/log/ntp.log”

This will cause the NTP daemon to write to the /var/log/ntp.log file instead of syslog.

Add Dag Wieers repository to RHEL 4

I personally love the “htop” utility, but hate having to manually bring it down from Dag Wieer’s repository each time I want to install it on a RHEL server. If you add the Dag Wieers repository to up2date’s configuration file, you can automate this process (including getting future updates). Here’s how:

1) Open the up2date sources file:
vi /etc/sysconfig/rhn/sources

2) Add the repository:
yum dag http://apt.sw.be/redhat/el$releasever/en/$basearch/dag

3) Import the Dag Wieers GPG key:
# rpm –import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

Now you can add the htop program with the “up2date -i htop” command.