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:

39776

userrating:

average rating: 1.5 (4 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
Please read "Why adblockers are bad".



other Ads
Trace My Cash
Wenn Sie sich schon immer mal gefragt haben, wo eigentlich Ihr geliebtes Bargeld geblieben ist, finden Sie hier vielleicht die Antwort.
www.tracemycash.com
Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2017-12-18
advancecomp - 1.23
Ebuild name:

app-arch/advancecomp-1.23

Description

Recompress ZIP, PNG and MNG, considerably improving compression

Added to portage

2017-12-18

advancecomp - 2.0
Ebuild name:

app-arch/advancecomp-2.0

Description

Recompress ZIP, PNG and MNG, considerably improving compression

Added to portage

2017-12-18

anki - 2.1.0_beta27
Ebuild name:

app-misc/anki-2.1.0_beta27

Description

A spaced-repetition memory training program (flash cards)

Added to portage

2017-12-18

backintime - 1.1.24
Ebuild name:

app-backup/backintime-1.1.24

Description

Backup system inspired by TimeVault and FlyBack, with a GUI for GNOME

Added to portage

2017-12-18

cancd - 0.1.0-r4
Ebuild name:

app-admin/cancd-0.1.0-r4

Description

CA NetConsole Daemon receives output from the Linux netconsole driver

Added to portage

2017-12-18

claws-mail - 3.16.0
Ebuild name:

mail-client/claws-mail-3.16.0

Description

An email client (and news reader) based on GTK+

Added to portage

2017-12-18

dconf-editor - 3.24.3
Ebuild name:

gnome-base/dconf-editor-3.24.3

Description

Graphical tool for editing the dconf configuration database

Added to portage

2017-12-18

dnssec-validator - 2.2-r1
Ebuild name:

net-dns/dnssec-validator-2.2-r1

Description

DNSSEC validator (dnsval)

Added to portage

2017-12-18

gajim - 0.16.9
Ebuild name:

net-im/gajim-0.16.9

Description

Jabber client written in PyGTK

Added to portage

2017-12-18

gdk-pixbuf - 2.36.11
Ebuild name:

x11-libs/gdk-pixbuf-2.36.11

Description

Image loading library for GTK+

Added to portage

2017-12-18

gentoo-sources - 4.14.7
Ebuild name:

sys-kernel/gentoo-sources-4.14.7

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-12-18

git-sources - 4.15_rc4
Ebuild name:

sys-kernel/git-sources-4.15_rc4

Description

The very latest -git version of the Linux kernel

Added to portage

2017-12-18

glade - 3.20.2
Ebuild name:

dev-util/glade-3.20.2

Description

A user interface designer for GTK+ and GNOME

Added to portage

2017-12-18

glibmm - 2.52.1
Ebuild name:

dev-cpp/glibmm-2.52.1

Description

C++ interface for glib2

Added to portage

2017-12-18

gmime - 3.0.3
Ebuild name:

dev-libs/gmime-3.0.3

Description

Utilities for creating and parsing messages using MIME

Added to portage

2017-12-18

gnome-dictionary - 3.24.1
Ebuild name:

app-dicts/gnome-dictionary-3.24.1

Description

Dictionary utility for GNOME

Added to portage

2017-12-18

gtksourceview - 3.24.6
Ebuild name:

x11-libs/gtksourceview-3.24.6

Description

A text widget implementing syntax highlighting and other features

Added to portage

2017-12-18

gucharmap - 10.0.3
Ebuild name:

gnome-extra/gucharmap-10.0.3

Description

Unicode character map viewer and library

Added to portage

2017-12-18

jdk - 9
Ebuild name:

virtual/jdk-9

Description

Virtual for Java Development Kit (JDK)

Added to portage

2017-12-18

jre - 9
Ebuild name:

virtual/jre-9

Description

Virtual for Java Runtime Environment (JRE)

Added to portage

2017-12-18

keyring - 10.5.1
Ebuild name:

dev-python/keyring-10.5.1

Description

Provides access to the system keyring service

Added to portage

2017-12-18

libcss - 0.7.0
Ebuild name:

dev-libs/libcss-0.7.0

Description

CSS parser and selection engine, written in C

Added to portage

2017-12-18

liblinear - 220
Ebuild name:

dev-libs/liblinear-220

Description

A Library for Large Linear Classification

Added to portage

2017-12-18

libnsfb - 0.1.6
Ebuild name:

dev-libs/libnsfb-0.1.6

Description

framebuffer abstraction library, written in C

Added to portage

2017-12-18

libutf8proc - 1.3.1_p3
Ebuild name:

dev-libs/libutf8proc-1.3.1_p3

Description

mapping tool for UTF-8 strings

Added to portage

2017-12-18

libxml2 - 2.9.7
Ebuild name:

dev-libs/libxml2-2.9.7

Description

Version 2 of the library to manipulate XML files

Added to portage

2017-12-18

mustermann - 1.0.1
Ebuild name:

dev-ruby/mustermann-1.0.1

Description

A library implementing patterns that behave like regular expressions

Added to portage

2017-12-18

oracle-jdk-bin - 9.0.1
Ebuild name:

dev-java/oracle-jdk-bin-9.0.1

Description

Oracle's Java SE Development Kit

Added to portage

2017-12-18

oracle-jre-bin - 9.0.1
Ebuild name:

dev-java/oracle-jre-bin-9.0.1

Description

Oracle's Java SE Runtime Environment

Added to portage

2017-12-18

percona-server - 5.6.38.83.0
Ebuild name:

dev-db/percona-server-5.6.38.83.0

Description

An enhanced, drop-in replacement for MySQL from the Percona team

Added to portage

2017-12-18

python-nbxmpp - 0.6.1
Ebuild name:

dev-python/python-nbxmpp-0.6.1

Description

Python library to use Jabber/XMPP networks in a non-blocking way

Added to portage

2017-12-18

root - 6.12.04-r1
Ebuild name:

sci-physics/root-6.12.04-r1

Description

C++ data analysis framework and interpreter from CERN

Added to portage

2017-12-18

rt-sources - 4.1.46_p52
Ebuild name:

sys-kernel/rt-sources-4.1.46_p52

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2017-12-18

rt-sources - 4.14.6_p7
Ebuild name:

sys-kernel/rt-sources-4.14.6_p7

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2017-12-18

rt-sources - 4.4.105_p120
Ebuild name:

sys-kernel/rt-sources-4.4.105_p120

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2017-12-18

rt-sources - 4.9.68_p60
Ebuild name:

sys-kernel/rt-sources-4.9.68_p60

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2017-12-18

rubygems - 2.7.3
Ebuild name:

dev-ruby/rubygems-2.7.3

Description

Centralized Ruby extension management system

Added to portage

2017-12-18

speexdsp - 1.2_rc3-r1
Ebuild name:

media-libs/speexdsp-1.2_rc3-r1

Description

Audio compression format designed for speech -- DSP

Added to portage

2017-12-18

speexdsp - 1.2_rc3-r2
Ebuild name:

media-libs/speexdsp-1.2_rc3-r2

Description

Audio compression format designed for speech -- DSP

Added to portage

2017-12-18

swi-prolog - 7.7.5
Ebuild name:

dev-lang/swi-prolog-7.7.5

Description

free, small, and standard compliant Prolog compiler

Added to portage

2017-12-18

tar - 1.30
Ebuild name:

app-arch/tar-1.30

Description

Use this to make tarballs

Added to portage

2017-12-18

teamviewer - 13.0.5693
Ebuild name:

net-misc/teamviewer-13.0.5693

Description

All-In-One Solution for Remote Access and Support over the Internet

Added to portage

2017-12-18

thc-ipv6 - 3.2
Ebuild name:

net-analyzer/thc-ipv6-3.2

Description

complete tool set to attack the inherent protocol weaknesses of IPV6 and

Added to portage

2017-12-18

tinker - 8.2.1
Ebuild name:

sci-chemistry/tinker-8.2.1

Description

Molecular modeling package that includes force fields, such as AMBER and

Added to portage

2017-12-18

unsymlink-lib - 4
Ebuild name:

app-portage/unsymlink-lib-4

Description

Convert your system to SYMLINK_LIB=no

Added to portage

2017-12-18

vala - 0.36.7
Ebuild name:

dev-lang/vala-0.36.7

Description

Compiler for the GObject type system

Added to portage

2017-12-18

vala-common - 0.36.7
Ebuild name:

dev-libs/vala-common-0.36.7

Description

Build infrastructure for packages that use Vala

Added to portage

2017-12-18

vanilla-sources - 4.14.7
Ebuild name:

sys-kernel/vanilla-sources-4.14.7

Description

Full sources for the Linux kernel

Added to portage

2017-12-18

xdsstat-bin - 171217
Ebuild name:

sci-chemistry/xdsstat-bin-171217

Description

Prints various statistics (that are not available from XDS itself)

Added to portage

2017-12-18

youtube-dl - 2017.12.14
Ebuild name:

net-misc/youtube-dl-2017.12.14

Description

Download videos from YouTube.com (and more sites...)

Added to portage

2017-12-18

2017-12-17
Net-Subnet - 1.30.0-r1
Ebuild name:

dev-perl/Net-Subnet-1.30.0-r1

Description

Fast IP-in-subnet matcher for IPv4 and IPv6, CIDR or mask

Added to portage

2017-12-17

Net-Trackback - 1.10.0-r1
Ebuild name:

dev-perl/Net-Trackback-1.10.0-r1

Description

Object-oriented interface for developing Trackback clients and ser

Added to portage

2017-12-17

Net-Whois-IP - 1.190.0-r1
Ebuild name:

dev-perl/Net-Whois-IP-1.190.0-r1

Description

Perl extension for looking up the whois information for ip address

Added to portage

2017-12-17

Net-Z3950-ZOOM - 1.280.0-r2
Ebuild name:

dev-perl/Net-Z3950-ZOOM-1.280.0-r2

Description

Perl extension for invoking the ZOOM-C API

Added to portage

2017-12-17

NetxAP - 0.20.0-r2
Ebuild name:

dev-perl/NetxAP-0.20.0-r2

Description

A base class for protocols such as IMAP, ACAP, IMSP, and ICAP

Added to portage

2017-12-17

aufs-sources - 4.14.6
Ebuild name:

sys-kernel/aufs-sources-4.14.6

Description

Full sources (incl. Gentoo patchset) for the linux kernel tree and a

Added to portage

2017-12-17

aufs-sources - 4.4.106
Ebuild name:

sys-kernel/aufs-sources-4.4.106

Description

Full sources (incl. Gentoo patchset) for the linux kernel tree and

Added to portage

2017-12-17

aufs-sources - 4.9.69
Ebuild name:

sys-kernel/aufs-sources-4.9.69

Description

Full sources (incl. Gentoo patchset) for the linux kernel tree and a

Added to portage

2017-12-17

aufs-sources - 4.9.70
Ebuild name:

sys-kernel/aufs-sources-4.9.70

Description

Full sources (incl. Gentoo patchset) for the linux kernel tree and a

Added to portage

2017-12-17

bacula - 9.0.6
Ebuild name:

app-backup/bacula-9.0.6

Description

Featureful client/server network backup suite

Added to portage

2017-12-17

chromium - 65.0.3294.5
Ebuild name:

www-client/chromium-65.0.3294.5

Description

Open-source version of Google Chrome web browser

Added to portage

2017-12-17

ck-sources - 4.9.70
Ebuild name:

sys-kernel/ck-sources-4.9.70

Description

Con Kolivas' high performance patchset and Gentoo's genpatches for Lin

Added to portage

2017-12-17

dropbox - 41.3.76
Ebuild name:

net-misc/dropbox-41.3.76

Description

Dropbox daemon (pretends to be GUI-less)

Added to portage

2017-12-17

electrum - 3.0.3
Ebuild name:

net-misc/electrum-3.0.3

Description

User friendly Bitcoin client

Added to portage

2017-12-17

gcc-config - 1.9.1
Ebuild name:

sys-devel/gcc-config-1.9.1

Description

Utility to manage compilers

Added to portage

2017-12-17

gcc-config - 9999
Ebuild name:

sys-devel/gcc-config-9999

Description

Utility to manage compilers

Added to portage

2017-12-17

gentoo-sources - 4.9.70
Ebuild name:

sys-kernel/gentoo-sources-4.9.70

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-12-17

gst-plugins-vaapi - 1.12.4
Ebuild name:

media-plugins/gst-plugins-vaapi-1.12.4

Description

Hardware accelerated video decoding through VA-API plugin fo

Added to portage

2017-12-17

jsonrpclib - 0.3.1
Ebuild name:

dev-python/jsonrpclib-0.3.1

Description

python implementation of the JSON-RPC spec (1.0 and 2.0)

Added to portage

2017-12-17

khard - 0.11.4
Ebuild name:

app-misc/khard-0.11.4

Description

Console CardDAV client

Added to portage

2017-12-17

logilab-common - 1.4.1
Ebuild name:

dev-python/logilab-common-1.4.1

Description

Useful miscellaneous modules used by Logilab projects

Added to portage

2017-12-17

mmdb - 1.25.6.1
Ebuild name:

sci-libs/mmdb-1.25.6.1

Description

The Coordinate Library for working with CCP4 coordinate files

Added to portage

2017-12-17

mmdb - 2.0.5
Ebuild name:

sci-libs/mmdb-2.0.5

Description

The Coordinate Library for working with CCP4 coordinate files

Added to portage

2017-12-17

mtree - 1.0.4
Ebuild name:

sys-apps/mtree-1.0.4

Description

Directory hierarchy mapping tool from FreeBSD

Added to portage

2017-12-17

paxctld - 1.2.2
Ebuild name:

sys-apps/paxctld-1.2.2

Description

PaX flags maintenance daemon

Added to portage

2017-12-17

pidgin-sipe - 1.23.0
Ebuild name:

x11-plugins/pidgin-sipe-1.23.0

Description

Pidgin Plug-in SIPE (Sip Exchange Protocol)

Added to portage

2017-12-17

psych - 3.0.1
Ebuild name:

dev-ruby/psych-3.0.1

Description

A libyaml wrapper for Ruby

Added to portage

2017-12-17

sarg - 2.3.10-r1
Ebuild name:

net-analyzer/sarg-2.3.10-r1

Description

Squid Analysis Report Generator

Added to portage

2017-12-17

sslh - 9999
Ebuild name:

net-misc/sslh-9999

Description

Port multiplexer - accept both HTTPS and SSH connections on the same port

Added to portage

2017-12-17

stripe - 1.75.3
Ebuild name:

dev-python/stripe-1.75.3

Description

Stripe python bindings

Added to portage

2017-12-17

tor - 0.3.1.9-r1
Ebuild name:

net-vpn/tor-0.3.1.9-r1

Description

Anonymizing overlay network for TCP

Added to portage

2017-12-17

tor - 0.3.2.7_rc-r1
Ebuild name:

net-vpn/tor-0.3.2.7_rc-r1

Description

Anonymizing overlay network for TCP

Added to portage

2017-12-17

udev - 236
Ebuild name:

sys-fs/udev-236

Description

Linux dynamic and persistent device naming support (aka userspace devfs)

Added to portage

2017-12-17

util-linux - 2.31-r1
Ebuild name:

sys-apps/util-linux-2.31-r1

Description

Various useful Linux utilities

Added to portage

2017-12-17

vivaldi-snapshot - 1.14.1042.3_p1
Ebuild name:

www-client/vivaldi-snapshot-1.14.1042.3_p1

Description

A new browser for our friends

Added to portage

2017-12-17

vobject - 0.9.5
Ebuild name:

dev-python/vobject-0.9.5

Description

Python package for parsing and generating vCard and vCalendar files

Added to portage

2017-12-17

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2017 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
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: 4.6 ms
system status display