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:

80886

userrating:

average rating: 1.2 (50 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-09-17
aspell-af - 0.50.0-r1
Ebuild name:

app-dicts/aspell-af-0.50.0-r1

Description

Aspell () language dictionary

Added to portage

2025-09-17

aspell-am - 0.03.1-r1
Ebuild name:

app-dicts/aspell-am-0.03.1-r1

Description

Aspell () language dictionary

Added to portage

2025-09-17

aspell-ar - 1.2.0-r1
Ebuild name:

app-dicts/aspell-ar-1.2.0-r1

Description

Aspell () language dictionary

Added to portage

2025-09-17

awscli - 1.42.32
Ebuild name:

app-admin/awscli-1.42.32

Description

Universal Command Line Environment for AWS

Added to portage

2025-09-17

boto3 - 1.40.32
Ebuild name:

dev-python/boto3-1.40.32

Description

The AWS SDK for Python

Added to portage

2025-09-17

botocore - 1.40.32
Ebuild name:

dev-python/botocore-1.40.32

Description

Low-level, data-driven core of boto 3

Added to portage

2025-09-17

cmd2 - 3.0.0_beta1
Ebuild name:

dev-python/cmd2-3.0.0_beta1

Description

Extra features for standard library's cmd module

Added to portage

2025-09-17

cryptography - 46.0.1
Ebuild name:

dev-python/cryptography-46.0.1

Description

Library providing cryptographic recipes and primitives

Added to portage

2025-09-17

cython - 3.1.4
Ebuild name:

dev-python/cython-3.1.4

Description

A Python to C compiler

Added to portage

2025-09-17

dust - 1.2.3
Ebuild name:

sys-block/dust-1.2.3

Description

A more intuitive version of du

Added to portage

2025-09-17

expat - 2.7.2
Ebuild name:

dev-libs/expat-2.7.2

Description

Stream-oriented XML parser library

Added to portage

2025-09-17

folly - 2025.04.14.00-r2
Ebuild name:

dev-cpp/folly-2025.04.14.00-r2

Description

An open-source C++ library developed and used at Facebook

Added to portage

2025-09-17

gmmlib - 22.8.2
Ebuild name:

media-libs/gmmlib-22.8.2

Description

Intel Graphics Memory Management Library

Added to portage

2025-09-17

google-api-python-client - 2.182.0
Ebuild name:

dev-python/google-api-python-client-2.182.0

Description

Google API Client for Python

Added to portage

2025-09-17

grpcio - 1.75.0
Ebuild name:

dev-python/grpcio-1.75.0

Description

HTTP/2-based RPC framework

Added to portage

2025-09-17

grpcio-status - 1.75.0
Ebuild name:

dev-python/grpcio-status-1.75.0

Description

Reference package for GRPC Python status proto mapping

Added to portage

2025-09-17

hypothesis - 6.139.1
Ebuild name:

dev-python/hypothesis-6.139.1

Description

A library for property based testing

Added to portage

2025-09-17

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

media-libs/libva-intel-media-driver-25.3.4

Description

Intel Media Driver for VA-API (iHD)

Added to portage

2025-09-17

log4cplus - 2.1.2-r1
Ebuild name:

dev-libs/log4cplus-2.1.2-r1

Description

C++ port of the Log for Java (log4j) logging library

Added to portage

2025-09-17

mvfst - 2025.04.14.00-r1
Ebuild name:

dev-cpp/mvfst-2025.04.14.00-r1

Description

An implementation of the QUIC transport protocol

Added to portage

2025-09-17

nbclassic - 1.3.3
Ebuild name:

dev-python/nbclassic-1.3.3

Description

Jupyter Notebook as a Jupyter Server Extension

Added to portage

2025-09-17

notus-scanner - 22.7.2
Ebuild name:

net-analyzer/notus-scanner-22.7.2

Description

Notus is a vulnerability scanner for creating results from local

Added to portage

2025-09-17

openjdk - 25_p36
Ebuild name:

dev-java/openjdk-25_p36

Description

Open source implementation of the Java programming language

Added to portage

2025-09-17

openpgp-keys-gentoo-developers - 20250915
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20250915

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2025-09-17

phonenumbers - 9.0.14
Ebuild name:

dev-python/phonenumbers-9.0.14

Description

Python port of Google's libphonenumber

Added to portage

2025-09-17

pymongo - 4.15.1
Ebuild name:

dev-python/pymongo-4.15.1

Description

Python driver for MongoDB

Added to portage

2025-09-17

pyopenssl - 25.3.0
Ebuild name:

dev-python/pyopenssl-25.3.0

Description

Python interface to the OpenSSL library

Added to portage

2025-09-17

pytest-lazy-fixtures - 1.4.0
Ebuild name:

dev-python/pytest-lazy-fixtures-1.4.0

Description

Allows you to use fixtures in @pytest.mark.parametrize

Added to portage

2025-09-17

pytest-mock - 3.15.1
Ebuild name:

dev-python/pytest-mock-3.15.1

Description

Thin-wrapper around the mock package for easier use with pytest

Added to portage

2025-09-17

qgpgme - 2.0.0-r2
Ebuild name:

dev-libs/qgpgme-2.0.0-r2

Description

GnuPG Made Easy is a library for making GnuPG easier to use (Qt bindings)

Added to portage

2025-09-17

subtitlecomposer - 0.8.2
Ebuild name:

media-video/subtitlecomposer-0.8.2

Description

Text-based subtitles editor

Added to portage

2025-09-17

tig - 2.6.0
Ebuild name:

dev-vcs/tig-2.6.0

Description

text mode interface for git

Added to portage

2025-09-17

wakeonlan - 0.42
Ebuild name:

net-misc/wakeonlan-0.42

Description

Client for Wake-On-LAN

Added to portage

2025-09-17

wiremix - 0.7.0
Ebuild name:

media-sound/wiremix-0.7.0

Description

A TUI mixer for PipeWire

Added to portage

2025-09-17

yubikey-manager - 5.8.0
Ebuild name:

app-crypt/yubikey-manager-5.8.0

Description

Python library and command line tool for configuring a YubiKey

Added to portage

2025-09-17

yubioath-flutter-bin - 7.1.1
Ebuild name:

app-crypt/yubioath-flutter-bin-7.1.1

Description

Yubico Authenticator for TOTP

Added to portage

2025-09-17

yubioath-flutter-bin - 7.2.3
Ebuild name:

app-crypt/yubioath-flutter-bin-7.2.3

Description

Yubico Authenticator for TOTP

Added to portage

2025-09-17

zoom - 6.6.0.4410
Ebuild name:

net-im/zoom-6.6.0.4410

Description

Video conferencing and web conferencing service

Added to portage

2025-09-17

zulucrypt - 7.0.0
Ebuild name:

app-crypt/zulucrypt-7.0.0

Description

Front end to cryptsetup

Added to portage

2025-09-17

2025-09-16
apparmor-profiles - 4.1.1
Ebuild name:

sec-policy/apparmor-profiles-4.1.1

Description

A collection of profiles for the AppArmor application security s

Added to portage

2025-09-16

asciinema - 3.0.0
Ebuild name:

app-misc/asciinema-3.0.0

Description

Terminal session recorder, streamer, and player

Added to portage

2025-09-16

awscli - 1.42.31
Ebuild name:

app-admin/awscli-1.42.31

Description

Universal Command Line Environment for AWS

Added to portage

2025-09-16

blas - 3.8-r1
Ebuild name:

virtual/blas-3.8-r1

Description

Virtual for FORTRAN 77 BLAS implementation

Added to portage

2025-09-16

blessed - 1.22.0
Ebuild name:

dev-python/blessed-1.22.0

Description

Library for making terminal apps using colors, keyboard input and positio

Added to portage

2025-09-16

blis - 1.0-r1
Ebuild name:

sci-libs/blis-1.0-r1

Description

BLAS-like Library Instantiation Software Framework

Added to portage

2025-09-16

boost - 1.89.0
Ebuild name:

dev-libs/boost-1.89.0

Description

Boost Libraries for C++

Added to portage

2025-09-16

boto3 - 1.40.31
Ebuild name:

dev-python/boto3-1.40.31

Description

The AWS SDK for Python

Added to portage

2025-09-16

botocore - 1.40.31
Ebuild name:

dev-python/botocore-1.40.31

Description

Low-level, data-driven core of boto 3

Added to portage

2025-09-16

calamares - 3.3.14-r3
Ebuild name:

app-admin/calamares-3.3.14-r3

Description

Distribution-independent installer framework

Added to portage

2025-09-16

calamares-gentoo-livecd - 3.3.14_p20250915
Ebuild name:

app-misc/calamares-gentoo-livecd-3.3.14_p20250915

Description

Gentoo Linux Calamares installer configuration fo

Added to portage

2025-09-16

cblas - 3.8-r1
Ebuild name:

virtual/cblas-3.8-r1

Description

Virtual for BLAS C implementation

Added to portage

2025-09-16

ceph - 20.1.0-r1
Ebuild name:

sys-cluster/ceph-20.1.0-r1

Description

Ceph distributed filesystem

Added to portage

2025-09-16

claude-code - 1.0.115
Ebuild name:

dev-util/claude-code-1.0.115

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2025-09-16

discord - 0.0.110
Ebuild name:

net-im/discord-0.0.110

Description

All-in-one voice and text chat for gamers

Added to portage

2025-09-16

duckdb - 1.4.0
Ebuild name:

dev-db/duckdb-1.4.0

Description

high-performance analytical database system

Added to portage

2025-09-16

dulwich - 0.24.1
Ebuild name:

dev-python/dulwich-0.24.1

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2025-09-16

faker - 37.8.0
Ebuild name:

dev-python/faker-37.8.0

Description

A Python package that generates fake data for you

Added to portage

2025-09-16

fastbencode - 0.3.6
Ebuild name:

dev-python/fastbencode-0.3.6

Description

Implementation of bencode with Rust implementation

Added to portage

2025-09-16

firefox - 140.3.0
Ebuild name:

www-client/firefox-140.3.0

Description

Firefox Web Browser

Added to portage

2025-09-16

firefox - 143.0
Ebuild name:

www-client/firefox-143.0

Description

Firefox Web Browser

Added to portage

2025-09-16

firefox-bin - 140.3.0
Ebuild name:

www-client/firefox-bin-140.3.0

Description

Firefox Web Browser

Added to portage

2025-09-16

fitsio - 1.2.8
Ebuild name:

dev-python/fitsio-1.2.8

Description

Python library to read from and write to FITS files

Added to portage

2025-09-16

freeipmi - 1.6.16
Ebuild name:

sys-libs/freeipmi-1.6.16

Description

Provides Remote-Console and System Management Software as per IPMI v1.5/2.

Added to portage

2025-09-16

gocryptfs - 2.6.1-r1
Ebuild name:

app-crypt/gocryptfs-2.6.1-r1

Description

Encrypted overlay filesystem written in Go

Added to portage

2025-09-16

godot - 4.5
Ebuild name:

dev-games/godot-4.5

Description

Multi-platform 2D and 3D game engine with a feature-rich editor

Added to portage

2025-09-16

httplib2 - 0.31.0
Ebuild name:

dev-python/httplib2-0.31.0

Description

A comprehensive HTTP client library

Added to portage

2025-09-16

hypothesis - 6.138.17
Ebuild name:

dev-python/hypothesis-6.138.17

Description

A library for property based testing

Added to portage

2025-09-16

inline-snapshot - 0.29.0
Ebuild name:

dev-python/inline-snapshot-0.29.0

Description

Create and update inline snapshots in your Python tests

Added to portage

2025-09-16

innoextract - 1.10_pre20250206-r1
Ebuild name:

app-arch/innoextract-1.10_pre20250206-r1

Description

A tool to unpack installers created by Inno Setup

Added to portage

2025-09-16

iozone - 3.507
Ebuild name:

app-benchmarks/iozone-3.507

Description

Filesystem benchmarking program

Added to portage

2025-09-16

iozone - 3.508
Ebuild name:

app-benchmarks/iozone-3.508

Description

Filesystem benchmarking program

Added to portage

2025-09-16

kombu - 5.6.0_beta3
Ebuild name:

dev-python/kombu-5.6.0_beta3

Description

AMQP Messaging Framework for Python

Added to portage

2025-09-16

lapack - 3.10-r1
Ebuild name:

virtual/lapack-3.10-r1

Description

Virtual for Linear Algebra Package FORTRAN 77 (LAPACK) implementation

Added to portage

2025-09-16

lapacke - 3.8-r2
Ebuild name:

virtual/lapacke-3.8-r2

Description

Virtual for LAPACK C implementation

Added to portage

2025-09-16

lldpd - 1.0.20
Ebuild name:

net-misc/lldpd-1.0.20

Description

Implementation of IEEE 802.1ab (LLDP)

Added to portage

2025-09-16

mkdocs-material - 9.6.20
Ebuild name:

dev-python/mkdocs-material-9.6.20

Description

A Material Design theme for MkDocs

Added to portage

2025-09-16

nokogiri - 1.18.10
Ebuild name:

dev-ruby/nokogiri-1.18.10

Description

Nokogiri is an HTML, XML, SAX, and Reader parser

Added to portage

2025-09-16

openipmi - 2.0.37
Ebuild name:

sys-libs/openipmi-2.0.37

Description

Library interface to IPMI

Added to portage

2025-09-16

openpgp-keys-gocryptfs - 20250916
Ebuild name:

sec-keys/openpgp-keys-gocryptfs-20250916

Description

OpenPGP keys used to sign gocryptfs

Added to portage

2025-09-16

paramiko - 4.0.0-r1
Ebuild name:

dev-python/paramiko-4.0.0-r1

Description

SSH2 protocol library

Added to portage

2025-09-16

pixi - 0.55.0
Ebuild name:

dev-util/pixi-0.55.0

Description

A package management and workflow tool

Added to portage

2025-09-16

poetry - 2.2.0
Ebuild name:

dev-python/poetry-2.2.0

Description

A frontend for poetry - a python dependency management and packaging tool

Added to portage

2025-09-16

poetry-core - 2.2.0
Ebuild name:

dev-python/poetry-core-2.2.0

Description

Poetry PEP 517 Build Backend

Added to portage

2025-09-16

protobuf - 6.32.1-r1
Ebuild name:

dev-python/protobuf-6.32.1-r1

Description

Google's Protocol Buffers - Python bindings

Added to portage

2025-09-16

pyicu - 2.15.3
Ebuild name:

dev-python/pyicu-2.15.3

Description

Python bindings for dev-libs/icu

Added to portage

2025-09-16

pytest-check - 2.5.4
Ebuild name:

dev-python/pytest-check-2.5.4

Description

pytest plugin that allows multiple failures per test

Added to portage

2025-09-16

qtconsole - 5.7.0
Ebuild name:

dev-python/qtconsole-5.7.0

Description

Qt-based console for Jupyter with support for rich media output

Added to portage

2025-09-16

radicale - 3.5.6
Ebuild name:

www-apps/radicale-3.5.6

Description

A simple CalDAV calendar server

Added to portage

2025-09-16

regexp_parser - 2.11.3
Ebuild name:

dev-ruby/regexp_parser-2.11.3

Description

A library for tokenizing, lexing, and parsing Ruby regular expression

Added to portage

2025-09-16

ruby - 3.4.6
Ebuild name:

dev-lang/ruby-3.4.6

Description

An object-oriented scripting language

Added to portage

2025-09-16

schroot - 1.6.13_p7-r2
Ebuild name:

dev-util/schroot-1.6.13_p7-r2

Description

Utility to execute commands in a chroot environment

Added to portage

2025-09-16

sequel - 5.96.0
Ebuild name:

dev-ruby/sequel-5.96.0

Description

A lightweight database toolkit for Ruby

Added to portage

2025-09-16

simdjson - 4.0.3
Ebuild name:

dev-libs/simdjson-4.0.3

Description

SIMD accelerated C++ JSON library

Added to portage

2025-09-16

tuxedo-drivers - 4.15.4
Ebuild name:

app-laptop/tuxedo-drivers-4.15.4

Description

Kernel modules for TUXEDO laptops

Added to portage

2025-09-16

types-gdb - 16.3.0.20250915
Ebuild name:

dev-python/types-gdb-16.3.0.20250915

Description

Typing stubs for gdb

Added to portage

2025-09-16

urwid - 3.0.3
Ebuild name:

dev-python/urwid-3.0.3

Description

Curses-based user interface library for Python

Added to portage

2025-09-16

xlsxwriter - 3.2.9
Ebuild name:

dev-python/xlsxwriter-3.2.9

Description

Python module for creating Excel XLSX files

Added to portage

2025-09-16

xvfbwrapper - 0.2.14
Ebuild name:

dev-python/xvfbwrapper-0.2.14

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2025-09-16

yubikey-manager - 5.8.0
Ebuild name:

app-crypt/yubikey-manager-5.8.0

Description

Python library and command line tool for configuring a YubiKey

Added to portage

2025-09-16

zeep - 4.3.2
Ebuild name:

dev-python/zeep-4.3.2

Description

A modern/fast Python SOAP client based on lxml / requests

Added to portage

2025-09-16

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: 21.7 ms