Red Hat Linux no longer includes timetool. The dateconfig utility has replaced timetool. The dateconfig allows the user to change the system date and time, to configure the time zone used by the system, and to setup the Network Time Protocol (NTP) daemon to synchronize the system clock with a time server.
To use dateconfig, you must be running the X Window System and have root privileges. To start dateconfig, use one of the following methods:
On the GNOME desktop, go to the Main Menu Button (on the Panel) => Programs => System => Date/Time Properties.
On the KDE desktop, go to the Main Menu Button (on the Panel) => Red Hat => System => Date/Time Properties.
Type the command dateconfig at a shell prompt (for example, in an XTerm or a GNOME terminal). [1]
As shown in Figure 18-1, the first tabbed window that appears is for configuring the system date and time and the NTP daemon.
To change the date, use the arrows to the left and right of the month to change the month. Use the arrows to the left and right of the year to change the year, and click on the day of the week to change the day of the week. Changes will not take place until you click the Apply button.
To change the time, use the up and down arrow buttons beside the Hour, Minute, and Second in the Time section. Changes will not take place until you click the Apply button.
Note | |
---|---|
Changing the date and time will change the system clock as well as the hardware clock. Clicking Apply or Ok is equivalent to executing the date and hwclock commands with the selected date and time. |
The Network Time Protocol (NTP) daemon synchronizes the system clock with a remote time server or time source (such as a satellite). dateconfig allows you to configure a NTP daemon to synchronize your system clock with a remote server. To enable this feature, click the Enable Network Time Protocol button. This will enable the Server pulldown menu. You can choose one of the predefined servers or type a server name in the pulldown menu. Your system will not start synchronizing with the NTP server until you click Apply. After you click Apply, the configuration will be saved and the NTP daemon (ntpd) will be started (or restarted if it is already running). If you want this daemon to start automatically at boot time, you need to execute the command /sbin/chkconfig --level 345 ntpd on to enable ntpd for runlevels 3, 4, and 5.
For more information on NTP, read the NTP documentation available in the /usr/share/doc/ntp-version-number directory.
Clicking the Apply button will apply any changes that you have made to the date and time, the NTP daemon settings, and the time zone settings. Clicking the Ok button will apply the changes and then exit the program.
[1] | If you type timetool at a shell prompt, Dateconfig will start. |