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:

68069

userrating:

average rating: 1.2 (8 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
2024-07-18
merlin - 4.12-r1
Ebuild name:

dev-ml/merlin-4.12-r1

Description

Context sensitive completion for OCaml in Vim and Emacs

Added to portage

2024-07-18

merlin - 4.13-r3
Ebuild name:

dev-ml/merlin-4.13-r3

Description

Context sensitive completion for OCaml in Vim and Emacs

Added to portage

2024-07-18

pmix - 5.0.3
Ebuild name:

sys-cluster/pmix-5.0.3

Description

The Process Management Interface (PMI) Exascale

Added to portage

2024-07-18

2024-07-17
0xtools - 2.0.2
Ebuild name:

dev-util/0xtools-2.0.2

Description

Always-on profiling for production systems

Added to portage

2024-07-17

alt-ergo - 2.4.3-r2
Ebuild name:

sci-mathematics/alt-ergo-2.4.3-r2

Description

Automatic theorem prover

Added to portage

2024-07-17

apache-arrow - 17.0.0
Ebuild name:

dev-libs/apache-arrow-17.0.0

Description

A cross-language development platform for in-memory data.

Added to portage

2024-07-17

c-ares - 1.32.2
Ebuild name:

net-dns/c-ares-1.32.2

Description

C library that resolves names asynchronously

Added to portage

2024-07-17

cfn-lint - 1.7.1
Ebuild name:

dev-python/cfn-lint-1.7.1

Description

CloudFormation Linter

Added to portage

2024-07-17

containerd - 1.7.19
Ebuild name:

app-containers/containerd-1.7.19

Description

A daemon to control runC

Added to portage

2024-07-17

cosign - 2.2.4
Ebuild name:

app-containers/cosign-2.2.4

Description

container signing utility

Added to portage

2024-07-17

croniter - 2.0.7
Ebuild name:

dev-python/croniter-2.0.7

Description

Python module to provide iteration for datetime object

Added to portage

2024-07-17

eigen - 3.4.0-r3
Ebuild name:

dev-cpp/eigen-3.4.0-r3

Description

C++ template library for linear algebra

Added to portage

2024-07-17

element - 1.11.71
Ebuild name:

www-apps/element-1.11.71

Description

A glossy Matrix collaboration client for the web

Added to portage

2024-07-17

elinks - 0.16.1.1-r4
Ebuild name:

www-client/elinks-0.16.1.1-r4

Description

Advanced and well-established text-mode web browser

Added to portage

2024-07-17

ergo - 2.13.1
Ebuild name:

net-irc/ergo-2.13.1

Description

A modern IRC server written in Go

Added to portage

2024-07-17

ergo - 2.14.0
Ebuild name:

net-irc/ergo-2.14.0

Description

A modern IRC server written in Go

Added to portage

2024-07-17

gnome-keyring - 46.2
Ebuild name:

gnome-base/gnome-keyring-46.2

Description

Password and keyring managing daemon

Added to portage

2024-07-17

gnome-maps - 46.11
Ebuild name:

sci-geosciences/gnome-maps-46.11

Description

A map application for GNOME

Added to portage

2024-07-17

gnome-music - 46.0
Ebuild name:

media-sound/gnome-music-46.0

Description

Music management for Gnome

Added to portage

2024-07-17

gnome-tweaks - 46.1
Ebuild name:

gnome-extra/gnome-tweaks-46.1

Description

Customize advanced GNOME options

Added to portage

2024-07-17

go-dep-tarball - 0.1
Ebuild name:

dev-go/go-dep-tarball-0.1

Description

script to package go dependencies

Added to portage

2024-07-17

grype - 0.79.3
Ebuild name:

app-containers/grype-0.79.3

Description

A vulnerability scanner for container images and filesystems

Added to portage

2024-07-17

gsettings-desktop-schemas - 46.0
Ebuild name:

gnome-base/gsettings-desktop-schemas-46.0

Description

Collection of GSettings schemas for GNOME desktop

Added to portage

2024-07-17

hash-slinger - 3.3
Ebuild name:

net-dns/hash-slinger-3.3

Description

Various tools to generate DNS records like SSHFP, TLSA, OPENPGPKEY, IPSECK

Added to portage

2024-07-17

highline - 3.1.0
Ebuild name:

dev-ruby/highline-3.1.0

Description

Highline is a high-level command-line IO library for ruby

Added to portage

2024-07-17

imlib2_loaders - 1.12.3
Ebuild name:

media-plugins/imlib2_loaders-1.12.3

Description

Additional image loaders for Imlib2

Added to portage

2024-07-17

iproute2 - 6.10.0
Ebuild name:

sys-apps/iproute2-6.10.0

Description

kernel routing and traffic control utilities

Added to portage

2024-07-17

jupyterlab-server - 2.27.3
Ebuild name:

dev-python/jupyterlab-server-2.27.3

Description

Server components for JupyterLab and JupyterLab like applicatio

Added to portage

2024-07-17

knewstuff - 6.4.0-r1
Ebuild name:

kde-frameworks/knewstuff-6.4.0-r1

Description

Framework for downloading and sharing additional application data

Added to portage

2024-07-17

libshumate - 1.2.2
Ebuild name:

media-libs/libshumate-1.2.2

Description

Shumate is a GTK toolkit providing widgets for embedded maps

Added to portage

2024-07-17

linux-firmware - 20240610-r3
Ebuild name:

sys-kernel/linux-firmware-20240610-r3

Description

Linux firmware files

Added to portage

2024-07-17

linux-firmware - 20240709-r1
Ebuild name:

sys-kernel/linux-firmware-20240709-r1

Description

Linux firmware files

Added to portage

2024-07-17

luau - 0.634
Ebuild name:

dev-lang/luau-0.634

Description

Gradually typed embeddable scripting language derived from Lua

Added to portage

2024-07-17

mocha - 2.4.1
Ebuild name:

dev-ruby/mocha-2.4.1

Description

Mocking and stubbing using a syntax like that of JMock and SchMock

Added to portage

2024-07-17

motif - 2.3.8-r6
Ebuild name:

x11-libs/motif-2.3.8-r6

Description

The Motif user interface component toolkit

Added to portage

2024-07-17

mpi - 2.0-r8
Ebuild name:

virtual/mpi-2.0-r8

Description

Virtual for Message Passing Interface (MPI) v2.0 implementation

Added to portage

2024-07-17

ncspot - 1.1.2
Ebuild name:

media-sound/ncspot-1.1.2

Description

ncurses Spotify client written in Rust using librespot

Added to portage

2024-07-17

networkmanager - 1.48.4
Ebuild name:

net-misc/networkmanager-1.48.4

Description

A set of co-operative tools that make networking simple and straight

Added to portage

2024-07-17

networkmanager-openvpn - 1.12.0
Ebuild name:

net-vpn/networkmanager-openvpn-1.12.0

Description

NetworkManager OpenVPN plugin

Added to portage

2024-07-17

nzbget - 24.1
Ebuild name:

net-nntp/nzbget-24.1

Description

A command-line based binary newsgrabber supporting .nzb files

Added to portage

2024-07-17

onlyoffice-bin - 8.1.1
Ebuild name:

app-office/onlyoffice-bin-8.1.1

Description

Onlyoffice is an office productivity suite (binary version)

Added to portage

2024-07-17

openjdk - 11.0.23_p9-r1
Ebuild name:

dev-java/openjdk-11.0.23_p9-r1

Description

Open source implementation of the Java programming language

Added to portage

2024-07-17

openjdk - 11.0.24_p8
Ebuild name:

dev-java/openjdk-11.0.24_p8

Description

Open source implementation of the Java programming language

Added to portage

2024-07-17

openjdk - 17.0.12_p7
Ebuild name:

dev-java/openjdk-17.0.12_p7

Description

Open source implementation of the Java programming language

Added to portage

2024-07-17

openjdk - 21.0.4_p7
Ebuild name:

dev-java/openjdk-21.0.4_p7

Description

Open source implementation of the Java programming language

Added to portage

2024-07-17

openstacksdk - 3.3.0
Ebuild name:

dev-python/openstacksdk-3.3.0

Description

A collection of libraries for building applications to work with Open

Added to portage

2024-07-17

pip-run - 13.0.0
Ebuild name:

dev-python/pip-run-13.0.0

Description

Install packages and run Python with them

Added to portage

2024-07-17

piwigo - 14.5.0
Ebuild name:

www-apps/piwigo-14.5.0

Description

a photo gallery software for the web

Added to portage

2024-07-17

pyarrow - 17.0.0
Ebuild name:

dev-python/pyarrow-17.0.0

Description

Python library for Apache Arrow

Added to portage

2024-07-17

pydot - 3.0.1
Ebuild name:

dev-python/pydot-3.0.1

Description

Python interface to Graphviz's Dot language

Added to portage

2024-07-17

pygobject - 3.48.2
Ebuild name:

dev-python/pygobject-3.48.2

Description

Python bindings for GObject Introspection

Added to portage

2024-07-17

pygobject - 3.48.2-r1
Ebuild name:

dev-python/pygobject-3.48.2-r1

Description

Python bindings for GObject Introspection

Added to portage

2024-07-17

pymongo - 4.8.0
Ebuild name:

dev-python/pymongo-4.8.0

Description

Python driver for MongoDB

Added to portage

2024-07-17

pytest-import-check - 0.0.3
Ebuild name:

dev-python/pytest-import-check-0.0.3

Description

pytest plugin to check whether Python modules can be imported

Added to portage

2024-07-17

pytest-subtests - 0.13.1
Ebuild name:

dev-python/pytest-subtests-0.13.1

Description

Unittest subTest() support and subtests fixture

Added to portage

2024-07-17

pytools - 2024.1.9
Ebuild name:

dev-python/pytools-2024.1.9

Description

Collection of tools missing from the Python standard library

Added to portage

2024-07-17

pywinrm - 0.5.0
Ebuild name:

dev-python/pywinrm-0.5.0

Description

Python client for the Windows Remote Management (WinRM) service

Added to portage

2024-07-17

qemu - 7.2.13
Ebuild name:

app-emulation/qemu-7.2.13

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2024-07-17

qemu - 8.2.6
Ebuild name:

app-emulation/qemu-8.2.6

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2024-07-17

qemu - 9.0.2
Ebuild name:

app-emulation/qemu-9.0.2

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2024-07-17

qtbase - 6.7.2-r1
Ebuild name:

dev-qt/qtbase-6.7.2-r1

Description

Cross-platform application development framework

Added to portage

2024-07-17

qtnetwork - 5.15.14-r1
Ebuild name:

dev-qt/qtnetwork-5.15.14-r1

Description

Network abstraction library for the Qt5 framework

Added to portage

2024-07-17

qtwayland - 6.7.2-r3
Ebuild name:

dev-qt/qtwayland-6.7.2-r3

Description

Wayland platform plugin for Qt

Added to portage

2024-07-17

redis - 4.8.1
Ebuild name:

dev-ruby/redis-4.8.1

Description

A Ruby client library for Redis

Added to portage

2024-07-17

revive - 2.25
Ebuild name:

app-emacs/revive-2.25

Description

Resume Emacs

Added to portage

2024-07-17

rfcview - 0.13
Ebuild name:

app-emacs/rfcview-0.13

Description

An Emacs mode that reformats IETF RFCs for display

Added to portage

2024-07-17

rg - 2.3.0
Ebuild name:

app-emacs/rg-2.3.0

Description

GNU Emacs search tool based on ripgrep

Added to portage

2024-07-17

riece - 9.0.0-r1
Ebuild name:

app-emacs/riece-9.0.0-r1

Description

A redesign of Liece IRC client

Added to portage

2024-07-17

rnc-mode - 1.0.6
Ebuild name:

app-emacs/rnc-mode-1.0.6

Description

An Emacs mode for editing Relax NG compact schema files

Added to portage

2024-07-17

runc - 1.1.13
Ebuild name:

app-containers/runc-1.1.13

Description

runc container cli tools

Added to portage

2024-07-17

sabctools - 8.2.4
Ebuild name:

dev-python/sabctools-8.2.4

Description

Module providing raw yEnc encoding/decoding for SABnzbd

Added to portage

2024-07-17

sonarr-bin - 4.0.8.1893
Ebuild name:

www-apps/sonarr-bin-4.0.8.1893

Description

Sonarr is a Smart PVR for newsgroup and bittorrent users

Added to portage

2024-07-17

spectrwm - 3.6.0
Ebuild name:

x11-wm/spectrwm-3.6.0

Description

Small dynamic tiling window manager for X11

Added to portage

2024-07-17

sphinx - 7.4.5
Ebuild name:

dev-python/sphinx-7.4.5

Description

Python documentation generator

Added to portage

2024-07-17

sus-fixtures-openssl - 0.2.1
Ebuild name:

dev-ruby/sus-fixtures-openssl-0.2.1

Description

Test fixtures for running with OpenSSL

Added to portage

2024-07-17

syd - 3.23.14
Ebuild name:

sys-apps/syd-3.23.14

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2024-07-17

syft - 1.9.0
Ebuild name:

app-containers/syft-1.9.0

Description

Generate a Software Bill of Materials from container images and filesyste

Added to portage

2024-07-17

textdistance - 4.6.3
Ebuild name:

dev-python/textdistance-4.6.3

Description

Compute distance between the two texts

Added to portage

2024-07-17

thunderbird - 115.13.0
Ebuild name:

mail-client/thunderbird-115.13.0

Description

Thunderbird Mail Client

Added to portage

2024-07-17

thunderbird-bin - 115.13.0
Ebuild name:

mail-client/thunderbird-bin-115.13.0

Description

Thunderbird Mail Client

Added to portage

2024-07-17

tor - 0.4.8.12
Ebuild name:

net-vpn/tor-0.4.8.12

Description

Anonymizing overlay network for TCP

Added to portage

2024-07-17

uefi-mkconfig - 2.1
Ebuild name:

sys-boot/uefi-mkconfig-2.1

Description

Automatic management of UEFI entries

Added to portage

2024-07-17

vanilla-sources - 6.1.99
Ebuild name:

sys-kernel/vanilla-sources-6.1.99

Description

Full sources for the Linux kernel

Added to portage

2024-07-17

vanilla-sources - 6.6.40
Ebuild name:

sys-kernel/vanilla-sources-6.6.40

Description

Full sources for the Linux kernel

Added to portage

2024-07-17

virtualbox - 7.0.20
Ebuild name:

app-emulation/virtualbox-7.0.20

Description

Family of powerful x86 virtualization products for enterprise and h

Added to portage

2024-07-17

virtualbox-additions - 7.0.20
Ebuild name:

app-emulation/virtualbox-additions-7.0.20

Description

CD image containing guest additions for VirtualBox

Added to portage

2024-07-17

virtualbox-extpack-oracle - 7.0.20
Ebuild name:

app-emulation/virtualbox-extpack-oracle-7.0.20

Description

PUEL extensions for VirtualBox

Added to portage

2024-07-17

virtualbox-guest-additions - 7.0.20
Ebuild name:

app-emulation/virtualbox-guest-additions-7.0.20

Description

VirtualBox kernel modules and user-space tools for

Added to portage

2024-07-17

virtualbox-modules - 7.0.20
Ebuild name:

app-emulation/virtualbox-modules-7.0.20

Description

Kernel Modules for Virtualbox

Added to portage

2024-07-17

wordpress - 6.6
Ebuild name:

www-apps/wordpress-6.6

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2024-07-17

xv - 5.2.0
Ebuild name:

media-gfx/xv-5.2.0

Description

Interactive image manipulation program supporting a wide variety of formats

Added to portage

2024-07-17

yt-dlp - 2024.07.16
Ebuild name:

net-misc/yt-dlp-2024.07.16

Description

youtube-dl fork with additional features and fixes

Added to portage

2024-07-17

zabbix - 6.0.32
Ebuild name:

net-analyzer/zabbix-6.0.32

Description

ZABBIX is software for monitoring of your applications, network and serv

Added to portage

2024-07-17

zabbix - 6.4.17
Ebuild name:

net-analyzer/zabbix-6.4.17

Description

ZABBIX is software for monitoring of your applications, network and serv

Added to portage

2024-07-17

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