DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th November 2023
unicorn unicorn is offline
Port Guard
 
Join Date: Apr 2020
Posts: 33
Default clock syncing

How to adjust time? How to use OpenNTPD and configure it?
Reply With Quote
  #2   (View Single Post)  
Old 19th November 2023
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by unicorn View Post
How to adjust time?
https://www.openbsd.org/faq/faq10.html#OpenNTPD

Quote:
How to use OpenNTPD and configure it?
https://man.openbsd.org/OpenBSD-7.4/rcctl.8
Reply With Quote
  #3   (View Single Post)  
Old 19th November 2023
unicorn unicorn is offline
Port Guard
 
Join Date: Apr 2020
Posts: 33
Default

sorry, I had read the first article but still confused. I want to auto sync time when booting. Which command should I run and add it to which file?
Reply With Quote
  #4   (View Single Post)  
Old 19th November 2023
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,985
Default

The ntpd(8) daemon is started on boot by default. It will automatically synchronize the local system clock using a pool of public NTP servers, and checks the supplied time's validity through a separate pool of public HTTPS servers acting as authentication constraints.

If OpenBSD's default time synchronization is not sufficient to your needs, you can use date(8) to set the clock manually or use rdate(8) to set the clock's time using a trusted remote NTP server.
Reply With Quote
  #5   (View Single Post)  
Old 19th November 2023
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

OpenNTP is enabled out of the box as a default. Typically, it is within 200 msec and is substaintially smaller and more secure (lsmaller attack surface and fewer cve's) than ntp which is a port option:
net/ntp

Last edited by shep; 19th November 2023 at 07:24 PM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unmounting/Syncing takes forever paulr NetBSD Installation and Upgrading 3 11th June 2017 03:43 AM
System clock's frequency e1-531g OpenBSD General 1 25th September 2015 05:03 PM
REQUEST: Programm for changing the clock m1tk0 Programming 3 16th January 2010 06:43 PM
configure clock in xfce delboy FreeBSD General 7 3rd September 2008 06:36 PM
can't set clock? carpman FreeBSD General 31 7th July 2008 11:26 PM


All times are GMT. The time now is 12:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick