LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 08-12-2003, 06:42 PM   #1
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
synchronizing time on home network


I have smoothwall set up as my router/gateway/internet connection. I just reallized that it has a Time page for getting the time from the internet.

In order to have that time propagate through the other linux and windows pc's on my little newtork, does the smoothwall machine then have to act as an ntpd server and the other machines look to it as an ntp server or is it more normal to have each machine get the time directly from the internet. And will samba be required to pass that time on to the windows mchines?

(Seems like I had a similar question previously, but I couldn't find it in my search.)

thanks...
 
Old 08-12-2003, 09:03 PM   #2
joeface
LQ Newbie
 
Registered: Aug 2003
Location: NJ
Distribution: Fedora
Posts: 17

Rep: Reputation: 0
depends on what you really want to do. at one time i ran a ntp daemon on one of my internal boxes, and it worked fine...until the day that all of the pc clocks on my network got hosed because i had to do maintainence on the ntpd box.

i settled for using Dimension 4 for my windows clients:
http://www.thinkman.com/dimension4/index.html

...and ntpdate, running as a cronjob every fifteen minutes for my linux boxes.

it's easier because now all the machines need is a net connection.
 
Old 08-12-2003, 10:46 PM   #3
akaBeaVis
Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
I use this for my windows machines, not sure how it would be on XP as I don't have or intend to have it. ATS is free and works well. It acts as either a client or server. Personally I have each box on the network get it's own time from the internet be they linux or windows, in the same way and for the same reasons as joe stated, here's the link:

http://www.analogx.com/contents/down...etwork/ats.htm
 
Old 08-14-2003, 01:49 PM   #4
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Im using a shell script on my machines to do this. The script starts ntpd on my firewall every hour syncs the time and then stops ntpd on the firewall.

#---------------------------------------------
#!/bin/bash
ssh firewallhost /etc/init.d/ntpd start>/dev/null
sleep 305
/usr/sbin/ntpdate 10.0.23.1 >>/var/time.log 2>&1
/sbin/clock -w -u >>/var/time.log 2>&1
rm /etc/adjtime
/sbin/clock -w -u >>/var/time.log 2>&1

ssh firewallhost /etc/init.d/ntpd stop>/dev/null
#----------------------------------------------


Its a modified ntpdate.sh
You have to to an ssh key exchange for this to work. This way you dont have to run client and server on the same machine continously and port 123 is only intermittently open.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 9.2 network locks up from time to time Mugatu Mandriva 9 12-23-2006 05:18 PM
Synchronizing time depam Linux - Software 2 10-10-2005 07:11 AM
Time synchronizing utility jkcunningham Linux - Software 5 11-13-2004 03:17 AM
synchronizing My Documents with home - advisable? kenji1903 Linux - Networking 4 08-06-2004 03:19 AM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 10:02 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration