Home > Uncategorized > How to sync date/time in Ubuntu Intrepid

How to sync date/time in Ubuntu Intrepid

In order to keep my servers always showing the correct date/time I use a little software called chrony and make sure I’m using the correct time zone.

All the actions below need superuser privileges

To install it simply use apt-get:

$ apt-get install chrony

Once you’ve installed chrony you need to select your current time zone:

$ tzselect

To make sure it is selected on every boot I just export the TZ environment variable in my /etc/rc.local

$ vi /etc/rc.local

And add the following lines:
# Export timezone
TZ=’Europe/Brussels’; export TZ

I found doing the above was not enough, so I also edited my /etc/timezone file and added the correct time zone there:

$ echo "Europe/Brussels" > /etc/timezone

And still it wasn’t enough, so I reconfigured the package tzdata

$ dpkg-reconfigure tzdata

And finally that did it! To make sure it would still be correct on a future reboot I rebooted my machine:

$ reboot
http://blog.melimato.com/wp-content/plugins/sociofluid/images/digg_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/reddit_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/stumbleupon_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/delicious_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/technorati_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/google_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/myspace_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/facebook_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/yahoobuzz_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/twitter_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/meneame_24.png
Categories: Uncategorized Tags: , , , , , ,
  1. May 10th, 2009 at 23:04 | #1

    great post hope to see some additional comments next Tuesday…kisses

  2. May 13th, 2009 at 18:38 | #2

    Thanks for posting, definitely going to subscribe! See you on my reader.

  3. June 16th, 2009 at 07:46 | #3

    Hi! I like your srticle and I would like very much to read some more information on this issue. Will you post some more?

  4. July 6th, 2009 at 21:14 | #4

    Where did you take from such kind of information? Can you give me the source?

  1. No trackbacks yet.

Comment moderation is enabled. Your comment may take some time to appear.

Additional comments powered by BackType