Set NTP Service and timezone on Kali Linux
Kali Linux version: Kali2019/2020
NTP means Network Time Protocol.
- Install NTP service
apt install ntp
- Check ntp
dpkg --get-selections ntp
- Modify
ntp.conf
vi /etc/ntp.conf
- 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
- Enable NTP on Boot
systemctl enable ntp.service
- Set timezone (optional)
sudo timedatectl set-timezone "Asia/Shanghai"
- Restart NTP service
systemctl restart ntp.service
Check it.
systemctl status ntp.service
Or
ntpq -pn