Fix bad clock #11

parent cef3c3ca
......@@ -27,6 +27,13 @@ $DIR/set_screens.sh
sed -i -e 's/lametro.fr/perdu.com/' /etc/conky/conky.conf
echo "Synchronisation de l'heure"
apt-get install ntpdate
systemctl stop ntp
systemctl disable ntp
cp $DIR/ntpdate /etc/default
ntpdate-debian
echo "Récupération de la clef ssh du serveur"
tftp ecole-dc <<'EOF'
get id_rsa.pub
......
# The settings in this file are used by the program ntpdate-debian, but not
# by the upstream program ntpdate.
# Set to "yes" to take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.
NTPDATE_USE_NTP_CONF=yes
# List of NTP servers to use (Separate multiple servers with spaces.)
# Not used if NTPDATE_USE_NTP_CONF is yes.
#NTPSERVERS="0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org"
NTPSERVERS="pedago.ecole.lan"
# Additional options to pass to ntpdate
NTPOPTIONS="-u"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment