2 initial debian system configuration, 3 maintaining system time with rdate, Initial debian system configuration – Intel I/O Processor User Manual
Page 21: Maintaining system time with rdate
Distributions—Linux - Debian
Linux-Debian Installation Guide
Intel
®
I/O Processors
June 2005
Order Number: 306507001US
21
6.1.2
Initial Debian System Configuration
On the first boot of the new Debian installation, the base-config application will be run. This will
do more configuration of the system. Please consult the Debian home page for help with this
process. I generally skip running the “
tasksel
” and “
dselect
” processes until I have tweaked the
configuration of my system as discussed next.
When running Linux on any of the IOP HBA-type CRBs (i.e., IQ80321, IQ80331, etc), they will
not have a real-time-clock (RTC) on board. As such, they will not retain the time across boots. To
address this, we can install either rdate or ntp. A side effect of this is that for every login, there is a
prompted to change the password. This is because password aging is enabled be default and the
date is wrong, thus confusing the system.
6.1.3
Maintaining System Time With Rdate
To enable the IA Linux host as an rdate server, issue the following commands on the server as root:
# /sbin/chkconfig time on
# /sbin/service xinetd restart
Then on the Intel XScale
®
microarchitecture-Linux target, issue the following commands to
download and install the rdate package. This only needs to be done once.
# apt-get install rdate
To manually update the time on the target:
# rdate 192.168.0.1
Add the following to the '/etc/rc.local' or create it when it does not exist:
rdate -s 192.168.0.1
and ensure that it is executable and is called on each boot:
# chmod 755 /etc/rc.local
# cd /etc/rc2.d; ln -s ../rc.local ./S99local
# cd /etc/rc3.d; ln -s ../rc.local ./S99local
# cd /etc/rc4.d; ln -s ../rc.local ./S99local
# cd /etc/rc5.d; ln -s ../rc.local ./S99local