Fedora – Time Synchronization and timezone update
Written by vaheeD on December 28, 2012
#!/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 -