Added chrony time sync
This commit is contained in:
9
post/chrony.conf
Normal file
9
post/chrony.conf
Normal 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
|
@@ -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
|
curl -so /etc/iptables/ip6tables.rules $REPO/raw/branch/master/post/ip6tables.rules
|
||||||
|
|
||||||
echo -e "${GREEN}Install minimal required packages...${NOCOL}"
|
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
|
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}"
|
echo -e "${GREEN}Activating required services...${NOCOL}"
|
||||||
systemctl enable iptables
|
systemctl enable iptables
|
||||||
systemctl enable ip6tables
|
systemctl enable ip6tables
|
||||||
systemctl enable NetworkManager
|
systemctl enable NetworkManager
|
||||||
systemctl enable cronie
|
systemctl enable cronie
|
||||||
|
systemctl enable chronyd
|
||||||
|
|
||||||
echo -e "${GREEN}Setup motd default...${NOCOL}"
|
echo -e "${GREEN}Setup motd default...${NOCOL}"
|
||||||
echo "" > /etc/motd
|
echo "" > /etc/motd
|
||||||
|
Reference in New Issue
Block a user