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:

87912

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-08-24
dist-kernel - 6.1.184
Ebuild name:

virtual/dist-kernel-6.1.184

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.12.105
Ebuild name:

virtual/dist-kernel-6.12.105

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.18.46
Ebuild name:

virtual/dist-kernel-6.18.46

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.6.153
Ebuild name:

virtual/dist-kernel-6.6.153

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 7.1.10
Ebuild name:

virtual/dist-kernel-7.1.10

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

drumstick - 2.11.1
Ebuild name:

media-sound/drumstick-2.11.1

Description

Qt/C++ wrapper for ALSA sequencer

Added to portage

2026-08-24

evdev - 2.0.0
Ebuild name:

dev-python/evdev-2.0.0

Description

Python library for evdev bindings

Added to portage

2026-08-24

filelock - 3.32.4
Ebuild name:

dev-python/filelock-3.32.4

Description

A platform independent file lock for Python

Added to portage

2026-08-24

gentoo-kernel - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-6.1.184

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-6.12.105

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-6.18.46

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-6.6.153

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-7.1.10

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.184

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.105

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.46

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.153

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.10

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.184

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.105

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.46

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.153

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-24

gentoo-kernel-modprep - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.10

Description

Minimal subset of gentoo-kernel-bin for building modules, f

Added to portage

2026-08-24

nh3 - 0.3.7
Ebuild name:

dev-python/nh3-0.3.7

Description

Ammonia HTML sanitizer Python binding

Added to portage

2026-08-24

oct2py - 6.1.1
Ebuild name:

dev-python/oct2py-6.1.1

Description

Python to GNU Octave bridge

Added to portage

2026-08-24

pypdf - 6.16.2
Ebuild name:

dev-python/pypdf-6.16.2

Description

Python library to work with PDF files

Added to portage

2026-08-24

sphinx-autoapi - 3.8.1
Ebuild name:

dev-python/sphinx-autoapi-3.8.1

Description

A new approach to API documentation in Sphinx

Added to portage

2026-08-24

tellico - 4.2.2
Ebuild name:

kde-misc/tellico-4.2.2

Description

Collection manager based on KDE Frameworks

Added to portage

2026-08-24

vanilla-kernel - 6.1.184
Ebuild name:

sys-kernel/vanilla-kernel-6.1.184

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.12.105
Ebuild name:

sys-kernel/vanilla-kernel-6.12.105

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.18.46
Ebuild name:

sys-kernel/vanilla-kernel-6.18.46

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.6.153
Ebuild name:

sys-kernel/vanilla-kernel-6.6.153

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 7.1.10
Ebuild name:

sys-kernel/vanilla-kernel-7.1.10

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

xwaylandvideobridge - 0.5.2
Ebuild name:

gui-apps/xwaylandvideobridge-0.5.2

Description

Screenshare Wayland windows to XWayland apps

Added to portage

2026-08-24

2026-08-23
bitwarden-cli-bin - 2026.8.0
Ebuild name:

app-admin/bitwarden-cli-bin-2026.8.0

Description

CLI client for Bitwarden compatible servers

Added to portage

2026-08-23

candy - 6.1.11
Ebuild name:

net-vpn/candy-6.1.11

Description

A reliable, low-latency, and anti-censorship virtual private network

Added to portage

2026-08-23

cloudflared - 2026.8.2
Ebuild name:

net-vpn/cloudflared-2026.8.2

Description

A command-line client and tunneling daemon for Cloudflare Tunnel

Added to portage

2026-08-23

cmd2 - 4.2.1
Ebuild name:

dev-python/cmd2-4.2.1

Description

Extra features for standard library's cmd module

Added to portage

2026-08-23

cudd - 3.0.0-r3
Ebuild name:

sci-mathematics/cudd-3.0.0-r3

Description

Colorado University binary Decision Diagram library

Added to portage

2026-08-23

dsfmt - 2.2.5
Ebuild name:

sci-mathematics/dsfmt-2.2.5

Description

Double precision SIMD-oriented Fast Mersenne Twister library

Added to portage

2026-08-23

fig2dev - 3.2.9a-r1
Ebuild name:

media-gfx/fig2dev-3.2.9a-r1

Description

Set of tools for creating TeX documents with graphics

Added to portage

2026-08-23

filezilla - 3.71.0
Ebuild name:

net-ftp/filezilla-3.71.0

Description

FTP client with lots of useful features and an intuitive interface

Added to portage

2026-08-23

fzssh - 1.4.0
Ebuild name:

net-libs/fzssh-1.4.0

Description

A SSH/SFTP library based on libfilezilla

Added to portage

2026-08-23

gentoo-sources - 6.1.184
Ebuild name:

sys-kernel/gentoo-sources-6.1.184

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-23

gentoo-sources - 6.12.105
Ebuild name:

sys-kernel/gentoo-sources-6.12.105

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-23

gentoo-sources - 6.18.46
Ebuild name:

sys-kernel/gentoo-sources-6.18.46

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-23

gentoo-sources - 6.6.153
Ebuild name:

sys-kernel/gentoo-sources-6.6.153

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-23

gentoo-sources - 7.1.10
Ebuild name:

sys-kernel/gentoo-sources-7.1.10

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-23

ggml - 0.21.0-r1
Ebuild name:

sci-ml/ggml-0.21.0-r1

Description

Tensor library for machine learning

Added to portage

2026-08-23

gitea - 1.27.2
Ebuild name:

www-apps/gitea-1.27.2

Description

A painless self-hosted Git service

Added to portage

2026-08-23

h2o - 2.3.0_pre20260804
Ebuild name:

www-servers/h2o-2.3.0_pre20260804

Description

H2O - the optimized HTTP/1, HTTP/2 server

Added to portage

2026-08-23

labwc - 0.20.2
Ebuild name:

gui-wm/labwc-0.20.2

Description

Openbox alternative for wayland

Added to portage

2026-08-23

lego - 5.4.0
Ebuild name:

app-crypt/lego-5.4.0

Description

Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go

Added to portage

2026-08-23

libfilezilla - 0.57.0
Ebuild name:

dev-libs/libfilezilla-0.57.0

Description

C++ library offering some basic functionality for platform-independent

Added to portage

2026-08-23

lsp-docker - 1.0.0_p20240327
Ebuild name:

app-emacs/lsp-docker-1.0.0_p20240327

Description

Emacs library to leverage lsp-mode in the Docker environment

Added to portage

2026-08-23

lsp-java - 3.1_p20240328-r1
Ebuild name:

app-emacs/lsp-java-3.1_p20240328-r1

Description

Emacs Java IDE using Eclipse JDT Language Server

Added to portage

2026-08-23

moto - 5.2.3
Ebuild name:

dev-python/moto-5.2.3

Description

Mock library for boto

Added to portage

2026-08-23

pymdown-extensions - 11.0.2
Ebuild name:

dev-python/pymdown-extensions-11.0.2

Description

Extensions for Python Markdown

Added to portage

2026-08-23

ryzen_smu - 0.1.5-r1
Ebuild name:

app-admin/ryzen_smu-0.1.5-r1

Description

Kernel driver for AMD Ryzen's System Management Unit

Added to portage

2026-08-23

s2geometry - 0.13.1-r3
Ebuild name:

sci-geosciences/s2geometry-0.13.1-r3

Description

Computational geometry and spatial indexing on the sphere

Added to portage

2026-08-23

shadowsocks-libev - 3.3.6-r1
Ebuild name:

net-proxy/shadowsocks-libev-3.3.6-r1

Description

A lightweight secured SOCKS5 proxy for embedded devices and lo

Added to portage

2026-08-23

slack - 4.51.191
Ebuild name:

net-im/slack-4.51.191

Description

Team collaboration tool

Added to portage

2026-08-23

smcipmitool - 2.31.0.260727
Ebuild name:

sys-apps/smcipmitool-2.31.0.260727

Description

An out-of-band utility for interfacing with SuperBlade and IPMI

Added to portage

2026-08-23

sqlite - 3.53.4
Ebuild name:

dev-db/sqlite-3.53.4

Description

SQL database engine

Added to portage

2026-08-23

syrupy - 6.0.0
Ebuild name:

dev-python/syrupy-6.0.0

Description

The sweeter pytest snapshot plugin

Added to portage

2026-08-23

telegram-desktop-bin - 7.1.1
Ebuild name:

net-im/telegram-desktop-bin-7.1.1

Description

Official desktop client for Telegram (binary package)

Added to portage

2026-08-23

turbovnc - 3.3.1
Ebuild name:

net-misc/turbovnc-3.3.1

Description

A fast replacement for TigerVNC

Added to portage

2026-08-23

vanilla-sources - 6.1.184
Ebuild name:

sys-kernel/vanilla-sources-6.1.184

Description

Full sources for the Linux kernel

Added to portage

2026-08-23

vanilla-sources - 6.12.105
Ebuild name:

sys-kernel/vanilla-sources-6.12.105

Description

Full sources for the Linux kernel

Added to portage

2026-08-23

vanilla-sources - 6.18.46
Ebuild name:

sys-kernel/vanilla-sources-6.18.46

Description

Full sources for the Linux kernel

Added to portage

2026-08-23

vanilla-sources - 6.6.153
Ebuild name:

sys-kernel/vanilla-sources-6.6.153

Description

Full sources for the Linux kernel

Added to portage

2026-08-23

vanilla-sources - 7.1.10
Ebuild name:

sys-kernel/vanilla-sources-7.1.10

Description

Full sources for the Linux kernel

Added to portage

2026-08-23

vaultwarden - 1.37.2
Ebuild name:

app-admin/vaultwarden-1.37.2

Description

Unofficial Bitwarden compatible password manager

Added to portage

2026-08-23

vaultwarden-web - 2026.7.0
Ebuild name:

www-apps/vaultwarden-web-2026.7.0

Description

Prebuilt web vault frontend for Vaultwarden

Added to portage

2026-08-23

vopono - 0.10.21
Ebuild name:

net-vpn/vopono-0.10.21

Description

Launch applications via VPN tunnels using temporary network namespaces

Added to portage

2026-08-23

wayfire-plugins-extra - 0.11.2
Ebuild name:

gui-libs/wayfire-plugins-extra-0.11.2

Description

extra plugins for wayfire

Added to portage

2026-08-23

wcm - 0.11.0
Ebuild name:

gui-apps/wcm-0.11.0

Description

Wayfire Config Manager

Added to portage

2026-08-23

wf-shell - 0.11.0
Ebuild name:

gui-apps/wf-shell-0.11.0

Description

Compiz like 3D wayland compositor

Added to portage

2026-08-23

wine-staging - 11.16
Ebuild name:

app-emulation/wine-staging-11.16

Description

Free implementation of Windows(tm) on Unix, with Wine-Staging patc

Added to portage

2026-08-23

zellij - 0.45.0
Ebuild name:

app-misc/zellij-0.45.0

Description

A terminal workspace with batteries included

Added to portage

2026-08-23

zfs - 2.2.11
Ebuild name:

sys-fs/zfs-2.2.11

Description

Userland utilities for ZFS Linux kernel module

Added to portage

2026-08-23

zfs - 2.3.9
Ebuild name:

sys-fs/zfs-2.3.9

Description

Userland utilities for ZFS Linux kernel module

Added to portage

2026-08-23

zfs - 2.4.4
Ebuild name:

sys-fs/zfs-2.4.4

Description

Linux kernel module and userland utilities for ZFS

Added to portage

2026-08-23

zfs-kmod - 2.2.11
Ebuild name:

sys-fs/zfs-kmod-2.2.11

Description

Linux ZFS kernel module for sys-fs/zfs

Added to portage

2026-08-23

zfs-kmod - 2.3.9
Ebuild name:

sys-fs/zfs-kmod-2.3.9

Description

Linux ZFS kernel module for sys-fs/zfs

Added to portage

2026-08-23

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