Set Raspberry Pi 3 to get date/time from network server

NettieEck
NettieEck used Ask the Experts™
on
Where do I set the pi to point to a network time server?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
What operating system? Raspberry Pi can run various

Author

Commented:
is this what you are looking for?

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
You can try setting it in raspi-config
  1. sudo raspi-config
  2. Select Internationalisation Options
  3. Select I2 Change Timezone
  4. Select your Geographical Area
  5. Select your nearest City
  6. Select Finish
  7. Select Yes to reboot now
https://raspberrypi.stackexchange.com/questions/8231/how-to-force-ntpd-to-update-date-time-after-boot

Author

Commented:
We did that, but the pi's don't have access to the internet, we want them to get the date/time from a network server.
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:

Author

Commented:
I've seen answers about editing the etc/ntpd.conf file or the ntp.conf file, but neither exist on the pi.  Is there something I should install first?
Technical Specialist
Awarded 2017
Distinguished Expert 2018
Commented:
This should work
sudo apt-get update && sudo apt-get -y install ntp

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial