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:

84193

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-04-06
Search-Xapian - 1.2.25.6
Ebuild name:

dev-perl/Search-Xapian-1.2.25.6

Description

Perl XS frontend to the Xapian C++ search library

Added to portage

2026-04-06

alpine - 2.29.9
Ebuild name:

mail-client/alpine-2.29.9

Description

An easy to use text-based based mail and news client

Added to portage

2026-04-06

boost - 1.90.0-r1
Ebuild name:

dev-libs/boost-1.90.0-r1

Description

Boost Libraries for C++

Added to portage

2026-04-06

cython-test-exception-raiser - 26.4.1
Ebuild name:

dev-python/cython-test-exception-raiser-26.4.1

Description

A trivial extension that just raises an exception (f

Added to portage

2026-04-06

elfutils - 0.194-r3
Ebuild name:

dev-libs/elfutils-0.194-r3

Description

Libraries/utilities to handle ELF objects (drop in replacement for libel

Added to portage

2026-04-06

gcc - 16.0.1_p20260405
Ebuild name:

sys-devel/gcc-16.0.1_p20260405

Description

The GNU Compiler Collection

Added to portage

2026-04-06

git-sources - 7.0_rc7
Ebuild name:

sys-kernel/git-sources-7.0_rc7

Description

The very latest -git version of the Linux kernel

Added to portage

2026-04-06

hwdata - 0.401
Ebuild name:

sys-apps/hwdata-0.401

Description

Hardware identification and configuration data

Added to portage

2026-04-06

hypothesis - 6.151.11
Ebuild name:

dev-python/hypothesis-6.151.11

Description

A library for property based testing

Added to portage

2026-04-06

jellyfin-bin - 10.11.8
Ebuild name:

www-apps/jellyfin-bin-10.11.8

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2026-04-06

libnpupnp - 6.3.0
Ebuild name:

net-libs/libnpupnp-6.3.0

Description

A C++ base UPnP library, derived from Portable UPnP, a.k.a libupnp

Added to portage

2026-04-06

libupnpp - 1.0.4
Ebuild name:

net-libs/libupnpp-1.0.4

Description

The libupnpp C++ library wraps libupnp for easier use by upmpdcli and uppla

Added to portage

2026-04-06

limine - 10.8.5
Ebuild name:

sys-boot/limine-10.8.5

Description

Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloade

Added to portage

2026-04-06

limine - 11.2.0
Ebuild name:

sys-boot/limine-11.2.0

Description

Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloade

Added to portage

2026-04-06

meson - 1.11.0_rc3
Ebuild name:

dev-build/meson-1.11.0_rc3

Description

Open source build system

Added to portage

2026-04-06

openrc - 0.63.1
Ebuild name:

sys-apps/openrc-0.63.1

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2026-04-06

pciutils - 3.15.0
Ebuild name:

sys-apps/pciutils-3.15.0

Description

Various utilities dealing with the PCI bus

Added to portage

2026-04-06

pep - 2.8-r3
Ebuild name:

app-text/pep-2.8-r3

Description

General purpose filter and file cleaning program

Added to portage

2026-04-06

portage - 3.0.77-r4
Ebuild name:

sys-apps/portage-3.0.77-r4

Description

The package management and distribution system for Gentoo

Added to portage

2026-04-06

pp - 0.6.3-r1
Ebuild name:

dev-ruby/pp-0.6.3-r1

Description

Provides a PrettyPrinter for Ruby objects

Added to portage

2026-04-06

pyglet - 2.1.14
Ebuild name:

dev-python/pyglet-2.1.14

Description

Cross-platform windowing and multimedia library for Python

Added to portage

2026-04-06

python-multipart - 0.0.24
Ebuild name:

dev-python/python-multipart-0.0.24

Description

A streaming multipart parser for Python

Added to portage

2026-04-06

sabctools - 9.3.0
Ebuild name:

dev-python/sabctools-9.3.0

Description

Module providing raw yEnc encoding/decoding for SABnzbd

Added to portage

2026-04-06

stone-soup - 0.34.1
Ebuild name:

games-roguelike/stone-soup-0.34.1

Description

Role-playing roguelike game of exploration and treasure-hunting i

Added to portage

2026-04-06

tavern - 3.3.2
Ebuild name:

dev-python/tavern-3.3.2

Description

A tool, library, and Pytest plugin for testing RESTful APIs

Added to portage

2026-04-06

upmpdcli - 1.9.15
Ebuild name:

media-sound/upmpdcli-1.9.15

Description

UPnP Media Renderer front-end for MPD, the Music Player Daemon

Added to portage

2026-04-06

webkit-gtk - 2.52.1-r410
Ebuild name:

net-libs/webkit-gtk-2.52.1-r410

Description

Open source web browser engine

Added to portage

2026-04-06

webkit-gtk - 2.52.1-r600
Ebuild name:

net-libs/webkit-gtk-2.52.1-r600

Description

Open source web browser engine

Added to portage

2026-04-06

whenever - 0.10.0
Ebuild name:

dev-python/whenever-0.10.0

Description

Modern datetime library for Python

Added to portage

2026-04-06

wiiload - 0.5.3
Ebuild name:

games-util/wiiload-0.5.3

Description

Load homebrew apps over the network to your Wii

Added to portage

2026-04-06

xapian - 2.0.0
Ebuild name:

dev-libs/xapian-2.0.0

Description

Xapian Probabilistic Information Retrieval library

Added to portage

2026-04-06

xapian-bindings - 2.0.0
Ebuild name:

dev-libs/xapian-bindings-2.0.0

Description

SWIG and JNI bindings for Xapian

Added to portage

2026-04-06

xapian-omega - 2.0.0
Ebuild name:

app-text/xapian-omega-2.0.0

Description

An application built on Xapian, consisting of indexers and a CGI search

Added to portage

2026-04-06

zeal - 0.8.1
Ebuild name:

app-text/zeal-0.8.1

Description

Offline documentation browser inspired by Dash

Added to portage

2026-04-06

2026-04-05
JSON-WebToken - 0.100.0
Ebuild name:

dev-perl/JSON-WebToken-0.100.0

Description

JSON Web Token (JWT) implementation

Added to portage

2026-04-05

PAR-Packer - 1.64.0
Ebuild name:

dev-perl/PAR-Packer-1.64.0

Description

PAR Packager

Added to portage

2026-04-05

Test-Mock-Guard - 0.100.0
Ebuild name:

dev-perl/Test-Mock-Guard-0.100.0

Description

Simple mock test library using RAII

Added to portage

2026-04-05

bear - 4.1.1
Ebuild name:

dev-util/bear-4.1.1

Description

Bear is a tool that generates a compilation database for clang tooling.

Added to portage

2026-04-05

ebuild-mode - 1.82
Ebuild name:

app-xemacs/ebuild-mode-1.82

Description

Emacs modes for editing ebuilds and other Gentoo specific files

Added to portage

2026-04-05

foot - 1.26.1
Ebuild name:

gui-apps/foot-1.26.1

Description

Fast, lightweight and minimalistic Wayland terminal emulator

Added to portage

2026-04-05

foot-terminfo - 1.26.1
Ebuild name:

gui-apps/foot-terminfo-1.26.1

Description

Terminfo for foot, a fast, lightweight and minimal Wayland terminal e

Added to portage

2026-04-05

gcc - 15.2.1_p20260404
Ebuild name:

sys-devel/gcc-15.2.1_p20260404

Description

The GNU Compiler Collection

Added to portage

2026-04-05

gdm - 48.0-r1
Ebuild name:

gnome-base/gdm-48.0-r1

Description

GNOME Display Manager for managing graphical display servers and user logins

Added to portage

2026-04-05

gnome-control-center - 48.7
Ebuild name:

gnome-base/gnome-control-center-48.7

Description

GNOME's main interface to configure various aspects of the des

Added to portage

2026-04-05

gnome-shell - 48.8
Ebuild name:

gnome-base/gnome-shell-48.8

Description

Provides core UI functions for the GNOME desktop

Added to portage

2026-04-05

gnome-shell-extension-dash-to-panel - 73
Ebuild name:

gnome-extra/gnome-shell-extension-dash-to-panel-73

Description

An icon taskbar for the Gnome Shell

Added to portage

2026-04-05

gnome-shell-extension-weather-oclock - 50.1
Ebuild name:

gnome-extra/gnome-shell-extension-weather-oclock-50.1

Description

Display the current weather inside the pill n

Added to portage

2026-04-05

gnome-shell-extension-weather-oclock - 50.2
Ebuild name:

gnome-extra/gnome-shell-extension-weather-oclock-50.2

Description

Display the current weather inside the pill n

Added to portage

2026-04-05

gpxsee - 16.1
Ebuild name:

sci-geosciences/gpxsee-16.1

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea file

Added to portage

2026-04-05

guile - 3.0.11
Ebuild name:

dev-scheme/guile-3.0.11

Description

GNU Ubiquitous Intelligent Language for Extensions

Added to portage

2026-04-05

gvfs - 1.58.4
Ebuild name:

gnome-base/gvfs-1.58.4

Description

Virtual filesystem implementation for GIO

Added to portage

2026-04-05

imapsync - 2.314-r1
Ebuild name:

net-mail/imapsync-2.314-r1

Description

Tool for incremental and recursive IMAP transfers between mailboxes

Added to portage

2026-04-05

iosevka - 34.3.0
Ebuild name:

media-fonts/iosevka-34.3.0

Description

Slender typeface for code, from code

Added to portage

2026-04-05

iso-codes - 4.20.1
Ebuild name:

app-text/iso-codes-4.20.1

Description

ISO language, territory, currency, script codes and their translations

Added to portage

2026-04-05

libgsf - 1.14.56
Ebuild name:

gnome-extra/libgsf-1.14.56

Description

The GNOME Structured File Library

Added to portage

2026-04-05

libpanel - 1.10.4
Ebuild name:

gui-libs/libpanel-1.10.4

Description

A dock/panel library for GTK 4

Added to portage

2026-04-05

mac - 12.62
Ebuild name:

media-sound/mac-12.62

Description

Monkey's Audio Codecs

Added to portage

2026-04-05

mcrypt - 2.6.8-r3
Ebuild name:

app-crypt/mcrypt-2.6.8-r3

Description

Replacement of the old unix crypt(1)

Added to portage

2026-04-05

md5deep - 4.4
Ebuild name:

app-crypt/md5deep-4.4

Description

Expanded md5sum program with recursive and comparison options

Added to portage

2026-04-05

md6sum - 1.0-r3
Ebuild name:

app-crypt/md6sum-1.0-r3

Description

A C implementation of MD6

Added to portage

2026-04-05

mhash - 0.9.9.9-r4
Ebuild name:

app-crypt/mhash-0.9.9.9-r4

Description

Library providing a uniform interface to a large number of hash algorith

Added to portage

2026-04-05

minisign - 0.12
Ebuild name:

app-crypt/minisign-0.12

Description

Dead simple tool to sign files and verify signatures

Added to portage

2026-04-05

mit-krb5 - 1.21.3
Ebuild name:

app-crypt/mit-krb5-1.21.3

Description

MIT Kerberos V

Added to portage

2026-04-05

mit-krb5 - 1.21.3-r1
Ebuild name:

app-crypt/mit-krb5-1.21.3-r1

Description

MIT Kerberos V

Added to portage

2026-04-05

mit-krb5 - 1.22.1
Ebuild name:

app-crypt/mit-krb5-1.22.1

Description

MIT Kerberos V

Added to portage

2026-04-05

mit-krb5 - 1.22.2
Ebuild name:

app-crypt/mit-krb5-1.22.2

Description

MIT Kerberos V

Added to portage

2026-04-05

mit-krb5-appl - 1.0.3-r4
Ebuild name:

app-crypt/mit-krb5-appl-1.0.3-r4

Description

Kerberized applications split from the main MIT Kerberos V distrib

Added to portage

2026-04-05

mit-krb5-appl - 1.0.3-r5
Ebuild name:

app-crypt/mit-krb5-appl-1.0.3-r5

Description

Kerberized applications split from the main MIT Kerberos V distrib

Added to portage

2026-04-05

mkp224o - 1.7.0
Ebuild name:

app-crypt/mkp224o-1.7.0

Description

Vanity address generator for v3 Tor hidden service addresses

Added to portage

2026-04-05

mu-cite - 8.1_p202011031127
Ebuild name:

app-emacs/mu-cite-8.1_p202011031127

Description

Message citation utilities for emacsen

Added to portage

2026-04-05

multi-term - 1.4-r1
Ebuild name:

app-emacs/multi-term-1.4-r1

Description

Manage multiple terminal buffers in Emacs

Added to portage

2026-04-05

mutter - 48.8
Ebuild name:

x11-wm/mutter-48.8

Description

GNOME compositing window manager based on Clutter

Added to portage

2026-04-05

noto - 20260401
Ebuild name:

media-fonts/noto-20260401

Description

Google's font family that aims to support all the world's languages

Added to portage

2026-04-05

opencl-clang - 16.0.10
Ebuild name:

dev-libs/opencl-clang-16.0.10

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2026-04-05

opencl-clang - 17.0.5
Ebuild name:

dev-libs/opencl-clang-17.0.5

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2026-04-05

opencl-clang - 18.1.5
Ebuild name:

dev-libs/opencl-clang-18.1.5

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2026-04-05

prowlarr-bin - 2.3.5.5327
Ebuild name:

www-apps/prowlarr-bin-2.3.5.5327

Description

An indexer manager/proxy to integrate with your various PVR apps

Added to portage

2026-04-05

rpi-eeprom - 28.14_p1
Ebuild name:

dev-embedded/rpi-eeprom-28.14_p1

Description

Updater for Raspberry Pi 4/5 bootloader and the VL805 USB controll

Added to portage

2026-04-05

spectre-meltdown-checker - 26.26.0404682
Ebuild name:

app-admin/spectre-meltdown-checker-26.26.0404682

Description

Spectre & Meltdown vulnerability/mitigation checke

Added to portage

2026-04-05

spirv-llvm-translator - 16.0.23
Ebuild name:

dev-util/spirv-llvm-translator-16.0.23

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-04-05

spirv-llvm-translator - 17.0.22
Ebuild name:

dev-util/spirv-llvm-translator-17.0.22

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-04-05

spirv-llvm-translator - 18.1.22
Ebuild name:

dev-util/spirv-llvm-translator-18.1.22

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-04-05

spirv-llvm-translator - 19.1.17
Ebuild name:

dev-util/spirv-llvm-translator-19.1.17

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-04-05

spirv-llvm-translator - 20.1.12
Ebuild name:

dev-util/spirv-llvm-translator-20.1.12

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-04-05

spirv-llvm-translator - 21.1.6
Ebuild name:

dev-util/spirv-llvm-translator-21.1.6

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-04-05

spirv-llvm-translator - 22.1.1
Ebuild name:

dev-util/spirv-llvm-translator-22.1.1

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-04-05

tavern - 3.3.0
Ebuild name:

dev-python/tavern-3.3.0

Description

A tool, library, and Pytest plugin for testing RESTful APIs

Added to portage

2026-04-05

tempestsdr - 0.0_p20260404
Ebuild name:

net-wireless/tempestsdr-0.0_p20260404

Description

Remote video eavesdropping using a software-defined radio pla

Added to portage

2026-04-05

zenity - 4.2.2
Ebuild name:

gnome-extra/zenity-4.2.2

Description

Tool to display dialogs from the commandline and shell scripts

Added to portage

2026-04-05

zoxide - 0.9.9
Ebuild name:

app-shells/zoxide-0.9.9

Description

A smarter cd command for your terminal

Added to portage

2026-04-05

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