Getting the correct time
from the Internet

 General Information

Introduction

As most modern operating systems, IRIX offers the possibility to sync the internal clock with an external time server. There are many public time servers you can use. Especially if you work in a LAN, it can be rather important that all computers do have the same time and date - I mean exactly the same time and date. Otherwise shared ressources (like files) can't be synchronized properly between clients.

The standard technique used for synchronizing computers clock using TCP/IP uses the NTP protocol - 'Network Time Protocol'. This page explains how to enable automatic time synchronisation with IRIX.

Enabling the NTP Client

Unfortunately IRIX does not have NTP-support out of the box, you first have to install the freeware ntp package (available at freeware.sgi.com) First of all you have to disable any other time-synchronisation. Especially the daemons timed and timeslave have to be deactivated by typing

>> chkconfig timeslave off
>> chkconfig timed off

Then of course you have to enable the ntp-daemon by typing

>> chkconfig ntp on

Then you probably want to change the default time-servers in /etc/init.d/ntp

#!/sbin/sh
# Start or stop the SGI Freeware NTP daemon.
#
# Set custom options in /etc/config/ntp.options to override
# default configuration.
#
# ntpd daemon does not fiddle with timetrim.
# If /etc/config/ntp.timetrim exists, the contents will be used
# to set the kernel timetrim.  BE VERY CAREFUL.
#
# Built for SGI Freeware by Vince Levey <vincel@sgi.com>
# http://www.vincel.org/
# $Revision: 1.1 $

IS_ON=/etc/chkconfig
NTPD=ntpd
CONFIG=/etc/config
NTPHOME=/usr/freeware/etc
NTPBINDIR=/usr/freeware/bin

# Add a list of NTP servers to set the boot time to.
NTPSERVS=ntp1.t-online.de

[rest of file skipped]

Setting the Timezone

Another important setting you might want to change is the timezone, which is stored in /etc/TOMEZONE.

 Links
  • none