Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
So I was looking to update my time and sync it with a NTP server via the web since my time is always wrong once my machine reboots for some strange reason. I can set in manually all day long but when I reboot the PC, it comes back wrong. I have checked the BIOS and it is correct.
Anyways, I was looking to understand what is the difference between installing "ntpdate" and the "ntpd" packages on my box? Obviously I don't want to dish out time to my LAN and other PC's so I would assume I don't want "NTPd" however when I try and sync my time via Gnome to a NTP server, it says I don't have NTP support installed and request I install it.
I have a time server on my LAN and it has an IP of 10.1.1.1 however what do I need on my box to enable the sync between the two?
ntpd is a daemon that runs to keep your time up to date/time. For this you must configure ntp.conf so it will know where to get the date/time
ntpdate is a command that will use ntp.conf to do an update now as opposed to waiting for ntpd to do it.
Translation: You want ntpd, you need to configure ntp.conf. You CAN use ntpdate to do manual updates.
If you don't have your own device (e.g. a GPS ntp clock) you can point ntp.conf at a trusted site like the US Naval Observatory. When I installed Fedora Core 6 the other day I noticed Fedora has sites one can point too (presumably at RedHat - I didn't use them since we have our own ntp clock.
In addition to using NTP to keep your "system" clock up to date you may want to use hwclock to sync your hardware clock with your "system " clock. hwlcock --systohc will set your hwclock to your system clock's time.
By the way since you bring it up so close to DST changes in the U.S. and other places I'll mention that all the above has nothing to do with DST. The above deals with UTC (Universal Time a/k/a GMT or Zulu) which is the way Linux/UNIX store "system" time. DST deals with timezone which is the way Linux/UNIX display time.
If you're working on ntp trying to address DST then be advised you still have more work to do. NTP will not overcome a bad timezone because it only uses the UTC for the updates.
I am looking at the "ntp.conf" file and I know NTP is working but I want ntp to be sync'ed from my provided NTP server and not the provided onces. Is there a way I can check to see what server my NTP is getting info from?
As you can see below I have pasted a small top section from my ntp.conf and I added my time server "10.1.1.1" however I am not sure if that was the right place and also if I should remove the provided examples below?
# You do need to talk to an NTP server or two (or three).
# pool.ntp.org maps to more than 300 low-stratum NTP servers.
# Your server will pick a different set every time it starts up.
# *** Please consider joining the pool! ***
# *** <http://www.pool.ntp.org/join.html> ***
server 0.debian.pool.ntp.org iburst
server 1.debian.pool.ntp.org iburst
server 2.debian.pool.ntp.org iburst
server 3.debian.pool.ntp.org iburst
The syncs when done are recorded in /var/log/messages.
You can comment out other servers and just add your own. That way you'll be sure it's not using any others. Make sure you update security settings as well. You should have server and restrict entries for each NTP source e.g.:
The 188.8.131.52 is the USNO I believe - the other two are obfuscated versions of our internal NTP clocks - you'd put your own IP addresses in place of these. Don't forget to stop/start ntpd after making the changes.
The debian stuff you show are presumably Debian's equivalent to Fedora's NTP servers.
Note: in the above none of the servers are the host itself - they are the NTP servers.