from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

82451

userrating:

average rating: 1.2 (52 votes) (1=very good 6=terrible)


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tutorials per portage category->net-misc->ntp


ntp is the Network Time Protocol suite.

Installing ntpd

First, make sure ntp/ntpdate are installed. The package is by default installed on Mandrake Linux and Redhat. If you do not have ntp installed you will find packages on your distributions install-cd(s).

On Gentoo Linux, install by typing --- emerge ntp

Configuration files for running ntp as daemon

ntpd manpage

Client Setup

Now, edit the following files:

--- /etc/ntp.conf

The only important thing is that the line contains server some.thing.org.

Example:

--- server ntp.uio.no driftfile /etc/ntp/drift broadcastdelay 0.008 authenticate no ---

Make sure you add ntpd as a boot (init) service.

Gentoo Linux: `rc-update add ntpd default` , `/etc/init.d/ntpd start`

(LAN) Server setup

To run a ntp server to sync the clocks on your lan, edit

--- /etc/ntp.conf

Example:

--- server fartein.ifi.uio.no prefer server ntp.uio.no server ntp.eunet.no

fudge 10.0.0.50 stratum 10

driftfile /etc/ntp/drift broadcastdelay 0.008

authenticate no ---

fudge tells the server to pass on the correct time to the given network interface. stratum is the level of time servers, 10 being the lowest. You only need a higher number if you will be acting as a public internet timeserver with fast bandwidth.

It makes sence to add a few servers. Select the best as prefer

Make sure you add ntpd as a boot (init) service.

Gentoo Linux: `rc-update add ntpd default` , `/etc/init.d/ntpd start`

Firewalls

ntp uses port 123, both UDP and TCP. Make sure this port is not blocked by a firewall.

If you are using iptables, you can open this port with

--- $IPTABLES -A INPUT -j ACCEPT -p tcp --dport 123

Known valid and working ntp servers

server adress Location
ntp.ipv6.viagenie.qc.ca IPV6 ONLY
clock.via.net
server fartein.ifi.uio.no Norway
server ntp.uio.no Norway
server ntp.eunet.no Norway
ntp.demon.co.uk UK
ntp.nasa.gov USA
bigben.cac.washington.edu USA
time-b.nist.gov USA
montpelier.ilan.caltech.edu USA
nist1.aol-ca.truetime.com USA
nist1.datum.com USA
time-a.timefreq.bldrdoc.gov USA
time-b.timefreq.bldrdoc.gov USA
time-c.timefreq.bldrdoc.gov USA
time.nist.gov USA
utcnist.colorado.edu USA
tick.usno.navy.mil USA
tock.usno.navy.mil USA
mizbeaver.udel.edu USA

Server List

Setting the clock at boot or using cron

I good idea is _not_ to run the ntpd daemon on clients as it uses about 1,7 MB memory, unless you are a server or have a box with a broken clock. Many boxes clocks do drift along on their own, a check every hour or day is generally a good idea.

rdate

rdate is a simple 3 kB tool for syncing the system clock to a server. It's options are `-p` to print the date on the given server, `-s` to set the system clock according to it (must be done as root) and `-u` to use the UDP protocol. Example:

`rdate -p sntp.lth.se`

rdate manual page

clockspeed

clockspeed is a very small tool for setting the clock and is, for clients, a much better alternative than installing the 4+ MB ntp package.

cron & ntp

You can simply add ntpdate as a cron job every now and then:

--- echo 'ntpdate -b server.dot.com' > /etc/cron.hourly/time.cron --- chmod a+x /etc/cron.hourly/time.cron

Most distributions come with a cron. dcron and Vixie cron are nice.

Gentoo & ntp-client

You can set the clock using ntp at boot (without starting the daemon) on Gentoo Linux by editing:

--- /etc/conf.d/ntp-client

The file should contain:

--- NTPDATE_CMD="ntpdate" NTPDATE_OPTS="-b your.server.here" ---

Then add ntp-client to the services started at boot:

--- rc-update add ntp-client default

You can check what services are started at boot with `rc-status`.


Page source:

Copyright (c) 2000-2004 Øyvind Sæther. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2025-12-14
concurrent-ruby - 1.3.6
Ebuild name:

dev-ruby/concurrent-ruby-1.3.6

Description

Modern concurrency tools including agents, futures, promises, thread

Added to portage

2025-12-14

flog - 4.9.0
Ebuild name:

dev-ruby/flog-4.9.0

Description

Flog reports the most tortured code in an easy to read pain report

Added to portage

2025-12-14

grub-themes-gentoo - 1.0
Ebuild name:

sys-boot/grub-themes-gentoo-1.0

Description

Grub2 Themes for Gentoo

Added to portage

2025-12-14

openresolv - 3.17.3
Ebuild name:

net-dns/openresolv-3.17.3

Description

A framework for managing DNS information

Added to portage

2025-12-14

ponysay - 3.0.3-r2
Ebuild name:

games-misc/ponysay-3.0.3-r2

Description

cowsay reimplemention for ponies

Added to portage

2025-12-14

ttfautohint - 1.8.4-r4
Ebuild name:

media-gfx/ttfautohint-1.8.4-r4

Description

Application and libary for hinting TrueType fonts

Added to portage

2025-12-14

2025-12-13
acme-client - 2.0.29
Ebuild name:

dev-ruby/acme-client-2.0.29

Description

A Ruby client for the letsencrypt's ACME protocol

Added to portage

2025-12-13

authlib - 1.6.6
Ebuild name:

dev-python/authlib-1.6.6

Description

A Python library in building OAuth and OpenID Connect servers and clients

Added to portage

2025-12-13

awscli - 1.43.15
Ebuild name:

app-admin/awscli-1.43.15

Description

Universal Command Line Environment for AWS

Added to portage

2025-12-13

beartype - 0.22.9
Ebuild name:

dev-python/beartype-0.22.9

Description

Unbearably fast runtime type checking in pure Python

Added to portage

2025-12-13

boogie - 3.5.6
Ebuild name:

dev-lang/boogie-3.5.6

Description

SMT-based program verifier

Added to portage

2025-12-13

boto3 - 1.42.9
Ebuild name:

dev-python/boto3-1.42.9

Description

The AWS SDK for Python

Added to portage

2025-12-13

botocore - 1.42.9
Ebuild name:

dev-python/botocore-1.42.9

Description

Low-level, data-driven core of boto 3

Added to portage

2025-12-13

cachetools - 6.2.3
Ebuild name:

dev-python/cachetools-6.2.3

Description

Extensible memoizing collections and decorators

Added to portage

2025-12-13

capistrano - 3.20.0
Ebuild name:

dev-ruby/capistrano-3.20.0

Description

A distributed application deployment system

Added to portage

2025-12-13

chrome-binary-plugins - 143.0.7499.109
Ebuild name:

www-plugins/chrome-binary-plugins-143.0.7499.109

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2025-12-13

chrome-binary-plugins - 144.0.7559.20_beta
Ebuild name:

www-plugins/chrome-binary-plugins-144.0.7559.20_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2025-12-13

chrome-binary-plugins - 145.0.7572.2_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-145.0.7572.2_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2025-12-13

chromedriver-bin - 143.0.7499.109
Ebuild name:

www-apps/chromedriver-bin-143.0.7499.109

Description

WebDriver for Chrome

Added to portage

2025-12-13

chromium - 143.0.7499.109
Ebuild name:

www-client/chromium-143.0.7499.109

Description

Open-source version of Google Chrome web browser

Added to portage

2025-12-13

clojure - 1.12.4
Ebuild name:

dev-lang/clojure-1.12.4

Description

General-purpose programming language with an emphasis on functional program

Added to portage

2025-12-13

