Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Quellcode |
|
1 |
emerge --ask ntp |
Quellcode |
|
1 2 3 4 5 6 7 8 |
server 0.gentoo.pool.ntp.org server 1.gentoo.pool.ntp.org server 2.gentoo.pool.ntp.org server 3.gentoo.pool.ntp.org driftfile /var/lib/ntp/ntp.drift restrict default nomodify nopeer noquery limited kod restrict 127.0.0.1 restrict [::1] |
Quellcode |
|
1 |
ntpdate pool.ntp.org |
Quellcode |
|
1 |
timedatectl set-ntp true |
Quellcode |
|
1 2 |
Unable to authenticate/execute the action: code 7 Unit ntpd.service failed to load: No such file or directory. |
Quellcode |
|
1 2 |
systemctl start ntpd.service Failed to start ntpd.service: Unit ntpd.service failed to load: No such file or directory. |
Quellcode |
|
1 |
systemctl enable ntpd |
Zitat
Da ich mich mit systemd nicht ausḱenne nutze ich die Einstellungen unter kde systemsettings. Dort finde ich ntpd.service inactive. Wenn ich auf Start klicke kommt...
Zitat
cat /etc/ntp.conf
# NOTES:
# DHCP clients can append or replace NTP configuration files.
# You should consult your DHCP client documentation about its
# default behaviour and how to change it.
# Name of the servers ntpd should sync with
# Please respect the access policy as stated by the responsible person.
#server ntp.example.tld iburst
# Common pool for random people
#server pool.ntp.org
# Pools for Gentoo users
#server 0.gentoo.pool.ntp.org
#server 1.gentoo.pool.ntp.org
#server 2.gentoo.pool.ntp.org
#server 3.gentoo.pool.ntp.org
# Hetzner-Online-AG
server ntp.hetzner.de iburst
server ntp1.hetzner.de iburst
server ntp2.hetzner.de iburst
server ntp3.hetzner.de iburst
server ntp.hetzner.com iburst
server ntp1.hetzner.com iburst
server ntp2.hetzner.com iburst
server ntp3.hetzner.com iburst
server ntp.hetzner.net iburst
server ntp1.hetzner.net iburst
server ntp2.hetzner.net iburst
server ntp3.hetzner.net iburst
##
# A list of available servers can be found here:
# http://www.pool.ntp.org/
# http://www.pool.ntp.org/#use
# A good way to get servers for your machine is:
# netselect -s 3 pool.ntp.org
##
# you should not need to modify the following paths
driftfile /var/lib/ntp/ntp.drift
#server ntplocal.example.com prefer
#server timeserver.example.org
# Warning: Using default NTP settings will leave your NTP
# server accessible to all hosts on the Internet.
# If you want to deny all machines (including your own)
# from accessing the NTP server, uncomment:
#restrict default ignore
# Restrictions
restrict ntp.hetzner.de nomodify notrap nopeer noquery
restrict ntp1.hetzner.de nomodify notrap nopeer noquery
restrict ntp2.hetzner.de nomodify notrap nopeer noquery
restrict ntp3.hetzner.de nomodify notrap nopeer noquery
restrict ntp.hetzner.com nomodify notrap nopeer noquery
restrict ntp1.hetzner.com nomodify notrap nopeer noquery
restrict ntp2.hetzner.com nomodify notrap nopeer noquery
restrict ntp3.hetzner.com nomodify notrap nopeer noquery
restrict ntp.hetzner.net nomodify notrap nopeer noquery
restrict ntp1.hetzner.net nomodify notrap nopeer noquery
restrict ntp2.hetzner.net nomodify notrap nopeer noquery
restrict ntp3.hetzner.net nomodify notrap nopeer noquery
# Default configuration:
# - Allow only time queries, at a limited rate, sending KoD when in excess.
# - Allow all local queries (IPv4, IPv6)
restrict default nomodify nopeer noquery limited kod
restrict 127.0.0.1
restrict [::1]
# To allow machines within your network to synchronize
# their clocks with your server, but ensure they are
# not allowed to configure the server or used as peers
# to synchronize against, uncomment this line.
#
#restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrap
Quellcode |
|
1 |
/usr/lib/systemd/system/ntpd.service |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 |
cat ntpd.service [Unit] Description=Network Time Service After=ntpdate.service sntp.service [Service] ExecStart=/usr/sbin/ntpd -g -n PrivateTmp=true [Install] WantedBy=multi-user.target |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 |
localhost olaf # cat /usr/lib/systemd/system/ntpd.service [Unit] Description=Network Time Service After=ntpdate.service sntp.service [Service] ExecStart=/usr/sbin/ntpd -g -n PrivateTmp=true [Install] WantedBy=multi-user.target |
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »mnt_gentoo« (22.06.2014, 20:19)
Quellcode |
|
1 2 3 4 5 6 7 8 |
/etc/conf.d/hwclock clock="local" #neu clock_systohc="YES" #Das hate ich schon clock_hctosys="No" #neu clock_args="" |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
cat /usr/lib/systemd/system/ntpd.service [Unit] Description=Network Time Service After=ntpdate.service sntp.service Conflicts=systemd-timesyncd.service [Service] ExecStart=/usr/sbin/ntpd -g -n PrivateTmp=true [Install] WantedBy=multi-user.target |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
cat /etc/ntp.conf # NOTES: # DHCP clients can append or replace NTP configuration files. # You should consult your DHCP client documentation about its # default behaviour and how to change it. # Name of the servers ntpd should sync with # Please respect the access policy as stated by the responsible person. #server ntp.example.tld iburst # Common pool for random people #server pool.ntp.org # Pools for Gentoo users #server 0.gentoo.pool.ntp.org #server 1.gentoo.pool.ntp.org #server 2.gentoo.pool.ntp.org #server 3.gentoo.pool.ntp.org # Hetzner-Online-AG server ntp.hetzner.de iburst server ntp1.hetzner.de iburst server ntp2.hetzner.de iburst server ntp3.hetzner.de iburst server ntp.hetzner.com iburst server ntp1.hetzner.com iburst server ntp2.hetzner.com iburst server ntp3.hetzner.com iburst server ntp.hetzner.net iburst server ntp1.hetzner.net iburst server ntp2.hetzner.net iburst server ntp3.hetzner.net iburst ## # A list of available servers can be found here: # http://www.pool.ntp.org/ # http://www.pool.ntp.org/#use # A good way to get servers for your machine is: # netselect -s 3 pool.ntp.org ## # you should not need to modify the following paths driftfile /var/lib/ntp/ntp.drift #server ntplocal.example.com prefer #server timeserver.example.org # Warning: Using default NTP settings will leave your NTP # server accessible to all hosts on the Internet. # If you want to deny all machines (including your own) # from accessing the NTP server, uncomment: #restrict default ignore # Restrictions restrict ntp.hetzner.de nomodify notrap nopeer noquery restrict ntp1.hetzner.de nomodify notrap nopeer noquery restrict ntp2.hetzner.de nomodify notrap nopeer noquery restrict ntp3.hetzner.de nomodify notrap nopeer noquery restrict ntp.hetzner.com nomodify notrap nopeer noquery restrict ntp1.hetzner.com nomodify notrap nopeer noquery restrict ntp2.hetzner.com nomodify notrap nopeer noquery restrict ntp3.hetzner.com nomodify notrap nopeer noquery restrict ntp.hetzner.net nomodify notrap nopeer noquery restrict ntp1.hetzner.net nomodify notrap nopeer noquery restrict ntp2.hetzner.net nomodify notrap nopeer noquery restrict ntp3.hetzner.net nomodify notrap nopeer noquery # Default configuration: # - Allow only time queries, at a limited rate, sending KoD when in excess. # - Allow all local queries (IPv4, IPv6) restrict default nomodify nopeer noquery limited kod restrict 127.0.0.1 restrict [::1] # To allow machines within your network to synchronize # their clocks with your server, but ensure they are # not allowed to configure the server or used as peers # to synchronize against, uncomment this line. # #restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrap # Generated by dhcpcd from eth0.dhcp server 192.168.2.1 # End of dhcpcd from eth0.dhcp |