Tuesday, June 26, 2007

2 Linux Tips

  1. Use ntpdate to synchronize linux server with a public ntp server

    Do it automatically within crontab:
    0 3,9,15,21 * * * /usr/sbin/ntpdate -u time.nist.gov | logger -t NTP

  2. Change the default editor in Ubuntu to VIM

    sudo update-alternatives --config editor
    Select VIM and say farewell to Nano.


No comments: