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:

82698

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
2026-01-02
ROPgadget - 7.6-r2
Ebuild name:

dev-util/ROPgadget-7.6-r2

Description

Search for gadgets in binaries to facilitate your ROP exploitation

Added to portage

2026-01-02

ROPgadget - 7.7-r1
Ebuild name:

dev-util/ROPgadget-7.7-r1

Description

Search for gadgets in binaries to facilitate your ROP exploitation

Added to portage

2026-01-02

amf-headers - 1.4.36-r2
Ebuild name:

media-libs/amf-headers-1.4.36-r2

Description

The Advanced Media Framework (AMF) SDK

Added to portage

2026-01-02

capstone - 5.0.6-r1
Ebuild name:

dev-libs/capstone-5.0.6-r1

Description

disassembly/disassembler framework + bindings

Added to portage

2026-01-02

capstone - 6.0.0_alpha4-r1
Ebuild name:

dev-libs/capstone-6.0.0_alpha4-r1

Description

disassembly/disassembler framework + bindings

Added to portage

2026-01-02

capstone - 6.0.0_alpha5-r1
Ebuild name:

dev-libs/capstone-6.0.0_alpha5-r1

Description

disassembly/disassembler framework + bindings

Added to portage

2026-01-02

django-polymorphic - 4.5.2
Ebuild name:

dev-python/django-polymorphic-4.5.2

Description

Seamless Polymorphic Inheritance for Django Models

Added to portage

2026-01-02

eisl - 5.62
Ebuild name:

dev-lang/eisl-5.62

Description

Interpreter and compiler compatible with the ISLisp standard

Added to portage

2026-01-02

gitpython - 3.1.46
Ebuild name:

dev-python/gitpython-3.1.46

Description

Library used to interact with Git repositories

Added to portage

2026-01-02

gnatformat - 26.0.0-r1
Ebuild name:

dev-ada/gnatformat-26.0.0-r1

Description

Opinionated code formatter for the Ada language

Added to portage

2026-01-02

gopass - 1.16.1-r1
Ebuild name:

app-admin/gopass-1.16.1-r1

Description

a simple but powerful password manager for the terminal

Added to portage

2026-01-02

hypothesis - 6.148.9
Ebuild name:

dev-python/hypothesis-6.148.9

Description

A library for property based testing

Added to portage

2026-01-02

json5 - 0.13.0
Ebuild name:

dev-python/json5-0.13.0

Description

A Python implementation of the JSON5 data format

Added to portage

2026-01-02

libmilter - 1.0.2_p5
Ebuild name:

mail-filter/libmilter-1.0.2_p5

Description

Added to portage

2026-01-02

librt - 0.7.7
Ebuild name:

dev-python/librt-0.7.7

Description

Mypyc runtime library

Added to portage

2026-01-02

nprolog - 4.78
Ebuild name:

dev-lang/nprolog-4.78

Description

Interpreter and compiler to be compatible with Arity/Prolog32

Added to portage

2026-01-02

nvidia-ml-py - 13.590.44
Ebuild name:

dev-python/nvidia-ml-py-13.590.44

Description

Python bindings to the NVIDIA Management Library

Added to portage

2026-01-02

pf-sources - 6.18_p4
Ebuild name:

sys-kernel/pf-sources-6.18_p4

Description

Added to portage

2026-01-02

portage - 3.0.74
Ebuild name:

sys-apps/portage-3.0.74

Description

The package management and distribution system for Gentoo

Added to portage

2026-01-02

prettier-ada - 25.0.0-r4
Ebuild name:

dev-ada/prettier-ada-25.0.0-r4

Description

Port of the Prettier formatter to the Ada programming language

Added to portage

2026-01-02

pwndbg - 20250530-r3
Ebuild name:

dev-debug/pwndbg-20250530-r3

Description

A GDB plug-in that makes debugging with GDB suck less

Added to portage

2026-01-02

pwndbg - 20251010-r3
Ebuild name:

dev-debug/pwndbg-20251010-r3

Description

A GDB plug-in that makes debugging with GDB suck less

Added to portage

2026-01-02

pwndbg - 20251020-r3
Ebuild name:

dev-debug/pwndbg-20251020-r3

Description

A GDB plug-in that makes debugging with GDB suck less

Added to portage

2026-01-02

pycares - 5.0.1
Ebuild name:

dev-python/pycares-5.0.1

Description

Python interface for c-ares

Added to portage

2026-01-02

pykka - 4.4.1
Ebuild name:

dev-python/pykka-4.4.1

Description

A Python implementation of the actor model

Added to portage

2026-01-02

pynacl - 1.6.2
Ebuild name:

dev-python/pynacl-1.6.2

Description

Python binding to the Networking and Cryptography (NaCl) library

Added to portage

2026-01-02

rpm-sequoia - 1.10.0
Ebuild name:

app-crypt/rpm-sequoia-1.10.0

Description

Implementation of the RPM PGP interface using Sequoia

Added to portage

2026-01-02

sendmail - 8.18.2
Ebuild name:

mail-mta/sendmail-8.18.2

Description

Widely-used Mail Transport Agent (MTA)

Added to portage

2026-01-02

siril - 1.4.0-r1
Ebuild name:

sci-astronomy/siril-1.4.0-r1

Description

A free astronomical image processing software

Added to portage

2026-01-02

smrsh - 8.18.2
Ebuild name:

app-shells/smrsh-8.18.2

Description

Sendmail restricted shell, for use with MTAs other than Sendmail

Added to portage

2026-01-02

sqlmap - 1.10
Ebuild name:

dev-db/sqlmap-1.10

Description

An automatic SQL injection and database takeover tool

Added to portage

2026-01-02

vlc - 3.0.23
Ebuild name:

media-video/vlc-3.0.23

Description

Media player and framework with support for most multimedia files and stream

Added to portage

2026-01-02

yara-x - 1.10.0-r1
Ebuild name:

app-forensics/yara-x-1.10.0-r1

Description

A malware identification and classification tool

Added to portage

2026-01-02

2026-01-01
amq-protocol - 2.5.0
Ebuild name:

dev-ruby/amq-protocol-2.5.0

Description

An AMQP 0.9.1 serialization library for Ruby

Added to portage

2026-01-01

arti - 1.8.0
Ebuild name:

net-p2p/arti-1.8.0

Description

Implementation of Tor in Rust

Added to portage

2026-01-01

bcrypt-ruby - 3.1.21
Ebuild name:

dev-ruby/bcrypt-ruby-3.1.21

Description

An easy way to keep your users' passwords secure

Added to portage

2026-01-01

cddlib - 094n
Ebuild name:

sci-libs/cddlib-094n

Description

C library implementing the Double Description Method

Added to portage

2026-01-01

chrome-binary-plugins - 143.0.7499.169
Ebuild name:

www-plugins/chrome-binary-plugins-143.0.7499.169

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2026-01-01

chrome-binary-plugins - 144.0.7559.31_beta
Ebuild name:

www-plugins/chrome-binary-plugins-144.0.7559.31_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-01-01

chrome-binary-plugins - 145.0.7587.4_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-145.0.7587.4_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-01-01

chromedriver-bin - 143.0.7499.169
Ebuild name:

www-apps/chromedriver-bin-143.0.7499.169

Description

WebDriver for Chrome

Added to portage

2026-01-01

curl - 8.18.0_rc3
Ebuild name:

net-misc/curl-8.18.0_rc3

Description

A Client that groks URLs

Added to portage

2026-01-01

deskflow - 1.25.0
Ebuild name:

gui-apps/deskflow-1.25.0

Description

Share a mouse and keyboard between computers (FOSS version of Synergy)

Added to portage

2026-01-01

fable - 4.28.0
Ebuild name:

dev-dotnet/fable-4.28.0

Description

F to JavaScript, TypeScript, Python, Rust and Dart Compiler

Added to portage

2026-01-01

fonttosfnt - 1.2.5
Ebuild name:

x11-apps/fonttosfnt-1.2.5

Description

X.Org fonttosfnt application

Added to portage

2026-01-01

git-merge-changelog - 1.0
Ebuild name:

dev-vcs/git-merge-changelog-1.0

Description

Git merge driver for GNU style ChangeLog files

Added to portage

2026-01-01

google-chrome - 143.0.7499.169
Ebuild name:

www-client/google-chrome-143.0.7499.169

Description

The web browser from Google

Added to portage

2026-01-01

google-chrome-beta - 144.0.7559.31
Ebuild name:

www-client/google-chrome-beta-144.0.7559.31

Description

The web browser from Google

Added to portage

2026-01-01

google-chrome-unstable - 145.0.7587.4
Ebuild name:

www-client/google-chrome-unstable-145.0.7587.4

Description

The web browser from Google

Added to portage

2026-01-01

libsdl2 - 2.32.62
Ebuild name:

media-libs/libsdl2-2.32.62

Description

Simple Direct Media Layer

Added to portage

2026-01-01

libsdl3 - 3.2.30
Ebuild name:

media-libs/libsdl3-3.2.30

Description

Simple Direct Media Layer

Added to portage

2026-01-01

libsdl3 - 3.4.0
Ebuild name:

media-libs/libsdl3-3.4.0

Description

Simple Direct Media Layer

Added to portage

2026-01-01

libva-intel-media-driver - 25.4.6
Ebuild name:

media-libs/libva-intel-media-driver-25.4.6

Description

