Re: Stupid question of the day: Setting the time....

From: Sir Jackery (root_at_jackery.com)
Date: 03/07/05

  • Next message: Enkidu: "Re: Running Available Bandwidth Test"
    Date: Sun, 6 Mar 2005 21:43:50 -0800
    
    

    On 5 Mar 2005, Larry Starr wrote:

    > In article <422a78a2$1@news2.actrix.gen.nz>, Enkidu wrote:
    > > Nathan wrote:
    > >> This is sort of a silly question, but i cant seem to find the answer.
    > >>
    > >> From the console, how do i set the date/time in linux? ita RH8 if that
    > >> makes a difference. I know rebooting and changing the time in the bios
    > >> setup is one way, but im not actually at the server, i just want to ssh
    > >> in, and issue a command to change the time. Its only a few min off, i
    > >> just want to correct it.
    > >>
    > > Eeek! You don't change the date and time by using the BIOS!
    > > That's crude!
    > >
    > > Set your timezone using whatever process your distro uses.
    > > (In debian run "tzconfig"). Set the date with the date
    > > comman ("date MMDDhhmm"). Set your system to use UTC if you
    > > wish (I do. edit /etc/default/rcS in Debian), and finally
    > > write the date/time to the hardware clock (hwclock --systohw
    > > --utc) and you are done.
    > >
    > > Cheers,
    > >
    > > Cliff
    > >
    >
    > If you just want to correct the time, every once in a while, you
    > may want to take a look at the "ntpdate" command. No need to set
    > up ntp, just find a time server and, while connected to the
    > internet:
    > ntpdate <timeserver.url>

    This is the correct way to set the time, if you are running a server that
    communicates with other systems and utilizes date and time you should
    never set the time by hand. You should use ntp, try ntpdate -u -v
    clock.psu.edu

    You can replace clock.psu.edu with your favorite time server, but if you
    are planning to automate the task in a cron/at it is a good idea to email
    the server admin and let them know first.

    -jackery

    >
    > Hope this helps.
    >
    > ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    > http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
    > ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
    >


  • Next message: Enkidu: "Re: Running Available Bandwidth Test"

    Relevant Pages

    • Re: NTP time service not syncing
      ... NTP connections are outbound only and my firewall permits outbound connections on any port. ... You only need to open your firewall if you want your time server to be available to everyone on the whole Internet. ... the network time protocol Version-4 The newest version of NTP. ...
      (microsoft.public.windows.server.general)
    • RE: Time configuration
      ... you may have a time server in the DMZ get time from the outside NTP ... Microsoft Online Partner Support ...
      (microsoft.public.windows.server.general)
    • Re: Local NTP for 5 Subnets
      ... You can use our Time Server Monitor application which allows you to change a number of commandline parameters for your NTP service. ... Meinberg radio clocks: 25 years of accurate time worldwide ...
      (comp.protocols.time.ntp)
    • Re: NTP time service not syncing
      ... The newest version of NTP. ... The time server is listening on UDP port 123. ... the simple network time protocol Version-4. ...
      (microsoft.public.windows.server.general)
    • Re: Weather Channel NTP Admin?
      ... > I found the original Stratum 1 time server list in Google cache and the ... > So nothing was omitted when the lists migrated to the NTP Public Services ...
      (comp.protocols.time.ntp)