Last active
August 29, 2015 14:22
Revisions
-
mortenbra revised this gist
Jun 13, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ mv /etc/localtime /etc/localtime.bkp cp /usr/share/zoneinfo/Europe/Oslo /etc/localtime # install NTP yum install ntp -y chkconfig ntpd on cat >> /etc/ntp.conf << EOF server 0.no.pool.ntp.org -
mortenbra created this gist
May 28, 2015 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ # setup Network Time Protocol (NTP) # see http://www.uptimemadeeasy.com/networking/setup-ntp-on-centos-linux/ # check current date/time date # setup time zone mv /etc/localtime /etc/localtime.bkp cp /usr/share/zoneinfo/Europe/Oslo /etc/localtime # install NTP yum install ntp chkconfig ntpd on cat >> /etc/ntp.conf << EOF server 0.no.pool.ntp.org server 1.no.pool.ntp.org server 2.no.pool.ntp.org server 3.no.pool.ntp.org EOF cat >> /etc/ntp/step-tickers << EOF 0.no.pool.ntp.org 1.no.pool.ntp.org 2.no.pool.ntp.org 3.no.pool.ntp.org EOF service ntpd restart # wait 5-10 minutes and check current date/time again date