LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-25-2006, 09:45 PM   #1
digity
Member
 
Registered: Apr 2005
Posts: 105

Rep: Reputation: 15
Need help setting up LAN Time server


I need help setting up a very simple time (NTP) server just for my home network. I've installed the ntp 4.2.0a package for Ubuntu, but not sure how to configure it (/etc/ntp.conf) to run independently of the Internet (I have no net access currently)

I just want all clocks on all my machines synched up (especially my XBOX, it resets alot when it boots up)

I'm running Ubuntu 6.06 LTS Flight 7.

TIA
 
Old 05-25-2006, 11:56 PM   #2
digity
Member
 
Registered: Apr 2005
Posts: 105

Original Poster
Rep: Reputation: 15
i believe i've figured it out, got my xbox to sync. here's what my ntp.conf looks like

Code:
logfile /var/log/ntpd
driftfile /var/lib/ntp/ntp.drift

# server ntp.ubuntu.com

server 127.127.1.0
fudge 127.127.1.0 stratum 10

# restrict default ignore
restrict default kod notrap nomodify nopeer noquery

broadcast localhost
i just have to figure out how to get ntp to start automatically at boot

any ideas?
 
Old 05-26-2006, 12:35 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
I found this page about starting/stopping services helpful. It doesn't cover Ubuntu directly, but it does talk about Debian, so it's probably applicable.

http://linuxhelp.blogspot.com/2006/0...during_01.html

There's also rcconf, an ncurses based tool for setting up services quickly. It's the most convenient way I've found. You'll probably have to install the package first though.

A year or more ago I used one of the gnome-system-tools to do it, but it stopped working on my system for some reason, so I removed the package and switched to the above.
 
Old 05-26-2006, 03:27 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You have used the address 127.127.1.0. The localhost address is normally 127.0.0.1 and this may cause problems since you are trying to sync time locally. Check your syslog to see if it is resolving the address 127.127.1.0.

Last edited by TigerOC; 05-26-2006 at 03:32 AM.
 
Old 06-15-2006, 06:43 PM   #5
digity
Member
 
Registered: Apr 2005
Posts: 105

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TigerOC
You have used the address 127.127.1.0. The localhost address is normally 127.0.0.1 and this may cause problems since you are trying to sync time locally. Check your syslog to see if it is resolving the address 127.127.1.0.
actually it has to be 127.127.1.0, not 127.0.0.1. something to do with how ntp gets the date/time from the local machine. 127.0.0.1 doesn't work, but 127.127.1.0 does.
 
  


Reply



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
Need help setting up LAN DNS server digity Linux - Networking 4 07-01-2006 06:49 AM
Help in setting up a DNS LAN server Ronin_tekorei Linux - Networking 15 05-30-2006 06:44 AM
setting up a apache server on lan dipen_linux Linux - Networking 1 06-10-2005 05:03 AM
Setting up a server for home LAN tawalker Linux - Software 0 04-28-2004 10:57 AM
setting up a LAN server Chypmunk Linux - Networking 1 05-28-2003 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:23 AM.

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
Open Source Consulting | Domain Registration