-   Linux - Newbie (
-   -   How to define an NTP server : (

ecalleo 07-14-2012 11:03 PM

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 .


michaelk 07-15-2012 05:57 AM

Welcome to LinuxQuestions.

The error means that ntp is not running on the local computer.
What linux distribution/version are you running.

ecalleo 07-15-2012 09:40 AM

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
* 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

michaelk 07-15-2012 11:44 AM

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.

All times are GMT -5. The time now is 06:44 PM.