LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sync time from windows server (https://www.linuxquestions.org/questions/linux-software-2/sync-time-from-windows-server-588789/)

ust 10-02-2007 01:00 AM

sync time from windows server
 
I would like to sync the system time from windows server to linux server , I know rdate -s may sync from other linux server , if I want from windows server , can advise what I need to do on windows side ? thx

ordealbyfire83 10-02-2007 11:34 AM

Well the best way would be getting rdate to work with Windows. If you don't have Cygwin on your Windows server, then you can follow the instructions that will allow you to get sshd up and running under Windows at http://pigtail.net/LRP/printsrv/cygwin-sshd.html

I'm actually not sure if rdate is installed by default. I don't have a Windows computer handy to check.

The instructions are written for XP but I used them equally well with 2000. If you have 2003 then follow the link in the 2nd paragraph on the above site. These will not work with 98 since, as far as I know, it doesn't recognize 'services' and instead uses 'background' processes (?)

When editing the environment variables you can add them as user variables (as opposed to system variables) only if
- you boot up the computer to your user account, or
- you want only your user account to be able to use sshd.
Note that all users will still have access to Cygwin though...

After you get sshd running you can log on from the linux computer, using for example ssh. Now you can synchronize the two computers the same way two linux boxes could be synchronized.

michaelk 10-02-2007 11:59 AM

I found an rdate for windows but can not vouch for how well or if it works.
http://www.contactor.se/~dast/stuff/

Even though rdate is a much simpler protocol I would use ntp instead of rdate since no extra software is required for window to become an ntp server.

ust 10-03-2007 05:01 AM

thx reply ,

I have read the above acticle , when I setup the sync time from windows server , it needs to install sth on windows , so I think it is suit for me , if I want to sync the time from internet , can advise what can I do ? thx


All times are GMT -5. The time now is 01:20 PM.