Set NTP Service and timezone on Kali Linux

Kali Linux version: Kali2019/2020

NTP means Network Time Protocol.

  1. Install NTP service
apt install ntp
  1. Check ntp
dpkg --get-selections ntp
  1. Modify ntp.conf
vi /etc/ntp.conf
  1. Find key word
pool 0.debian.pool.ntp.org iburst
pool 1.debian.pool.ntp.org iburst
pool 2.debian.pool.ntp.org iburst
pool 3.debian.pool.ntp.org iburst

Instead of the 4 lines pools with your own NTP Server. Or just do nothing, because they still working.
For example:

pool ntp.api.bz iburst  # Shanghai server
pool asia.pool.ntp.org iburst # Taiwang server
pool time.nist.gov iburst # Can't to connect in China Because GFW of China 
pool time.windows.com iburst # Can't to connect in China Because GFW of China
  1. Enable NTP on Boot
systemctl enable ntp.service
  1. Set timezone (optional)
sudo timedatectl set-timezone "Asia/Shanghai"
  1. Restart NTP service
systemctl restart ntp.service

Check it.

systemctl status ntp.service

Or

ntpq -pn
posted @ 2020-04-03 14:44  enjoy_jun  阅读(284)  评论(0编辑  收藏  举报