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,8 +15,7 @@ 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 19 -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 in which they are located. You should choose a city in your time zone. 20 20 21 21 22 22 **Number: 8** ... ... @@ -40,8 +40,7 @@ 40 40 41 41 V závislosti na správci balíčkového systému nainstalujeme potřebný balíček **ntpdate** (ukázka pro Ubuntu/Debian): 42 42 43 - 44 -## # apt-get install ntpdate## 42 +##** # apt-get install ntpdate**## 45 45 ## Reading package lists... Done## 46 46 ## Building dependency tree... Done## 47 47 ## The following NEW packages will be installed:## ... ... @@ -49,9 +49,31 @@ 49 49 ## 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.## 50 50 ## Need to get 57.7kB of archives.## 51 51 ## After unpacking 213kB of additional disk space will be used.## 52 -## Get:1 http://ftp.dk.debian.org etch/main ntpdate 1:4.2.2.p4+dfsg-2 [57.7kB]## 50 +## Get:1 http:~/~/ftp.dk.debian.org etch/main ntpdate 1:4.2.2.p4+dfsg-2 [57.7kB]## 53 53 ## Fetched 57.7kB in 10s (5475B/s)## 54 54 ## Selecting previously deselected package ntpdate.## 55 55 ## (Reading database ... 23025 files and directories currently installed.)## 56 56 ## Unpacking ntpdate (from .../ntpdate_1%3a4.2.2.p4+dfsg-2_i386.deb) ...## 57 57 ## 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 +V případě, že je náš server nedostupný, vypíše se toto oznámení: 68 + 69 +## # ntpdate ntp2.vsb.cz ## 70 +## 4 Nov 12:27:38 ntpdate[2219]: no server suitable for synchronization found ## 71 + 72 + 73 +Pro pravidelnou synchronizaci času přidáme do Cronu (/etc/crontab) tento řádek: 74 + 75 +## 1 * * * * root /usr/sbin/ntpdate ntp1.vsb.cz >/dev/null 2>&1 ## 76 + 77 +