{"id":368,"date":"2012-10-05T16:40:55","date_gmt":"2012-10-05T14:40:55","guid":{"rendered":"http:\/\/songoku.homelinux.com\/wordpress\/?p=368"},"modified":"2012-10-05T16:40:55","modified_gmt":"2012-10-05T14:40:55","slug":"setting-timezone-and-synchronizing-time-with-ntp-centosrhel","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=368","title":{"rendered":"Setting timezone and synchronizing time with NTP (CentOS\/RHEL)"},"content":{"rendered":"<p>\n\tHello,\n<\/p>\n<p>\n\tfirst of all i explain how you can set your timezone through the terminal. This is quite easy:\n<\/p>\n<p>\n\tcheck the available timezones on your machine with:<br \/>\n\t<em># ls \/usr\/share\/zoneinfo<\/em>\n<\/p>\n<p>\n\tand copy them over to \/etc\/localtime (e.g. Europe\/Luxembourg)<br \/>\n\t<em># cp \/usr\/share\/zoneinfo\/Europe\/Luxembourg \/etc\/localtime<\/em>\n<\/p>\n<p>\n\tdone.\n<\/p>\n<p>\n\tNext step is the syncing with an ntp server. First check is ntp is installed on your system with<br \/>\n\t<em># which ntp<\/em>\n<\/p>\n<p>\n\tif it&#39;s not installed you get nothing in return. so install it with:<br \/>\n\t<em># yum install ntp<\/em>\n<\/p>\n<p>\n\tthe config file which is used for the ntp is \/etc\/ntp.conf. There you can configure the time servers you want to use. For a list of servers visit www.ntp.org or go&nbsp;<a href=\"http:\/\/support.ntp.org\/bin\/view\/Servers\/NTPPoolServers\" target=\"_blank\">here<\/a>. Here is an example for Luxembourg time servers, remove the old ones and insert the following lines instead:\n<\/p>\n<p>\n\tserver 2.lu.pool.ntp.org<br \/>\n\tserver 3.europe.pool.ntp.org<br \/>\n\tserver 0.europe.pool.ntp.org\n<\/p>\n<p>\n\t<u>Note:<\/u><br \/>\n\tInside the ntp.conf you find 2 lines starting with &quot;server &#8230; # local time&quot; and &quot;fudge&quot;. Comment out these lines as they can prevent proper syncing.\n<\/p>\n<p>\n\tNow start the ntp daemon and set it up at boot time:<br \/>\n\t<em># \/etc\/init.d\/ntp start<br \/>\n\t# chkconfig ntp on<\/em>\n<\/p>\n<p>\n\tHope this helps someone out there!<br \/>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello, first of all i explain how you can set your timezone through the terminal. This is quite easy: check the available timezones on your machine with: # ls \/usr\/share\/zoneinfo and copy them over to \/etc\/localtime (e.g. Europe\/Luxembourg) # cp \/usr\/share\/zoneinfo\/Europe\/Luxembourg \/etc\/localtime done. Next step is the syncing with an ntp server. First check is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-368","post","type-post","status-publish","format-standard","hentry","category-linuxunix","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=368"}],"version-history":[{"count":0,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/368\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}