Intel Media Driver for VA-API (iHD)

Added to portage

2026-01-01

lidarr-bin - 3.1.1.4900
Ebuild name:

www-apps/lidarr-bin-3.1.1.4900

Description

Looks and smells like Sonarr but made for music

Added to portage

2026-01-01

melonds - 1.1-r1
Ebuild name:

games-emulation/melonds-1.1-r1

Description

Nintendo DS emulator, sorta

Added to portage

2026-01-01

microsoft-edge - 143.0.3650.96
Ebuild name:

www-client/microsoft-edge-143.0.3650.96

Description

The web browser from Microsoft

Added to portage

2026-01-01

microsoft-edge-beta - 144.0.3719.23
Ebuild name:

www-client/microsoft-edge-beta-144.0.3719.23

Description

The web browser from Microsoft

Added to portage

2026-01-01

microsoft-edge-beta - 144.0.3719.35
Ebuild name:

www-client/microsoft-edge-beta-144.0.3719.35

Description

The web browser from Microsoft

Added to portage

2026-01-01

microsoft-edge-dev - 145.0.3734.1
Ebuild name:

www-client/microsoft-edge-dev-145.0.3734.1

Description

The web browser from Microsoft

Added to portage

2026-01-01

moonlight - 6.1.0-r3
Ebuild name:

net-misc/moonlight-6.1.0-r3

Description

NVIDIA GameStream (and Sunshine) client

Added to portage

2026-01-01

obs-vkcapture - 1.5.3-r1
Ebuild name:

media-plugins/obs-vkcapture-1.5.3-r1

Description

OBS Linux Vulkan/OpenGL game capture

Added to portage

2026-01-01

opera - 125.0.5729.49
Ebuild name:

www-client/opera-125.0.5729.49

Description

A fast and secure web browser

Added to portage

2026-01-01

opera-beta - 126.0.5750.11
Ebuild name:

www-client/opera-beta-126.0.5750.11

Description

A fast and secure web browser

Added to portage

2026-01-01

opera-developer - 126.0.5748.0
Ebuild name:

www-client/opera-developer-126.0.5748.0

Description

A fast and secure web browser

Added to portage

2026-01-01

outline-magic - 0.9
Ebuild name:

app-emacs/outline-magic-0.9

Description

Outline mode extensions for Emacs

Added to portage

2026-01-01

package-build - 4.0.0
Ebuild name:

app-emacs/package-build-4.0.0

Description

Tools for assembling a package archive

Added to portage

2026-01-01

pauker - 1.8-r5
Ebuild name:

games-puzzle/pauker-1.8-r5

Description

A java based flashcard program

Added to portage

2026-01-01

pymdown-extensions - 10.20
Ebuild name:

dev-python/pymdown-extensions-10.20

Description

Extensions for Python Markdown

Added to portage

2026-01-01

python-gnupg - 0.5.6
Ebuild name:

dev-python/python-gnupg-0.5.6

Description

A Python wrapper for GnuPG

Added to portage

2026-01-01

radarr-bin - 6.1.0.10316
Ebuild name:

www-apps/radarr-bin-6.1.0.10316

Description

A fork of Sonarr to work with movies a la Couchpotato

Added to portage

2026-01-01

rgb - 1.1.1
Ebuild name:

x11-apps/rgb-1.1.1

Description

uncompile an rgb color-name database

Added to portage

2026-01-01

rouge - 4.7.0
Ebuild name:

dev-ruby/rouge-4.7.0

Description

Yet-another-markdown-parser using a strict syntax definition in pure Ruby

Added to portage

2026-01-01

socket-burst-dampener - 1.3.4
Ebuild name:

net-misc/socket-burst-dampener-1.3.4

Description

A daemon that spawns one command per connection, and dampens c

Added to portage

2026-01-01

sourcegit - 2025.41
Ebuild name:

dev-vcs/sourcegit-2025.41

Description

Open Source Git GUI client using .NET AvaloniaUI

Added to portage

2026-01-01

sphinx - 9.1.0
Ebuild name:

dev-python/sphinx-9.1.0

Description

Python documentation generator

Added to portage

2026-01-01

tlfloat - 1.17.1_p20250711
Ebuild name:

dev-cpp/tlfloat-1.17.1_p20250711

Description

C++ template library for floating point operations

Added to portage

2026-01-01

tt-rss - 20251216
Ebuild name:

www-apps/tt-rss-20251216

Description

Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX

Added to portage

2026-01-01

ty - 0.0.7
Ebuild name:

dev-util/ty-0.0.7

Description

An extremely fast Python type checker and language server, written in Rust

Added to portage

2026-01-01

xauth - 1.1.5
Ebuild name:

x11-apps/xauth-1.1.5

Description

X authority file utility

Added to portage

2026-01-01

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