Solved

How to setup NTP time server and sync time in SLES 11?

Posted on 2010-11-30
4
4,557 Views
Last Modified: 2012-08-13
This is using a SUSE Linux enterprise 11 server. I am thinking to setup this server as time server for other workstations to sync from. And at the same time, sync this server with Internet time server, how to do that?
0
Comment
Question by:Balack
  • 2
4 Comments
 
LVL 3

Expert Comment

by:chrios
Comment Utility
This is not specific to SUSE, but usually you need to install ntpd, and in the file /etc/ntp.conf add one or more server lines (where you want to get the time from), and add a broadcast line to your subnet.

# list of servers to get the time from
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org

# if your network is using 192.168.1.x/255.255.255.0
broadcast 192.168.1.255

Open in new window


There are of course other settings in ntp.conf aswell, but server and broadcast is usually what you need to look at to get started.
0
 
LVL 5

Expert Comment

by:maques
Comment Utility
Install and configure ntpd (yast/network services/ntp servers) - it is both client and server.
Setting up "as client" - eg. to synchronize to internet - should be very easy.
Then set up to provide time services too, see wiki below "be a time server" section.
Make sure you run as daemon, not just at startup, firewall not blocking ntp [UDP 123], etc.

Best reference (relates to gentoo), but apart from that should be the same:
http://en.gentoo-wiki.com/wiki/NTP

simple setting up as client, short guide:
http://www.linuxquestions.org/questions/suse-novell-60/ntp-time-servers-with-suse-10-2-a-538419/
0
 

Accepted Solution

by:
Balack earned 0 total points
Comment Utility
have followed all the steps. May be we overlooked are Novell AppArmor can blocked the ntpd through ntp profile. Keep on getting writing to /var/lib/ntp/drift/ntp.drift.TEMP permission denied problem. After disabled apparmor, the whole thing works.
0
 

Author Closing Comment

by:Balack
Comment Utility
It really works
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now