Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am looking to point our linux redhat ES4 to the NTP (time synchronization). Where do I start?
Btw, we have updated the DST (installed tzdata-2006-1.EL4.noarch.rpm and then copied /usr/share/zoneinfo/PST8PDT to /etc/localtime)to four of our linux servers last year, but only 2 works. The other 2 don’t work at all (the same steps were taken).
The servers were never rebooted at all for all four.
When I ran zdump -v /etc/localtime |grep 2008, I get the following (it does show the correct time frame):
[root@lnx2 etc]# zdump -v /etc/localtime |grep 2008
/etc/localtime Sun Mar 9 09:59:59 2008 UTC = Sun Mar 9 01:59:59 2008 PST isdst=0 gmtoff=-28800
/etc/localtime Sun Mar 9 10:00:00 2008 UTC = Sun Mar 9 03:00:00 2008 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Nov 2 08:59:59 2008 UTC = Sun Nov 2 01:59:59 2008 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Nov 2 09:00:00 2008 UTC = Sun Nov 2 01:00:00 2008 PST isdst=0 gmtoff=-28800
I do notice the two servers that work have an extra file (locales.conf), but they again, the server at home do not have the extra file. Not sure if it make any differences.
As you've seen, /etc/localtime is what determines how the time-zone is handled. I usually use a symbolic link (the ln -s command) to establish this file as a "link to" the appropriate file in /usr/share/zoneinfo, but that's just me.
Most frequently, a "daemon" process called ntpd is used to automatically synchronize the clock with a time-server. There's also a console-command ntpdate that the root-user can use.
Either way, it's probably going to take some disto-specific setup on your part...