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

From: Larry Starr (starrl_at_dragonone.localdomain)
Date: 03/06/05


Date: 5 Mar 2005 23:24:46 -0600

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>

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



Relevant Pages

  • Re: NTP Server
    ... What is controlling how often time server updated by the ntpdate ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • [x86 setup 33/33] Remove old i386 setup code
    ... This removes the old i386 setup code. ... deleted file mode 100644 ... * BIOS Enhanced Disk Drive support ... * Command line option parsing, Matt Domsch, November 2004 ...
    (Linux-Kernel)
  • [x86 setup 33/33] Remove old i386 setup code
    ... This removes the old i386 setup code. ... deleted file mode 100644 ... * BIOS Enhanced Disk Drive support ... * Command line option parsing, Matt Domsch, November 2004 ...
    (Linux-Kernel)
  • Re: Weird XP Start-Up Problem - Please help!
    ... There's a FIXMBR command, never had a problem running either but if your getting a warning you may want to look up or tell us the warning first. ... "Debi" wrote in message ... the only reason why I flashed the BIOS to the latest version was to hopefully rectify this 'fault' otherwise I would have left well alone. ... reboot I get the standard "Sorry for the inconvenience" screen to ...
    (microsoft.public.windowsxp.general)
  • RE: time difference, cannot log on
    ... Troubleshooting Time-Related Errors ... After you set the SNTP time server as authoritative, ... More information about the net time command is available at a command ...
    (microsoft.public.win2000.active_directory)