cpuinfo - 2025.11.14
Ebuild name:

dev-libs/cpuinfo-2025.11.14

Description

CPU INFOrmation library

Added to portage

2025-12-13

dar - 2.8.2
Ebuild name:

app-backup/dar-2.8.2

Description

A full featured backup tool, aimed for disks

Added to portage

2025-12-13

devcontainer - 0.80.3
Ebuild name:

app-containers/devcontainer-0.80.3

Description

Reference implementation of the Development Containers specifica

Added to portage

2025-12-13

dist-kernel - 6.12.62
Ebuild name:

virtual/dist-kernel-6.12.62

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-13

dist-kernel - 6.17.12
Ebuild name:

virtual/dist-kernel-6.17.12

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-13

duckdb - 1.4.3
Ebuild name:

dev-db/duckdb-1.4.3

Description

high-performance analytical database system

Added to portage

2025-12-13

flask-cors - 6.0.2
Ebuild name:

dev-python/flask-cors-6.0.2

Description

A Flask extension for Cross Origin Resource Sharing (CORS)

Added to portage

2025-12-13

fonttools - 4.61.1
Ebuild name:

dev-python/fonttools-4.61.1

Description

Library for manipulating TrueType, OpenType, AFM and Type1 fonts

Added to portage

2025-12-13

gallery-dl - 1.31.0
Ebuild name:

net-misc/gallery-dl-1.31.0

Description

Download image galleries and collections from several image hosting site

Added to portage

2025-12-13

gentoo-kernel - 6.12.62
Ebuild name:

sys-kernel/gentoo-kernel-6.12.62

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-13

gentoo-kernel - 6.17.12
Ebuild name:

sys-kernel/gentoo-kernel-6.17.12

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-13

gentoo-kernel-bin - 6.12.62
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.62

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-13

gentoo-kernel-bin - 6.17.12
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.17.12

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-13

google-chrome - 143.0.7499.109
Ebuild name:

www-client/google-chrome-143.0.7499.109

Description

The web browser from Google

Added to portage

2025-12-13

google-chrome-beta - 144.0.7559.20
Ebuild name:

www-client/google-chrome-beta-144.0.7559.20

Description

The web browser from Google

Added to portage

2025-12-13

google-chrome-unstable - 145.0.7572.2
Ebuild name:

www-client/google-chrome-unstable-145.0.7572.2

Description

The web browser from Google

Added to portage

2025-12-13

kstars - 3.8.0
Ebuild name:

sci-astronomy/kstars-3.8.0

Description

Desktop Planetarium

Added to portage

2025-12-13

libgpr - 26.0.0
Ebuild name:

dev-ada/libgpr-26.0.0

Description

Ada library to handle GPRbuild project files

Added to portage

2025-12-13

mac - 11.90
Ebuild name:

media-sound/mac-11.90

Description

Monkey's Audio Codecs

Added to portage

2025-12-13

microsoft-edge - 143.0.3650.80
Ebuild name:

www-client/microsoft-edge-143.0.3650.80

Description

The web browser from Microsoft

Added to portage

2025-12-13

microsoft-edge-beta - 143.0.3650.66
Ebuild name:

www-client/microsoft-edge-beta-143.0.3650.66

Description

The web browser from Microsoft

Added to portage

2025-12-13

minitest - 5.27.0
Ebuild name:

dev-ruby/minitest-5.27.0

Description

minitest/unit is a small and fast replacement for ruby's huge and slow tes

Added to portage

2025-12-13

moarvm - 2025.11
Ebuild name:

dev-lang/moarvm-2025.11

Description

A 6model-based VM for NQP and Raku

Added to portage

2025-12-13

nqp - 2025.11
Ebuild name:

dev-lang/nqp-2025.11

Description

Not Quite Perl, a Raku bootstrapping compiler

Added to portage

2025-12-13

opera - 125.0.5729.21
Ebuild name:

www-client/opera-125.0.5729.21

