Solved

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

Posted on 2010-11-30
4
5,078 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Expert Comment

by:chrios
ID: 34237017
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
ID: 34237077
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
ID: 34275791
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
ID: 34308517
It really works
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

738 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