Changes for page GNU Linux (obecně)
Last modified by bac0025 on 29.08.2017 12:43
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -15,7 +15,8 @@ 15 15 |5) Asia|11) Use System V style time zones 16 16 |6) Atlantic Ocean |12) None of the above 17 17 18 -Then you will be shown a list of cities which represent the time zone in which they are located. You should choose a city in your time zone. 18 +Then you will be shown a list of cities which represent the time zone 19 +in which they are located. You should choose a city in your time zone. 19 19 20 20 21 21 **Number: 8** ... ... @@ -39,7 +39,8 @@ 39 39 40 40 V závislosti na správci balíčkového systému nainstalujeme potřebný balíček **ntpdate** (ukázka pro Ubuntu/Debian): 41 41 42 -##** # apt-get install ntpdate**## 43 + 44 +## # apt-get install ntpdate## 43 43 ## Reading package lists... Done## 44 44 ## Building dependency tree... Done## 45 45 ## The following NEW packages will be installed:## ... ... @@ -47,42 +47,9 @@ 47 47 ## 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.## 48 48 ## Need to get 57.7kB of archives.## 49 49 ## After unpacking 213kB of additional disk space will be used.## 50 -## Get:1 http: ~/~/ftp.dk.debian.org etch/main ntpdate 1:4.2.2.p4+dfsg-2 [57.7kB]##52 +## Get:1 http://ftp.dk.debian.org etch/main ntpdate 1:4.2.2.p4+dfsg-2 [57.7kB]## 51 51 ## Fetched 57.7kB in 10s (5475B/s)## 52 52 ## Selecting previously deselected package ntpdate.## 53 53 ## (Reading database ... 23025 files and directories currently installed.)## 54 54 ## Unpacking ntpdate (from .../ntpdate_1%3a4.2.2.p4+dfsg-2_i386.deb) ...## 55 55 ## Setting up ntpdate (4.2.2.p4+dfsg-2) ...## 56 - 57 - 58 - 59 - 60 -Aktuální čas systému: 61 - 62 -## **# date **## 63 -## Sun Nov 4 12:27:06 CET 2007## 64 - 65 - 66 - 67 -Pro synchronizaci času s našim ntp serverem použijeme program **ntpdate** takto: 68 - 69 -## # ntpdate ntp1.vsb.cz## 70 -## 4 Nov 10:46:39 ntpdate[2218]: step time server 158.196.0.2 offset -6072.831130 sec## 71 - 72 - 73 - 74 -Aktuální čas systému (po synchronizaci): 75 - 76 -## # date ## 77 -## Sun Nov 4 10:46:52 CET 2007## 78 - 79 - 80 -V případě, že je náš server nedostupný, vypíše se toto oznámení: 81 - 82 -## **# ntpdate ntp2.vsb.cz **## 83 -## 4 Nov 12:27:38 ntpdate[2219]: no server suitable for synchronization found ## 84 - 85 - 86 -Pro pravidelnou synchronizaci času přidáme do Cronu (/etc/crontab) tento řádek: 87 - 88 -## 1 * * * * root /usr/sbin/ntpdate ntp1.vsb.cz >/dev/null 2>&1 ##