First install NTP service on Ubuntu sing below command,
apt-get install ntp
apt-get install ntp
Now edit ntp.conf file to add NTP server.
nano /etc/ntp.conf
nano /etc/ntp.conf
Add this parameter anywhere in this file.
server 82.165.36.179
server 82.165.36.179
Save & exit.
Now copy PK Time zone to /etc
cp /usr/share/zoneinfo/Asia/Karachi /etc/localtime
cp /usr/share/zoneinfo/Asia/Karachi /etc/localtime
Use the below command to update the time.
ntpdate -u 82.165.36.179
ntpdate -u 82.165.36.179
Now type date to verify time.
Regard’s
Hassam Sohail
Hassam Sohail
Post a Comment