Added chrony time sync

This commit is contained in:
2025-07-30 16:00:56 +02:00
parent a990818ea0
commit b67a2a3d5c
2 changed files with 14 additions and 1 deletions

9
post/chrony.conf Normal file
View File

@@ -0,0 +1,9 @@
pool ntp.time.nl iburst
maxupdateskew 5
driftfile /var/lib/chrony/drift
ntsdumpdir /var/lib/chrony
leapseclist /usr/share/zoneinfo/leap-seconds.list
makestep 1.0 3
logdir /var/log/chrony
log measurements statistics tracking
rtcsync

View File

@@ -25,14 +25,18 @@ curl -so /etc/iptables/iptables.rules $REPO/raw/branch/master/post/iptables.rule
curl -so /etc/iptables/ip6tables.rules $REPO/raw/branch/master/post/ip6tables.rules
echo -e "${GREEN}Install minimal required packages...${NOCOL}"
pacman --noconfirm -S cronie rsync iftop htop bash-completion iotop lsof screen fastfetch neovim man-db inetutils base-devel git networkmanager
pacman --noconfirm -S chrony cronie rsync iftop htop bash-completion iotop lsof screen fastfetch neovim man-db inetutils base-devel git networkmanager
ln -s /usr/bin/nvim /usr/bin/vi
echo -e "${GREEN}Setup Chronyd service...${NOCOL}"
curl -so /etc/chrony.conf $REPO/raw/branch/master/post/chrony.conf
echo -e "${GREEN}Activating required services...${NOCOL}"
systemctl enable iptables
systemctl enable ip6tables
systemctl enable NetworkManager
systemctl enable cronie
systemctl enable chronyd
echo -e "${GREEN}Setup motd default...${NOCOL}"
echo "" > /etc/motd