There are two main ways to set the current time via NTP:
ntpdate is a command-line tool that, when run, fetches the current time from an NTP server and sets the system time accordingly.
ntpd is the NTP daemon which runs in the background and continuously adjusts the time slightly.
For servers, production environments and such,
ntpd is better. However, for normal desktop PCs and end users,
ntpdate is perfectly fine. In fact, when you install Ubuntu Desktop, it comes with
ntpdate preinstalled, but not
When you select "Automatically from the Internet" in your Ubuntu system settings as shown in your screenshot above, what happens is that at each boot Ubuntu will fetch the current time using
ntp.ubuntu.com. If you want to change that server, you can edit the value of
The alternative is to install
ntpd (in package
ntp), and configure that via
/etc/ntp.conf. This is explained here in more detail:
However, if you do not want to install any additional packages and simply change the default server for
ntpdate which comes pre-installed with Ubuntu, simply edit