Re: Stupid question of the day: Setting the time....
From: Sir Jackery (root_at_jackery.com)
Date: 03/07/05
- Previous message: Sir Jackery: "Re: Mouse sometimes freezes using a KVM switch with a 2.6.x Kernel"
- In reply to: Larry Starr: "Re: Stupid question of the day: Setting the time...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 =----
>
- Previous message: Sir Jackery: "Re: Mouse sometimes freezes using a KVM switch with a 2.6.x Kernel"
- In reply to: Larry Starr: "Re: Stupid question of the day: Setting the time...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|