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:

82137

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-11-23
breeze - 6.5.3-r1
Ebuild name:

kde-plasma/breeze-6.5.3-r1

Description

Breeze visual style for the Plasma desktop

Added to portage

2025-11-23

cpptrace - 1.0.4
Ebuild name:

dev-cpp/cpptrace-1.0.4

Description

Simple, portable, and self-contained stacktrace library for C++11 and newer

Added to portage

2025-11-23

gcc - 13.4.1_p20251120
Ebuild name:

sys-devel/gcc-13.4.1_p20251120

Description

The GNU Compiler Collection

Added to portage

2025-11-23

gcc - 14.3.1_p20251121
Ebuild name:

sys-devel/gcc-14.3.1_p20251121

Description

The GNU Compiler Collection

Added to portage

2025-11-23

gcc - 15.2.1_p20251122
Ebuild name:

sys-devel/gcc-15.2.1_p20251122

Description

The GNU Compiler Collection

Added to portage

2025-11-23

odamex - 11.2.0
Ebuild name:

games-engines/odamex-11.2.0

Description

Online multiplayer free software engine for DOOM

Added to portage

2025-11-23

protontricks - 1.13.1
Ebuild name:

app-emulation/protontricks-1.13.1

Description

app-emulation/winetricks wrapper for Proton (Steam Play) games

Added to portage

2025-11-23

rq - 2.6.1
Ebuild name:

dev-python/rq-2.6.1

Description

Simple, lightweight library for creating and processing background jobs

Added to portage

2025-11-23

stormlib - 9.31
Ebuild name:

app-arch/stormlib-9.31

Description

Library to read and write MPQ archives (Diablo, StarCraft)

Added to portage

2025-11-23

tpm-tools - 1.3.9.2-r1
Ebuild name:

app-crypt/tpm-tools-1.3.9.2-r1

Description

TrouSerS' support tools for the Trusted Platform Modules

Added to portage

2025-11-23

tpm2-abrmd - 3.0.0-r2
Ebuild name:

app-crypt/tpm2-abrmd-3.0.0-r2

Description

TPM2 Access Broker & Resource Manager

Added to portage

2025-11-23

tpm2-openssl - 1.3.0
Ebuild name:

app-crypt/tpm2-openssl-1.3.0

Description

OpenSSL Provider for TPM2 integration

Added to portage

2025-11-23

tpm2-pkcs11 - 1.9.1
Ebuild name:

app-crypt/tpm2-pkcs11-1.9.1

Description

A PKCS11 interface for TPM2 hardware

Added to portage

2025-11-23

uri - 4.4.0-r1
Ebuild name:

dev-ml/uri-4.4.0-r1

Description

An RFC3986 URI/URL parsing library

Added to portage

2025-11-23

vivaldi-snapshot - 7.8.3872.3
Ebuild name:

www-client/vivaldi-snapshot-7.8.3872.3

Description

A browser for our friends

Added to portage

2025-11-23

2025-11-22
algol68g - 3.10.6
Ebuild name:

dev-lang/algol68g-3.10.6

Description

Algol 68 Genie compiler-interpreter

Added to portage

2025-11-22

aws-sam-translator - 1.103.0
Ebuild name:

dev-python/aws-sam-translator-1.103.0

Description

A library that transform SAM templates into AWS CloudFormatio

Added to portage

2025-11-22

aws-session-manager-plugin - 1.2.764.0
Ebuild name:

app-admin/aws-session-manager-plugin-1.2.764.0

Description

AWS Session Manager Plugin for aws-cli

Added to portage

2025-11-22

awscli - 1.43.2
Ebuild name:

app-admin/awscli-1.43.2

Description

Universal Command Line Environment for AWS

Added to portage

2025-11-22

bedrock-server - 1.21.124.2
Ebuild name:

games-server/bedrock-server-1.21.124.2

Description

The official bedrock (non-java) based server for the sandbox

Added to portage

2025-11-22

bluez - 5.85
Ebuild name:

net-wireless/bluez-5.85

Description

Bluetooth Tools and System Daemons for Linux

Added to portage

2025-11-22

boto3 - 1.41.2
Ebuild name:

dev-python/boto3-1.41.2

Description

The AWS SDK for Python

Added to portage

2025-11-22

botocore - 1.41.2
Ebuild name:

dev-python/botocore-1.41.2

Description

Low-level, data-driven core of boto 3

Added to portage

2025-11-22

brotlicffi - 1.2.0.0
Ebuild name:

dev-python/brotlicffi-1.2.0.0

Description

Python binding to the Brotli library

Added to portage

2025-11-22

claude-code - 2.0.50
Ebuild name:

dev-util/claude-code-2.0.50

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2025-11-22

designer - 5.15.18-r1
Ebuild name:

dev-qt/designer-5.15.18-r1

Description

WYSIWYG tool for designing and building graphical user interfaces with Q

Added to portage

2025-11-22

devcontainer - 0.80.2
Ebuild name:

app-containers/devcontainer-0.80.2

Description

Reference implementation of the Development Containers specifica

Added to portage

2025-11-22

django-tables2 - 2.8.0
Ebuild name:

dev-python/django-tables2-2.8.0

Description

Table/data-grid framework for Django

Added to portage

2025-11-22

eprover - 3.2.5
Ebuild name:

sci-mathematics/eprover-3.2.5

Description

Automated theorem prover for full first-order logic with equality

Added to portage

2025-11-22

exceptiongroup - 1.3.1
Ebuild name:

dev-python/exceptiongroup-1.3.1

Description

Backport of PEP 654 (exception groups)

Added to portage

2025-11-22

fake-py - 0.11.12
Ebuild name:

dev-python/fake-py-0.11.12

Description

Minimalistic, standalone alternative fake data generator with no depende

Added to portage

2025-11-22

fltk - 1.4.4-r1
Ebuild name:

x11-libs/fltk-1.4.4-r1

Description

Fast Light GUI Toolkit

Added to portage

2025-11-22

gleam - 1.13.0
Ebuild name:

dev-lang/gleam-1.13.0

Description

A friendly language for building type-safe, scalable systems

Added to portage

2025-11-22

gnome-shell-extension-gsconnect - 71
Ebuild name:

gnome-extra/gnome-shell-extension-gsconnect-71

Description

KDE Connect implementation for GNOME

Added to portage

2025-11-22

huggingface_hub - 0.36.0-r1
Ebuild name:

sci-ml/huggingface_hub-0.36.0-r1

Description

a client library to interact with the Hugging Face Hub

Added to portage

2025-11-22

huggingface_hub - 1.0.1
Ebuild name:

sci-ml/huggingface_hub-1.0.1

Description

a client library to interact with the Hugging Face Hub

Added to portage

2025-11-22

kdstatemachineeditor - 2.2.0
Ebuild name:

dev-util/kdstatemachineeditor-2.2.0

Description

Framework for creating Qt State Machine metacode using graphica

Added to portage

2025-11-22

labltk - 8.06.15-r1
Ebuild name:

dev-ml/labltk-8.06.15-r1

Description

OCaml interface to the Tcl/Tk GUI framework

Added to portage

2025-11-22

libadwaita - 1.7.7-r1
Ebuild name:

gui-libs/libadwaita-1.7.7-r1

Description

Building blocks for modern GNOME applications

Added to portage

2025-11-22

libadwaita - 1.7.9
Ebuild name:

gui-libs/libadwaita-1.7.9

Description

Building blocks for modern GNOME applications

Added to portage

2025-11-22

libadwaita - 1.8.2
Ebuild name:

gui-libs/libadwaita-1.8.2

Description

Building blocks for modern GNOME applications

Added to portage

2025-11-22

libdca - 0.0.7-r1
Ebuild name:

media-libs/libdca-0.0.7-r1

Description

Library for decoding DTS Coherent Acoustics streams used in DVD

Added to portage

2025-11-22

libopenrazer - 0.4.0
Ebuild name:

dev-libs/libopenrazer-0.4.0

Description

Qt wrapper around the D-Bus API from OpenRazer

Added to portage

2025-11-22

libpng - 1.6.51
Ebuild name:

media-libs/libpng-1.6.51

Description

Portable Network Graphics library

Added to portage

2025-11-22

libsoup - 3.6.5-r1
Ebuild name:

net-libs/libsoup-3.6.5-r1

Description

HTTP client/server library for GNOME

Added to portage

2025-11-22

mesa - 25.3.0
Ebuild name:

media-libs/mesa-25.3.0

Description

OpenGL-like graphic library for Linux

Added to portage

2025-11-22

mesa_clc - 25.3.0
Ebuild name:

dev-util/mesa_clc-25.3.0

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2025-11-22

mycli - 1.41.1
Ebuild name:

dev-db/mycli-1.41.1

Description

CLI for MySQL Database with auto-completion and syntax highlighting

Added to portage

2025-11-22

netcoredbg - 3.1.2.1054-r1
Ebuild name:

dev-dotnet/netcoredbg-3.1.2.1054-r1

Description

NetCoreDbg is a managed code debugger with MI interface for Cor

Added to portage

2025-11-22

nim - 2.2.6
Ebuild name:

dev-lang/nim-2.2.6

Description

Compiled, garbage-collected systems programming language

Added to portage

2025-11-22

ninja - 1.13.2-r1
Ebuild name:

dev-build/ninja-1.13.2-r1

Description

A small build system similar to make

Added to portage

2025-11-22

nvidia-drivers - 580.94.11
Ebuild name:

x11-drivers/nvidia-drivers-580.94.11

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2025-11-22

ogre - 14.4.1
Ebuild name:

dev-games/ogre-14.4.1

Description

Object-oriented Graphics Rendering Engine

Added to portage

2025-11-22

opensmt - 2.9.2
Ebuild name:

sci-mathematics/opensmt-2.9.2

Description

Compact and open-source SMT-solver written in C++

Added to portage

2025-11-22

opentelemetry-cpp - 1.24.0
Ebuild name:

dev-cpp/opentelemetry-cpp-1.24.0

Description

The OpenTelemetry C++ Client

Added to portage

2025-11-22

os-service-types - 1.8.2
Ebuild name:

dev-python/os-service-types-1.8.2

Description

A library to handle official service types for OpenStack and it's

Added to portage

2025-11-22

perl - 5.42.0-r1
Ebuild name:

dev-lang/perl-5.42.0-r1

Description

Larry Wall's Practical Extraction and Report Language

Added to portage

2025-11-22

plz - 0.9.1
Ebuild name:

app-emacs/plz-0.9.1

Description

HTTP library with curl backend for GNU Emacs

Added to portage

2025-11-22

po-mode - 0.22
Ebuild name:

app-emacs/po-mode-0.22

Description

Major mode for GNU gettext PO files

Added to portage

2025-11-22

po-mode - 0.26
Ebuild name:

app-emacs/po-mode-0.26

Description

Major mode for GNU gettext PO files

Added to portage

2025-11-22

podman-compose - 1.5.0
Ebuild name:

app-containers/podman-compose-1.5.0

Description

A script to run docker-compose.yml using Podman

Added to portage

2025-11-22

podman-tui - 1.9.0
Ebuild name:

app-containers/podman-tui-1.9.0

Description

Terminal UI frontend for Podman

Added to portage

2025-11-22

poke - 3.0
Ebuild name:

app-emacs/poke-3.0

Description

Emacs meets GNU poke

Added to portage

2025-11-22

ppsspp - 1.19.3-r1
Ebuild name:

games-emulation/ppsspp-1.19.3-r1

Description

A PSP emulator written in C++

Added to portage

2025-11-22

ppxlib - 0.37.0-r1
Ebuild name:

dev-ml/ppxlib-0.37.0-r1

Description

Base library and tools for ppx rewriters

Added to portage

2025-11-22

psycopg - 3.2.13
Ebuild name:

dev-python/psycopg-3.2.13

Description

PostgreSQL database adapter for Python

Added to portage

2025-11-22

pyproject-metadata - 0.10.0
Ebuild name:

dev-python/pyproject-metadata-0.10.0

Description

PEP 621 metadata parsing

Added to portage

2025-11-22

pyside - 6.10.1
Ebuild name:

dev-python/pyside-6.10.1

Description

Python bindings for the Qt framework

Added to portage

2025-11-22

qttools - 6.10.1-r1
Ebuild name:

dev-qt/qttools-6.10.1-r1

Description

Qt Tools Collection

Added to portage

2025-11-22

qutebrowser - 3.6.1-r1
Ebuild name:

www-client/qutebrowser-3.6.1-r1

Description

Keyboard-driven, vim-like browser based on Python and Qt

Added to portage

2025-11-22

razergenie - 1.3.0
Ebuild name:

sys-apps/razergenie-1.3.0

Description

Razer devices configurator

Added to portage

2025-11-22

restructuredtext-lint - 1.4.1
Ebuild name:

dev-python/restructuredtext-lint-1.4.1

Description

Checks PyPI validity of reStructuredText

Added to portage

2025-11-22

restructuredtext-lint - 2.0.0
Ebuild name:

dev-python/restructuredtext-lint-2.0.0

Description

Checks PyPI validity of reStructuredText

Added to portage

2025-11-22

ruff - 0.14.6
Ebuild name:

dev-util/ruff-0.14.6

Description

An extremely fast Python linter, written in Rust

Added to portage

2025-11-22

scx - 1.0.18
Ebuild name:

sys-kernel/scx-1.0.18

Description

sched_ext schedulers and tools

Added to portage

2025-11-22

scx-loader - 1.0.18
Ebuild name:

sys-kernel/scx-loader-1.0.18

Description

DBUS on-demand loader of sched-ext schedulers

Added to portage

2025-11-22

smlnj - 110.99.9
Ebuild name:

dev-lang/smlnj-110.99.9

Description

Standard ML of New Jersey compiler and libraries

Added to portage

2025-11-22

stdcompat - 21.1-r1
Ebuild name:

dev-ml/stdcompat-21.1-r1

Description

Compatibility module for OCaml standard library

Added to portage

2025-11-22

stripe - 14.0.1
Ebuild name:

dev-python/stripe-14.0.1

Description

Stripe Python bindings

Added to portage

2025-11-22

tavern - 3.0.2
Ebuild name:

dev-python/tavern-3.0.2

Description

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

Added to portage

2025-11-22

tea - 0.11.1
Ebuild name:

dev-util/tea-0.11.1

Description

Command line tool to interact with Gitea server

Added to portage

2025-11-22

telegram-desktop - 6.3.3
Ebuild name:

net-im/telegram-desktop-6.3.3

Description

Official desktop client for Telegram

Added to portage

2025-11-22

time-machine - 3.1.0
Ebuild name:

dev-python/time-machine-3.1.0

Description

Travel through time in your tests

Added to portage

2025-11-22

transient - 0.11.0
Ebuild name:

app-emacs/transient-0.11.0

Description

Transient commands abstraction for GNU Emacs

Added to portage

2025-11-22

types-psutil - 7.1.1.20251122
Ebuild name:

dev-python/types-psutil-7.1.1.20251122

Description

Typing stubs for psutil

Added to portage

2025-11-22

unifi - 10.0.156
Ebuild name:

net-wireless/unifi-10.0.156

Description

A Management Controller for Ubiquiti Networks UniFi APs

Added to portage

2025-11-22

unrar - 7.2.2
Ebuild name:

app-arch/unrar-7.2.2

Description

Uncompress rar files

Added to portage

2025-11-22

whatsapp-desktop-bin - 0.5.3
Ebuild name:

net-im/whatsapp-desktop-bin-0.5.3

Description

Unofficial electron-based wrapper around WhatsApp Web

Added to portage

2025-11-22

wps-office - 11.1.0.11723-r1
Ebuild name:

app-office/wps-office-11.1.0.11723-r1

Description

WPS Office is an office productivity suite

Added to portage

2025-11-22

xmlsec - 1.3.17
Ebuild name:

dev-python/xmlsec-1.3.17

Description

Python bindings for the XML Security Library

Added to portage

2025-11-22

xxhash - 0.8.3-r1
Ebuild name:

dev-libs/xxhash-0.8.3-r1

Description

Extremely fast non-cryptographic hash algorithm

Added to portage

2025-11-22

zconfig - 4.3
Ebuild name:

dev-python/zconfig-4.3

Description

Configuration library supporting a hierarchical schema-driven model

Added to portage

2025-11-22

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 17.8 ms