LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 04-07-2011, 08:16 AM   #1
zaeem
Member
 
Registered: Jan 2010
Posts: 118

Rep: Reputation: 15
Clock synchronization


Dear All,

Can anybody let me know command about how to uncheck option to synchronize clock with UTC. This option is being asked at installation time. I couldn't remember text correctly but above text will give you hint. Please let me know how can I uncheck that option using command.

Thanks in advance.
 
Old 04-07-2011, 08:42 AM   #2
technodweeb
Member
 
Registered: Dec 2006
Location: South Dakota
Distribution: Red Hat, Ubuntu
Posts: 32

Rep: Reputation: 2
Smile stopping ntp

I did not see what flavor of Linux you are running so I will just give you info for Red Hat 5. Run service ntpd stop as root to shut it off. Use chkconfig for the same ntpd service to stop it from running at boot.
 
Old 04-07-2011, 09:06 AM   #3
zaeem
Member
 
Registered: Jan 2010
Posts: 118

Original Poster
Rep: Reputation: 15
I am using CentOS 5.5. My hwclock shos correct time and date whereas 'date' command is showing one hour behind the hwclock time. Please let me know command to update system date with hwclock.
 
Old 04-07-2011, 01:27 PM   #4
whk
Member
 
Registered: Jun 2005
Posts: 202

Rep: Reputation: 35
date set

setup timezone first

rm /etc/localtime

ln -s /usr/share/zoneinfo/GMT /etc/localtime

or

# cd /etc
# ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime

or
# sudo ln -s /usr/share/zoneinfo/America/New_York /etc/localtime



check date
If not correct get correct time on the web with

ntpdate pool.ntp.org
check again with date. This should work if not then it's not good.

I don't recoment this and I don't know why I copied this. But your
last resort if not correct is to set it manually with

$ sudo date MMDDhhmmYYYY

Example:

$ sudo date 122317212011

MM - Two digit month number
DD - Two digit date
hh - Two digit 24 hour system hour
mm - Two digit minute
YYYY - Four digit year code


Also you should check out DST or summer time.
hth

MHO
I don't mess with hwclock. You can make too many mistakes.
 
Old 04-08-2011, 04:33 AM   #5
zaeem
Member
 
Registered: Jan 2010
Posts: 118

Original Poster
Rep: Reputation: 15
Deaar whk,

Thanks dear for suggestions. I used command hwclock --hctosys --local and now my 'date' command and 'hwclock' command showing same date,time and timezone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I permanently fix my clock synchronization problem? gr33d Linux - Newbie 11 03-29-2010 02:06 PM
Java Clock Synchronization in a Distributed System manolakis Programming 5 02-03-2009 09:33 AM
hardware-clock synchronization fariborz Programming 3 05-02-2008 07:54 AM
clock synchronization rasejo Linux - General 12 07-12-2007 06:53 PM
email synchronization (not file synchronization) Moebius Linux - Software 6 10-05-2004 05:31 AM


All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration