Linux-Noob Forums

Full Version: Time update
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

Guest

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.

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

Guest


[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]#


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

Guest


[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?


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

Guest


[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


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

Guest


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

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/
Pages: 1 2