4 setting time and date, 1 setting time and date using a ntp client, 2 setting time during the boot-up – Kontron AM4530 User Manual

Page 35: 5 setting-up ssh, 6 setting-up dhcp server, Setting time and date, Setting-up ssh, Setting-up dhcp server

Advertising
background image

22

AM453x

www.kontron.com

4.4.4

Setting Time and Date

4.4.4.1

Setting Time and Date using a NTP client

Run the following command to set time and date:

# ntpdate <server ip>

(<server ip> is an IP address of a NTP server)

4.4.4.2

Setting Time during the Boot-UP

1 Specify the correct NTP server IP addresses in the /etc/ntp.conf file.

2 Start the NTP daemon manually:

# /etc/init.d/ntpd start

Or automatically set time and date during the boot-up by creating a link to the NTP start script:

ln -sf /etc/init.d/ntpd /etc/rcS.d/S50ntpstart

4.4.5

Setting-up SSH

To setup a SSH, modify the configuration file('/etc/ssh/sshd_config') if required, then start (or restart) the
SSH daemon :

# /etc/init.d/ssh-daemon start

4.4.6

Setting-up DHCP Server

To setup a DHCP server, specify the correct server IP addresses in the /etc/udhcpd.conf file then start the
DHCP server :

# /etc/init.d/dhcp-server start

Or use the following command to make sure this is done automatically during boot-up.

ln -sf /etc/init.d/dhcp-server /etc/rcS.d/S50dhcp-server

Advertising