Added NTP time synchronization

This commit is contained in:
Lucien Cartier-Tilet 2020-02-22 12:57:06 +01:00
parent 8e37d2eadf
commit 51a1dd3ad2
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 25 additions and 2 deletions

View File

@ -154,6 +154,11 @@ yadm submodule update --init --recursive
printf "\n# Installing tryones compton fork ############################################\n\n" printf "\n# Installing tryones compton fork ############################################\n\n"
yay -S --needed compton-tryone-git yay -S --needed compton-tryone-git
printf "\n# Enabling timesync ###########################################################\n\n"
sudo systemctl enable --now systemd-timesyncd
sudo timedatectl set-ntp true
printf "\n# Enabling and starting Docker ################################################\n\n" printf "\n# Enabling and starting Docker ################################################\n\n"
sudo systemctl enable --now docker sudo systemctl enable --now docker

View File

@ -33,7 +33,8 @@
- [[#get-envtpl][Get =envtpl=]] - [[#get-envtpl][Get =envtpl=]]
- [[#update-our-submodules][Update our submodules]] - [[#update-our-submodules][Update our submodules]]
- [[#installing-tryones-compton-fork][Installing Tryones Compton fork]] - [[#installing-tryones-compton-fork][Installing Tryones Compton fork]]
- [[#enable-some-of-our-services][Enable some of our services]] - [[#enable-some-services][Enable some services]]
- [[#systemd-timesyncd][Systemd-timesyncd]]
- [[#docker][Docker]] - [[#docker][Docker]]
- [[#emacs][Emacs]] - [[#emacs][Emacs]]
- [[#ssh-server][SSH server]] - [[#ssh-server][SSH server]]
@ -483,13 +484,30 @@
yay -S --needed compton-tryone-git yay -S --needed compton-tryone-git
#+END_SRC #+END_SRC
** Enable some of our services ** Enable some services
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h-1044da09-e992-4dcb-90ff-513725e1d450 :CUSTOM_ID: h-1044da09-e992-4dcb-90ff-513725e1d450
:END: :END:
We have installed some packages which require some services to run. Lets We have installed some packages which require some services to run. Lets
enable them. enable them.
*** Systemd-timesyncd
:PROPERTIES:
:CUSTOM_ID: h-4f80c250-db6d-4a2b-93bd-5b8a9bb3f4ed
:END:
This service enables time syncing with the NTP protocol, so I can be sure my
computers time is correct. The service first needs to be enabled:
#+BEGIN_SRC fish
printf "\n# Enabling timesync ###########################################################\n\n"
sudo systemctl enable --now systemd-timesyncd
#+END_SRC
Now, let systemd know I want to use the NTP protocol to keep my computers
time synced.
#+BEGIN_SRC fish
sudo timedatectl set-ntp true
#+END_SRC
*** Docker *** Docker
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h-429cb31a-fccb-420f-a5aa-21054c45fb38 :CUSTOM_ID: h-429cb31a-fccb-420f-a5aa-21054c45fb38