zoukankan      html  css  js  c++  java
  • ubuntu set up 2

    http://ubuntuhandbook.org/index.php/2016/05/time-differences-ubuntu-1604-windows-10/

    For users who dual boot Ubuntu 16.04 and Windows, you may find the clock time is off that causes time differences after you reboot and switch between the two systems. Here’s how to fix it.

    Ubuntu maintains the hardware clock (RTC, real time clock) in universal time (UTC) by default while Windows maintains the clock in local time, thus causing time conflicts between Ubuntu and Windows.

    To fix it, either set Ubuntu to maintain RTC in local time or make Windows uses UTC.

    1. Disable UTC and use Local Time in Ubuntu:

    In previous Ubuntu editions, you can edit the config file /etc/default/rcS to disable UTC.

    In Ubuntu 16.04, open terminal (Ctrl+Alt+T) and run the command below instead:

    timedatectl set-local-rtc 1 --adjust-system-clock

    To check out if your system uses Local time, just run:

    timedatectl

    you’ll the local time zone is in use in the Warning section.

    RTC Local Time

    Finally restart and switch to Windows, adjust system clock time if need and done.

    2. Make MicroSoft Windows uses UTC:

    Another way to fix this issue is doing the following changes in Windows, Windows 10, in the case below:

    1.) First if you’ve switched to local time in Ubuntu, run command in Ubuntu terminal to use back UTC:

    timedatectl set-local-rtc 0

    2.) Restart and select boot into Windows 10, when you’re in, do:

    • go to Start Menu, search for and launch cmd as Administrator.
    • When the command console opens, paste below command to create a DWORD value to the registry:
      Reg add HKLMSYSTEMCurrentControlSetControlTimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1

      For 64-bit Windows, use a QWORD value instead:

      Reg add HKLMSYSTEMCurrentControlSetControlTimeZoneInformation /v RealTimeIsUniversal /t REG_QWORD /d 1

      enable UTC in Windows 10

    • Disable the “internet update” for the time and reboot.
  • 相关阅读:
    数独小算法,测试通过(Java)
    OC运行时和方法机制笔记
    AlertView点击确定后再执行后面的代码
    对第三方库集成方式的分析
    当程序进入后台时执行长时间代码
    iOS开发之GCD使用总结
    缓存网络请求的结果
    防止 NSTimer retain 作为 target 的 self
    获取设备唯一码
    原生网络请求以及AFN网络请求/异步下载
  • 原文地址:https://www.cnblogs.com/imoon22/p/11405868.html
Copyright © 2011-2022 走看看