LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-14-2012, 11:03 PM   #1
ecalleo
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
How to define an NTP server :


I am trying to verify if the NTP server is ok .
then I tried :
# ntpq -p

but answer is :
ntpq:read:connection refused .

however I am sure the NTP server is working , because other server is having the SYNC signal OK .
and the ping is working to the ntp server .

Regards
 
Old 07-15-2012, 05:57 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,941

Rep: Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825
Welcome to LinuxQuestions.

The error means that ntp is not running on the local computer.
What linux distribution/version are you running.
 
Old 07-15-2012, 09:40 AM   #3
ecalleo
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks Michael
I was doing the command and got the error as normal user ; however when I login as root the command works ok
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*172.16.2.1 66.187.233.4 2 u 339 1024 377 1.333 0.223 0.211

# date
Sun Jul 15 06:27:23 CEST 2012

# date -u
Sun Jul 15 04:27:29 UTC 2012

but now I need to change from CEST to CST now .

Best regards

Leonardo Calle
 
Old 07-15-2012, 11:44 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,941

Rep: Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825
There is lots of information on the internet on how to change timezones. Depending on distribution and desktop you are running it might be as easy as right clicking on the clock or settings in the administration menu and selecting the correct timezone.

Doing it via the command line is a bit more difficult.
 
  


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
Local NTP server configuration on RHEL 6 Virtual server assistance needed aalinare Linux - Newbie 5 07-05-2012 07:58 AM
Local NTP server configuration on RHEL 6 Virtual server assistance needed aalinare Linux - Software 1 07-03-2012 09:42 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM
NTP cannot use server, NTP -d can jerryvapps Linux - Newbie 0 07-28-2004 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:13 AM.

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