1
0

clock.po 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><title>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:11
  20. msgid "Configuring the system clock"
  21. msgstr ""
  22. #. type: Content of: <sect1><indexterm><primary>
  23. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:14
  24. msgid "clock"
  25. msgstr ""
  26. #. type: Content of: <sect1><indexterm><secondary>
  27. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:15
  28. msgid "configuring"
  29. msgstr ""
  30. #. type: Content of: <sect1><para>
  31. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:17
  32. msgid ""
  33. "This section discusses how to configure the "
  34. "<command>systemd-timedated</command> system service, which configures the "
  35. "system clock and timezone."
  36. msgstr ""
  37. #. type: Content of: <sect1><para>
  38. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:21
  39. msgid ""
  40. "If you cannot remember whether or not the hardware clock is set to UTC, find "
  41. "out by running the <userinput>hwclock --localtime --show</userinput> "
  42. "command. This will display what the current time is according to the "
  43. "hardware clock. If this time matches whatever your watch says, then the "
  44. "hardware clock is set to local time. If the output from "
  45. "<command>hwclock</command> is not local time, chances are it is set to UTC "
  46. "time. Verify this by adding or subtracting the proper amount of hours for "
  47. "the timezone to the time shown by <command>hwclock</command>. For example, "
  48. "if you are currently in the MST timezone, which is also known as GMT -0700, "
  49. "add seven hours to the local time."
  50. msgstr ""
  51. #. type: Content of: <sect1><para>
  52. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:32
  53. msgid ""
  54. "<command>systemd-timedated</command> reads "
  55. "<filename>/etc/adjtime</filename>, and depending on the contents of the "
  56. "file, sets the clock to either UTC or local time."
  57. msgstr ""
  58. #. type: Content of: <sect1><para>
  59. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:36
  60. msgid ""
  61. "Create the <filename>/etc/adjtime</filename> file with the following "
  62. "contents if your hardware clock is set to local time:"
  63. msgstr ""
  64. #. type: Content of: <sect1><screen>
  65. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:39
  66. #, no-wrap
  67. msgid ""
  68. "<userinput>cat &gt; /etc/adjtime &lt;&lt; \"EOF\"\n"
  69. "<literal>0.0 0 0.0\n"
  70. "0\n"
  71. "LOCAL</literal>\n"
  72. "EOF</userinput>"
  73. msgstr ""
  74. #. type: Content of: <sect1><para>
  75. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:45
  76. msgid ""
  77. "If <filename>/etc/adjtime</filename> isn't present at first boot, "
  78. "<command>systemd-timedated</command> will assume that hardware clock is set "
  79. "to UTC and adjust the file according to that."
  80. msgstr ""
  81. #. type: Content of: <sect1><para>
  82. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:49
  83. msgid ""
  84. "You can also use the <command>timedatectl</command> utility to tell "
  85. "<command>systemd-timedated</command> if your hardware clock is set to UTC or "
  86. "local time:"
  87. msgstr ""
  88. #. type: Content of: <sect1><screen>
  89. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:53
  90. #, no-wrap
  91. msgid "<userinput>timedatectl set-local-rtc 1</userinput>"
  92. msgstr ""
  93. #. type: Content of: <sect1><para>
  94. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:55
  95. msgid ""
  96. "<command>timedatectl</command> can also be used to change system time and "
  97. "time zone."
  98. msgstr ""
  99. #. type: Content of: <sect1><para>
  100. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:58
  101. msgid "To change your current system time, issue:"
  102. msgstr ""
  103. #. type: Content of: <sect1><screen>
  104. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:60
  105. #, no-wrap
  106. msgid "<userinput>timedatectl set-time YYYY-MM-DD HH:MM:SS</userinput>"
  107. msgstr ""
  108. #. type: Content of: <sect1><para>
  109. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:62
  110. msgid "The hardware clock will also be updated accordingly."
  111. msgstr ""
  112. #. type: Content of: <sect1><para>
  113. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:64
  114. msgid "To change your current time zone, issue:"
  115. msgstr ""
  116. #. type: Content of: <sect1><screen>
  117. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:66
  118. #, no-wrap
  119. msgid "<userinput>timedatectl set-timezone TIMEZONE</userinput>"
  120. msgstr ""
  121. #. type: Content of: <sect1><para>
  122. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:68
  123. msgid "You can get a list of available time zones by running:"
  124. msgstr ""
  125. #. type: Content of: <sect1><screen>
  126. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:70
  127. #, no-wrap
  128. msgid "<userinput>timedatectl list-timezones</userinput>"
  129. msgstr ""
  130. #. type: Content of: <sect1><note><para>
  131. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:72
  132. msgid ""
  133. "Please note that the <command>timedatectl</command> command can be used only "
  134. "on a system booted with systemd."
  135. msgstr ""
  136. #. type: Content of: <sect1><sect2><title>
  137. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:76
  138. msgid "Network Time Synchronization"
  139. msgstr ""
  140. #. type: Content of: <sect1><sect2><para>
  141. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:78
  142. msgid ""
  143. "Starting with version 213, systemd ships a daemon called "
  144. "<command>systemd-timesyncd</command> which can be used to synchronize the "
  145. "system time with remote NTP servers."
  146. msgstr ""
  147. #. type: Content of: <sect1><sect2><para>
  148. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:82
  149. msgid ""
  150. "The daemon is not intended as a replacement for the well established NTP "
  151. "daemon, but as a client only implementation of the SNTP protocol which can "
  152. "be used for less advanced tasks and on resource limited systems."
  153. msgstr ""
  154. #. type: Content of: <sect1><sect2><para>
  155. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:87
  156. msgid ""
  157. "Starting with systemd version 216, the <command>systemd-timesyncd</command> "
  158. "daemon is enabled by default. If you want to disable it, issue the following "
  159. "command:"
  160. msgstr ""
  161. #. type: Content of: <sect1><sect2><screen>
  162. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:92
  163. #, no-wrap
  164. msgid "<userinput>systemctl disable systemd-timesyncd</userinput>"
  165. msgstr ""
  166. #. type: Content of: <sect1><sect2><para>
  167. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:94
  168. msgid ""
  169. "The <filename>/etc/systemd/timesyncd.conf</filename> file can be used to "
  170. "change the NTP servers that <command>systemd-timesyncd</command> "
  171. "synchronizes with."
  172. msgstr ""
  173. #. type: Content of: <sect1><sect2><para>
  174. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:98
  175. msgid ""
  176. "Please note that when system clock is set to Local Time, "
  177. "<command>systemd-timesyncd</command> won't update hardware clock."
  178. msgstr ""