Hello Tim :) Could you please help a 'Dummy', me ? I wish to use my ISP's NTP Server to keep my PC & Linux on Local Time which is GMT +3 ____________ how can I adapt your Info to do this for me ? ........................... ntpdate -su -t 60 clock.xxxx.xxx.xxx hwclock --systohc (system clock to hardware clock) hwclock --hctosys (hardware clock to system clock) -- best :) ____________ sent on Linux ____________ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Sun, 23 Apr 2000, tabanna wrote: t> t> Hello Tim :) t> t> Could you please help a 'Dummy', me ? t> t> I wish to use my ISP's NTP Server to keep my PC & Linux t> on Local Time which is GMT +3 t> ____________ t> t> how can I adapt your Info to do this for me ? t> ........................... t> ntpdate -su -t 60 clock.xxxx.xxx.xxx t> t> hwclock --systohc (system clock to hardware clock) t> hwclock --hctosys (hardware clock to system clock) t> -- t> I'll respond to this as it was my response above with the hwclock command that brought about your question. If you use ntpdate to set the system time, you can sync the CMOS time with the following hwclock --systohc unfortunately if you have the CMOS clock set to GMT, then this isn't such a great idea as it will make the CMOS time that of the current time which isn't set to GMT. If you don't use GMT in the CMOS, then you won't have any worries with the above. If you do have the CMOS set to GMT, then you would want to do the following rather then the above: hwclock --set --date="`date -u +"%D %T"`" Which will set the CMOS time to that of the current time in universal format. For example, on my system before the above command daydream:~ # clock ; date Mon Apr 24 05:23:17 2000 -0.035332 seconds Sun Apr 23 22:23:15 PDT 2000 now I run the above command daydream:~ # hwclock --set --date="`date -u +"%D %T"`" and I check the results again to see what occured. daydream:~ # clock ; date Mon Apr 24 05:24:11 2000 -0.199838 seconds Sun Apr 23 22:24:11 PDT 2000 Note: the above requires a properly configured time system, meaning you must have selected the appropriate timezone for your location within yast otherwise the universal time will be incorrect when the above is run. t> best :) t> ____________ t> sent on Linux t> ____________ t> t> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.3+ - Kernel 2.2.14 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Gee ~ thanks :) I am thoroughly confused ~ For greece, I have set time zone with YAST as GMT +3 then, made a shell script :- ....................... ntpdate -su -t 60 server xxxx.xx /sbin/click -wu .................................. .. . . seems to work ok best :) -- ____________ sent on Linux ___________ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Sun, Apr 23, 2000 at 10:30:08PM -0700, S.Toms wrote:
On Sun, 23 Apr 2000, tabanna wrote:
t> t> Hello Tim :) t> t> Could you please help a 'Dummy', me ? t> t> I wish to use my ISP's NTP Server to keep my PC & Linux t> on Local Time which is GMT +3 t> ____________ t> t> how can I adapt your Info to do this for me ? t> ........................... t> ntpdate -su -t 60 clock.xxxx.xxx.xxx t> t> hwclock --systohc (system clock to hardware clock) t> hwclock --hctosys (hardware clock to system clock) t> -- t>
I'll respond to this as it was my response above with the hwclock command that brought about your question. If you use ntpdate to set the system time, you can sync the CMOS time with the following
hwclock --systohc
unfortunately if you have the CMOS clock set to GMT, then this isn't such a great idea as it will make the CMOS time that of the current time which isn't set to GMT. If you don't use GMT in the CMOS, then you won't have any worries with the above. If you do have the CMOS set to GMT, then you would want to do the following rather then the above:
hwclock --set --date="`date -u +"%D %T"`"
Just use: hwclock --utc --systohc -- Brad Shelton On Line Exchange http://online-isp.com -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Mon, 24 Apr 2000, Brad Shelton wrote: bs> On Sun, Apr 23, 2000 at 10:30:08PM -0700, S.Toms wrote: bs> > bs> > I'll respond to this as it was my response above with the hwclock bs> > command that brought about your question. If you use ntpdate to set the bs> > system time, you can sync the CMOS time with the following bs> > bs> > hwclock --systohc bs> > bs> > unfortunately if you have the CMOS clock set to GMT, then this isn't such bs> > a great idea as it will make the CMOS time that of the current time which bs> > isn't set to GMT. If you don't use GMT in the CMOS, then you won't have bs> > any worries with the above. bs> > If you do have the CMOS set to GMT, then you would want to do the bs> > following rather then the above: bs> > bs> > hwclock --set --date="`date -u +"%D %T"`" bs> bs> bs> Just use: bs> bs> hwclock --utc --systohc bs> Didn't know I could do that :) thanks for pointing it out, much easier to remember. bs> bs> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.3+ - Kernel 2.2.14 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (3)
-
bshelton@online-isp.com
-
tabanna@aig.forthnet.gr
-
tomas@primenet.com