vaheeD khoshnouD

linux, mikrotik, macosx

Fedora – Time Synchronization and timezone update

Written by vaheeD on December 28, 2012
4.00 avg. rating (84% score) - 1 vote

#!/bin/bash
mkdir -p /usr/src/timezones
cd /usr/src/timezones
wget ftp://elsie.nci.nih.gov/pub/tzdata2009s.tar.gz
tar zxf tzdata2009s.tar.gz
zic -d zoneinfo asia
/bin/cp -r ./zoneinfo/* /usr/share/zoneinfo/
ln -sfn /usr/share/zoneinfo/Asia/Tehran /etc/localtime
cat < /etc/ntp/step-tickers
0.pool.ntp.org
1.pool.ntp.org
2.pool.ntp.org
EOF
chkconfig --level 3 ntpd on
service ntpd stop > /dev/null
ntpdate -v 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org
hwclock -w
service ntpd start
cd -
4.00 avg. rating (84% score) - 1 vote

Posted Under: Linux

About vaheeD

Leave a Reply

Your email address will not be published. Required fields are marked *

Protected by WP Anti Spam