Description

A fast and secure web browser

Added to portage

2025-12-13

opera-developer - 126.0.5742.0
Ebuild name:

www-client/opera-developer-126.0.5742.0

Description

A fast and secure web browser

Added to portage

2025-12-13

opera-developer - 126.0.5744.0
Ebuild name:

www-client/opera-developer-126.0.5744.0

Description

A fast and secure web browser

Added to portage

2025-12-13

org-superstar-mode - 1.5.0
Ebuild name:

app-emacs/org-superstar-mode-1.5.0

Description

Prettify headings and plain lists in Org mode (use UTF8 bullets)

Added to portage

2025-12-13

osm - 1.10
Ebuild name:

app-emacs/osm-1.10

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2025-12-13

osm - 1.9
Ebuild name:

app-emacs/osm-1.9

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2025-12-13

osm - 9999
Ebuild name:

app-emacs/osm-9999

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2025-12-13

outline-magic - 0.9
Ebuild name:

app-emacs/outline-magic-0.9

Description

Outline mode extensions for Emacs

Added to portage

2025-12-13

puppet_forge - 6.1.0
Ebuild name:

dev-ruby/puppet_forge-6.1.0

Description

Tools to access Forge API information on Modules, Users, and Releases

Added to portage

2025-12-13

pydf - 15
Ebuild name:

app-admin/pydf-15

Description

Enhanced df with colors

Added to portage

2025-12-13

pytest-describe - 3.1.0
Ebuild name:

dev-python/pytest-describe-3.1.0

Description

Describe-style plugin for pytest

Added to portage

2025-12-13

rakudo - 2025.11
Ebuild name:

dev-lang/rakudo-2025.11

Description

A compiler for the Raku programming language

Added to portage

2025-12-13

rclone - 1.72.1
Ebuild name:

net-misc/rclone-1.72.1

Description

A program to sync files to and from various cloud storage providers

Added to portage

2025-12-13

ruff - 0.14.9
Ebuild name:

dev-util/ruff-0.14.9

Description

An extremely fast Python linter, written in Rust

Added to portage

2025-12-13

simdjson - 4.2.3
Ebuild name:

dev-libs/simdjson-4.2.3

Description

SIMD accelerated C++ JSON library

Added to portage

2025-12-13

sourcegit - 2025.39
Ebuild name:

dev-vcs/sourcegit-2025.39

Description

Open Source Git GUI client using .NET AvaloniaUI

Added to portage

2025-12-13

sqlitestudio - 4.0.0_pre20251207
Ebuild name:

dev-db/sqlitestudio-4.0.0_pre20251207

Description

Powerful cross-platform SQLite database manager

Added to portage

2025-12-13

sshkit - 1.25.0
Ebuild name:

dev-ruby/sshkit-1.25.0

Description

SSHKit makes it easy to write structured, testable SSH commands in Ruby

Added to portage

2025-12-13

steve - 1.2.0
Ebuild name:

dev-build/steve-1.2.0

Description

A load-balancing jobserver for Gentoo

Added to portage

2025-12-13

supercollider - 3.14.1-r1
Ebuild name:

media-sound/supercollider-3.14.1-r1

Description

Environment and programming language for real time audio synthe

Added to portage

2025-12-13

syd - 3.46.0
Ebuild name:

sys-apps/syd-3.46.0

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2025-12-13

tifffile - 2025.12.12
Ebuild name:

dev-python/tifffile-2025.12.12

Description

Read and write TIFF files

Added to portage

2025-12-13

vanilla-kernel - 6.12.62
Ebuild name:

sys-kernel/vanilla-kernel-6.12.62

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-13

vanilla-kernel - 6.17.12
Ebuild name:

sys-kernel/vanilla-kernel-6.17.12

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-13

rdf newsfeed | rss newsfeed | Atom newsfeed
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
- Copyright and legal notices -
Time to create this page: 18.5 ms