Setting up a time server (RFC 868)

This blog entry explains how to configure a time server as defined in RFC 868. not to be confused with NTP which is a newer protocol.

This type of server is to be used with rdate as you’ll see below.

Edit/ etc/xinetd.d/time and set disable = no.
Make sure the lines below are present and uncommented in /etc/services
time            37/tcp          timserver
time            37/udp          timserver

restart xinetd: /etc/rc.d/init.d/xinetd restart

The time server will be started automatically each time the PC boots up.

To test the time server, in your device use rdate (part of busybox):
To set the date: rdate -s IP_ADRESS_OF_TIME_SERVER
To print the date in the console: rdate -p IP_ADRESS_OF_TIME_SERVER

Check the date by typing date

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK Pi 4C Plus

Leave a Reply

Your email address will not be published. Required fields are marked *

Khadas VIM4 SBC
Khadas VIM4 SBC