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

Post a Comment

Previous Post Next Post

propeller