Linux-Noob Forums
Time update - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: How Do I? (https://www.linux-noob.com/forums/forum-60.html)
+--- Thread: Time update (/thread-4047.html)

Pages: 1 2


Time update - Guest - 2003-12-12

I'm normally used to using FreeBSD, which has the ntpdate command to update the server's time to match a time server. However, that command doesn't exist on redhat. What's the equivalent? I badly need to update the time on my webserver.



Time update - anyweb - 2003-12-12


use ntpd

 

do a man ntpd for more info

 

more info here

 

[/url][url=http://www.siliconvalleyccie.com/linux-hn/ntp.htm]http://www.siliconvalleyccie.com/linux-hn/ntp.htm

 

cheers

 

anyweb




Time update - Guest - 2003-12-12


[root@web root]# man ntpd

No manual entry for ntpd

[root@web root]# ntpd now.okstate.edu

bash: ntpd: command not found

[root@web root]#




Time update - anyweb - 2003-12-12


are you logged in as root using su - ?

 

thats

 

su -

 

what version of redhat are you using ?

 

check poackage manager for installing the ntpd rpm

 

or do a locate ntpd

 

cheers




Time update - Guest - 2003-12-12


[root@web etc]# su -

[root@web root]# ntpd

bash: ntpd: command not found

[root@web root]# locate ntpd

[root@web root]# uname -a

Linux web.snagged.net 2.4.18-27.7.x #1 Fri Mar 14 06:44:53 EST 2003 i686 unknown

 

i think its redhat 9.0

 

where would i find the package manager?




Time update - anyweb - 2003-12-12


try

 

up2date ntpd

 

or if you have a gui (X) click on the red hat, system settings/add remove applications

 

that will bring up package manager

 

cat /etc/redhat-release will tell you what version of redhat you are using

 

cheers

 

anyweb




Time update - Guest - 2003-12-12


[root@web root]# up2date ntpd

Error communicating with server. The message was:

SSL_connect error

You have new mail in /var/spool/mail/root

[root@web root]#

 

 

[root@web root]# cat /etc/redhat-release

Red Hat Linux release 7.2 (Enigma)

[root@web root]#

 

 

I can't do a GUI because i'm SSH'd into a remote location




Time update - anyweb - 2003-12-12


ok you re using redhat 7.2

 

you'll need to find the rpm for ntpd

 

the ssl error is becuase you need to update your up2date ssl certificate

 

more info on [/url]http://rhn.redhat.com

 

the rpms for redhat 7.2 are at

 

[url=http://ftp.redhat.com/pub/redhat/linux/7.2...86/RedHat/RPMS/]http://ftp.redhat.com/pub/redhat/linux/7.2...86/RedHat/RPMS/

 

cheers




Time update - Guest - 2003-12-12


I updated the up2date SSL certificate, then tried to up2date ntpd.

 

 

[root@web root]# up2date ntpd

 

Fetching package list for channel: redhat-linux-i386-7.2...

########################################

 

Fetching Obsoletes list for channel: redhat-linux-i386-7.2...

########################################

 

Fetching rpm headers...

None of the packages you requested were found, or they are already updated.

[root@web root]# nptd

bash: nptd: command not found




Time update - anyweb - 2003-12-12

get the rpm here - [/url][url=http://ftp.redhat.com/pub/redhat/linux/7.2...86/RedHat/RPMS/]http://ftp.redhat.com/pub/redhat/linux/7.2...86/RedHat/RPMS/