{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/ntp/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/ntp/", "feed_url": "https://matoken.org/blog/tag/ntp/feed/json/", "language": "ja", "title": "ntp – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "http://matoken.org/blog/?p=1694", "url": "https://matoken.org/blog/2017/10/25/raspbian-jessie-ntp-setting/", "title": "Raspbian jessie\u306entp\u8a2d\u5b9a", "content_html": "

Raspbian\u306bntpd\u3084chrony\u3084ntpdate\u3068\u304b\u5c45\u306a\u3044\u3051\u3069\u4f55\u304c\u9762\u5012\u898b\u3066\u308b\u3093\u3060\u308d\u3046\u3066\u3053\u3068\u3067\u78ba\u8a8d\uff0e
\nsystemd\u304c\u9762\u5012\u898b\u3066\u3066timeatectl\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u8a2d\u5b9a\u304c\u3067\u304d\u308b\u3089\u3057\u3044\uff0e

\n
$ dpkg -l|egrep -i "ntp|chrony"\r\n$ systemctl -a | grep -i ntp\r\n
\n

\u4eca\u306e\u72b6\u614b\u3092\u78ba\u8a8d

\n
$ timedatectl status\r\n      Local time: Wed 2017-10-25 02:01:14 JST\r\n  Universal time: Tue 2017-10-24 17:01:14 UTC\r\n        RTC time: n/a\r\n       Time zone: Asia/Tokyo (JST, +0900)\r\n Network time on: yes\r\nNTP synchronized: yes\r\n RTC in local TZ: no\r\n
\n

NTP\u540c\u671f\u3092\u7121\u52b9\u306b\u3057\u3066\u307f\u308b

\n
$ sudo timedatectl set-ntp false\r\n
\n

\u7121\u52b9\u306b\u306a\u3063\u305f( Network time on: no )
\n\u518d\u8d77\u52d5\u3059\u308b\u3068 NTP synchronized \u3082 no \u306b\u3082\u306a\u308b\uff0e

\n
$ timedatectl status\r\n      Local time: Wed 2017-10-25 02:01:39 JST\r\n  Universal time: Tue 2017-10-24 17:01:39 UTC\r\n        RTC time: n/a\r\n       Time zone: Asia/Tokyo (JST, +0900)\r\n Network time on: no\r\nNTP synchronized: yes\r\n RTC in local TZ: no\r\n
\n

\u304a\u307e\u3051

\n

\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u78ba\u8a8d

\n
$ timedatectl list-timezones | grep -i tokyo\r\nAsia/Tokyo\r\n
\n

\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a

\n
$ sudo timedatectl set-timezone\r\n
\n

\u4efb\u610f\u306entp server\u306e\u6307\u5b9a

\n

dhcpd\u304b\u3089\u6e21\u3063\u3066\u304d\u305f\u3082\u306e\uff0e

\n

hdcpd\u306b\u7121\u3044\u5834\u5408 /etc/systemd/timesyncd.conf
\n\u306e NTP \u3068 FallbackNTP

\n

\u74b0\u5883

\n

Raspbian stretch lite 2017-09-07(\u672aupdate)

\n
$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID: Raspbian\r\nDescription:    Raspbian GNU/Linux 9.1 (stretch)\r\nRelease:        9.1\r\nCodename:       stretch\r\n$ uname -a\r\nLinux raspberrypi 4.9.41+ #1023 Tue Aug 8 15:47:12 BST 2017 armv6l GNU/Linux\r\n
\n

\n", "content_text": "Raspbian\u306bntpd\u3084chrony\u3084ntpdate\u3068\u304b\u5c45\u306a\u3044\u3051\u3069\u4f55\u304c\u9762\u5012\u898b\u3066\u308b\u3093\u3060\u308d\u3046\u3066\u3053\u3068\u3067\u78ba\u8a8d\uff0e\nsystemd\u304c\u9762\u5012\u898b\u3066\u3066timeatectl\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u8a2d\u5b9a\u304c\u3067\u304d\u308b\u3089\u3057\u3044\uff0e\n$ dpkg -l|egrep -i "ntp|chrony"\r\n$ systemctl -a | grep -i ntp\r\n\n\u4eca\u306e\u72b6\u614b\u3092\u78ba\u8a8d\n$ timedatectl status\r\n Local time: Wed 2017-10-25 02:01:14 JST\r\n Universal time: Tue 2017-10-24 17:01:14 UTC\r\n RTC time: n/a\r\n Time zone: Asia/Tokyo (JST, +0900)\r\n Network time on: yes\r\nNTP synchronized: yes\r\n RTC in local TZ: no\r\n\nNTP\u540c\u671f\u3092\u7121\u52b9\u306b\u3057\u3066\u307f\u308b\n$ sudo timedatectl set-ntp false\r\n\n\u7121\u52b9\u306b\u306a\u3063\u305f( Network time on: no )\n\u518d\u8d77\u52d5\u3059\u308b\u3068 NTP synchronized \u3082 no \u306b\u3082\u306a\u308b\uff0e\n$ timedatectl status\r\n Local time: Wed 2017-10-25 02:01:39 JST\r\n Universal time: Tue 2017-10-24 17:01:39 UTC\r\n RTC time: n/a\r\n Time zone: Asia/Tokyo (JST, +0900)\r\n Network time on: no\r\nNTP synchronized: yes\r\n RTC in local TZ: no\r\n\n\u304a\u307e\u3051\n\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u78ba\u8a8d\n$ timedatectl list-timezones | grep -i tokyo\r\nAsia/Tokyo\r\n\n\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a\n$ sudo timedatectl set-timezone\r\n\n\u4efb\u610f\u306entp server\u306e\u6307\u5b9a\ndhcpd\u304b\u3089\u6e21\u3063\u3066\u304d\u305f\u3082\u306e\uff0e\nhdcpd\u306b\u7121\u3044\u5834\u5408 /etc/systemd/timesyncd.conf\n\u306e NTP \u3068 FallbackNTP\n\u74b0\u5883\nRaspbian stretch lite 2017-09-07(\u672aupdate)\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID: Raspbian\r\nDescription: Raspbian GNU/Linux 9.1 (stretch)\r\nRelease: 9.1\r\nCodename: stretch\r\n$ uname -a\r\nLinux raspberrypi 4.9.41+ #1023 Tue Aug 8 15:47:12 BST 2017 armv6l GNU/Linux", "date_published": "2017-10-25T02:47:45+09:00", "date_modified": "2017-10-25T03:58:43+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "ntp", "RaspberryPi", "Raspbian", "Rasbian_jessie", "Raspberry Pi" ] } ] }