[2014.5.22] [UBUNTU] time synchronization between Ubuntu and Windows

Source: Internet
Author: User

When Ubuntu and Windows are installed on both systems, the time of Windows and Ubuntu systems is not synchronized. This is because Windows systems use the time of hardware systems such as the bios of the motherboard as the OS's local time by default. MAc, linux OS uses the Time of the hardware system such as the motherboard bios as the UTC time, and the time of the operating system follows the UTC standard to add, subtract, and decrease according to the user's time zone settings. This has led to a very interesting phenomenon for Chinese users: Ubuntu takes 8 hours faster than windows; does it mean Ubuntu is better than windows ?).

To solve this problem, refer to a method circulating on the network:

1. Disable UTC; command used:

Sudo gedit etc/default/rcS
Note that "rcS" and "S" are in uppercase; Change "UTC = yes" to "UTC = no" in the displayed content"

2. At this time, the original "fast" time is still displayed. You can use the network time server for correction;

Sudo ntpdate pool.ntp.org
Note: The linux server address correction is demanding. It must be linux, and ntpd and time services must be enabled. I have verified many servers, and I still work to find this pool.ntp.org. I would like to give it a thumbs up. of course, you can add it.

3. You can consider writing the corrected time to the hardware system.

Hw clock

4. It's done! Enjoy it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.