From df8ec09cae111b0e11a63fb64ec359b2eb007d34 Mon Sep 17 00:00:00 2001 From: ihutchin Date: Mon, 6 Nov 2017 13:14:02 -0800 Subject: [PATCH 1/2] Adds instructions to change the time using systemd-timesyncd.service. Signed-off-by: ihutchin --- .../guides/maintenance/maintenance.rst | 1 + .../clear-linux/guides/maintenance/time.rst | 56 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 source/clear-linux/guides/maintenance/time.rst diff --git a/source/clear-linux/guides/maintenance/maintenance.rst b/source/clear-linux/guides/maintenance/maintenance.rst index c7806bcc..fb86d493 100644 --- a/source/clear-linux/guides/maintenance/maintenance.rst +++ b/source/clear-linux/guides/maintenance/maintenance.rst @@ -15,3 +15,4 @@ maintaining |CLOSIA| after :ref:`installation ` is completed. mixer validate-signatures telemetry-enable + time diff --git a/source/clear-linux/guides/maintenance/time.rst b/source/clear-linux/guides/maintenance/time.rst new file mode 100644 index 00000000..eb1d4939 --- /dev/null +++ b/source/clear-linux/guides/maintenance/time.rst @@ -0,0 +1,56 @@ +.. _time: + +Set the time +############ + +In |CL|, it is not possible to set the time manually, via `timedatectl` +nor `RTC` mode. |CLOSIA| instead uses the `systemd-timesyncd.service` daemon +to synchronize time. + +This section provides instructions to reset the time in your |CL| system when +the default network time protocol (NTP) servers cannot be reached. The default +NTP servers are configured as +time1.google.com, time2.google.com, time3.google.com, and time4.google.com. + +#. Install the `sysadmin-basic` bundle: + + .. code-block:: console + + swupd bundle-add sysadmin-basic + +#. Set your timezone (this example uses Los Angeles). + + .. code-block:: console + + timedatectl set-timezone America/Los_Angeles + + .. note:: + To see a list of timezones, enter: + `timedatectl list-timezones | grep ` + +#. Create a `/etc/systemd/` directory. + + .. code-block:: console + + mkdir -p /etc/systemd/ + +#. Create a new file named :file:`/etc/systemd/timesyncd.conf` and enter the + following: + + .. code-block:: .conf + + [Time] + NTP= + FallbackNTP= + +#. Enable the `systemd-timesyncd` service. + + .. code-block:: console + + timedatectl set-ntp true + +.. note:: + + Use the :command:`timedatectl status` command to check the service status. + To restart the `timesyncd` daemon, enter :command:`systemctl restart systemd-timesyncd` + into your terminal emulator. From 1f44407461dbbe5f8e24e38ad76b5742d090cd29 Mon Sep 17 00:00:00 2001 From: ihutchin Date: Wed, 15 Nov 2017 16:53:06 -0800 Subject: [PATCH 2/2] Removed unneccesary and potentially incorrect information and fixed rst. Signed-off-by: ihutchin --- .../clear-linux/guides/maintenance/time.rst | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/source/clear-linux/guides/maintenance/time.rst b/source/clear-linux/guides/maintenance/time.rst index eb1d4939..abd145f2 100644 --- a/source/clear-linux/guides/maintenance/time.rst +++ b/source/clear-linux/guides/maintenance/time.rst @@ -3,14 +3,10 @@ Set the time ############ -In |CL|, it is not possible to set the time manually, via `timedatectl` -nor `RTC` mode. |CLOSIA| instead uses the `systemd-timesyncd.service` daemon -to synchronize time. +|CLOSIA| uses the `systemd-timesyncd.service` daemon to synchronize time. This section provides instructions to reset the time in your |CL| system when -the default network time protocol (NTP) servers cannot be reached. The default -NTP servers are configured as -time1.google.com, time2.google.com, time3.google.com, and time4.google.com. +the default :abbr:`NTP (Network Time Protocol)` servers cannot be reached. #. Install the `sysadmin-basic` bundle: @@ -18,7 +14,7 @@ time1.google.com, time2.google.com, time3.google.com, and time4.google.com. swupd bundle-add sysadmin-basic -#. Set your timezone (this example uses Los Angeles). +#. Set your timezone. This example uses Los Angeles. .. code-block:: console @@ -28,7 +24,7 @@ time1.google.com, time2.google.com, time3.google.com, and time4.google.com. To see a list of timezones, enter: `timedatectl list-timezones | grep ` -#. Create a `/etc/systemd/` directory. +#. Create a :file:`/etc/systemd/` directory. .. code-block:: console @@ -54,3 +50,12 @@ time1.google.com, time2.google.com, time3.google.com, and time4.google.com. Use the :command:`timedatectl status` command to check the service status. To restart the `timesyncd` daemon, enter :command:`systemctl restart systemd-timesyncd` into your terminal emulator. + +Congratulations! You have successfully set up the time in your |CL| system. + +Further, you are now able to change the time and timezone from your |CL| +desktop. The :guilabel:`Date & Time` options are located in the +:guilabel:`Settings` application under the :guilabel:`Details` +tab. + +