{"id":2434,"date":"2019-07-14T13:22:36","date_gmt":"2019-07-14T04:22:36","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=2434"},"modified":"2019-07-14T13:22:38","modified_gmt":"2019-07-14T04:22:38","slug":"post-2434","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2019\/07\/14\/post-2434\/","title":{"rendered":"Ubuntu \u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a"},"content":{"rendered":"\n<p>Ubuntu\u3067\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a\u3092CLI\u3067\u5909\u66f4\u3059\u308b\u3068\u304d\u306e\u624b\u9806\u3002GUI\u304c\u4f7f\u3048\u308b\u306e\u306a\u3089\u3070\u3001GUI\u3067\u3084\u3063\u305f\u65b9\u304c\u697d\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u3001timedatectl\u30b3\u30de\u30f3\u30c9\u3067\u73fe\u5728\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u304c\u3069\u3053\u306a\u306e\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n\n\n\n<pre>\n~$ timedatectl\n                      Local time: Tue 2019-06-25 06:01:14 UTC\n                  Universal time: Tue 2019-06-25 06:01:14 UTC\n                        RTC time: Tue 2019-06-25 06:01:15\n                       Time zone: Etc\/UTC (UTC, +0000)\n       System clock synchronized: yes\nsystemd-timesyncd.service active: yes\n                 RTC in local TZ: no\n<\/pre>\n\n\n\n<p>\u6b21\u306b\u3001&#8221;timedatectl list-timezones&#8221;\u3067\u3001\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3092\u8868\u793a\u3055\u305b\u3001\u4e2d\u304b\u3089\u9078\u3076\u3002\u91cf\u304c\u591a\u3044\u306e\u3067\u3001grep\u306a\u3069\u3092\u4f7f\u3063\u3066\u3042\u308b\u7a0b\u5ea6\u7d5e\u308a\u8fbc\u3080\u3068\u3088\u3044\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u3001&#8221;timedatectl set-timezone \u30bf\u30a4\u30e0\u30be\u30fc\u30f3&#8221; \u3067\u3001\u5909\u66f4\u5f8c\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3092\u5909\u66f4\u3059\u308b\u3002\u6210\u529f\u3057\u305f\u304b\u3069\u3046\u304b\u306e\u53cd\u5fdc\u306f\u306a\u3044\u305f\u3081\u3001\u5b9f\u884c\u5f8c\u306b\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n\n\n\n<pre>\n~$ sudo timedatectl set-timezone America\/Los_Angeles\n~$ \n~$ timedatectl\n                      Local time: Mon 2019-06-24 23:02:41 PDT\n                  Universal time: Tue 2019-06-25 06:02:41 UTC\n                        RTC time: Tue 2019-06-25 06:02:42\n                       Time zone: America\/Los_Angeles (PDT, -0700)\n       System clock synchronized: yes\nsystemd-timesyncd.service active: yes\n                 RTC in local TZ: no\n~$\n<\/pre>\n\n\n\n<p>\u8a2d\u5b9a\u4f8b\uff08sudo\u3092\u4ed8\u3051\u305a\u306b\u5b9f\u884c\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u9014\u4e2d\u3067\u5931\u6557\u3082\u3057\u3066\u3044\u308b\uff09<\/p>\n\n\n\n<pre>\nubuntu@ip-10-0-0-122:~$\nubuntu@ip-10-0-0-122:~$ timedatectl list-timezones | grep -i america\/Los\nAmerica\/Los_Angeles\nubuntu@ip-10-0-0-122:~$\nubuntu@ip-10-0-0-122:~$\nubuntu@ip-10-0-0-122:~$\nubuntu@ip-10-0-0-122:~$ timedatectl\n                      Local time: Tue 2019-06-25 06:01:14 UTC\n                  Universal time: Tue 2019-06-25 06:01:14 UTC\n                        RTC time: Tue 2019-06-25 06:01:15\n                       Time zone: Etc\/UTC (UTC, +0000)\n       System clock synchronized: yes\nsystemd-timesyncd.service active: yes\n                 RTC in local TZ: no\nubuntu@ip-10-0-0-122:~$\nubuntu@ip-10-0-0-122:~$\nubuntu@ip-10-0-0-122:~$ timedatectl list-timezones | grep -i america\/Los\nAmerica\/Los_Angeles\nubuntu@ip-10-0-0-122:~$\nubuntu@ip-10-0-0-122:~$ timedatectl set-timezone America\/Los_Angeles\n==== AUTHENTICATING FOR org.freedesktop.timedate1.set-timezone ===\nAuthentication is required to set the system timezone.\nAuthenticating as: Ubuntu (ubuntu)\nPassword:\npolkit-agent-helper-1: pam_authenticate failed: Authentication failure\n==== AUTHENTICATION FAILED ===\nFailed to set time zone: Access denied\nubuntu@ip-10-0-0-122:~$ sudo timedatectl set-timezone America\/Los_Angeles\nubuntu@ip-10-0-0-122:~$\nubuntu@ip-10-0-0-122:~$ timedatectl\n                      Local time: Mon 2019-06-24 23:02:41 PDT\n                  Universal time: Tue 2019-06-25 06:02:41 UTC\n                        RTC time: Tue 2019-06-25 06:02:42\n                       Time zone: America\/Los_Angeles (PDT, -0700)\n       System clock synchronized: yes\nsystemd-timesyncd.service active: yes\n                 RTC in local TZ: no\nubuntu@ip-10-0-0-122:~$\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu\u3067\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a\u3092CLI\u3067\u5909\u66f4\u3059\u308b\u3068\u304d\u306e\u624b\u9806\u3002GUI\u304c\u4f7f\u3048\u308b\u306e\u306a\u3089\u3070\u3001GUI\u3067\u3084\u3063\u305f\u65b9\u304c\u697d\u3002 \u307e\u305a\u306f\u3001timedatectl\u30b3\u30de\u30f3\u30c9\u3067\u73fe\u5728\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u304c\u3069\u3053\u306a\u306e\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3002 ~$ timedatect [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[110],"class_list":["post-2434","post","type-post","status-publish","format-standard","hentry","category-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/2434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=2434"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/2434\/revisions"}],"predecessor-version":[{"id":2435,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/2434\/revisions\/2435"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=2434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=2434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=2434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}