Re: 雙系統時間跑掉以及launcher與圖示包問題 - Linux
![Margaret avatar](/img/girl.jpg)
By Margaret
at 2017-09-02T18:04
at 2017-09-02T18:04
Table of Contents
※ 引述《sphsu (孤獨的飄)》之銘言:
: 雙系統:ubuntu 16.04 + win10 1703
: 兩個系統分別安裝在HDD、SSD上,
: 安裝的時候,是裝好win10以後,在SSD沒有連接的情況下安裝ubuntu到HDD上,
: 透過BIOS設定的開機順序來決定進哪個系統。
: 目前遇到的問題是:
: 進入ubuntu後,下次切換到window,window的時間會跑掉...
: 反之,則不會。
: 沒有切換系統的話,兩者開關機後,時間都正常。
: 這樣就不是主機板電池沒電的問題吧?
: 想請問問題出在哪裡...
關鍵字 「ubuntu 雙系統 時間」有不少資訊
簡單來說 Ubuntu16.04是採用UTC時鐘;Windows採用local時間
台灣屬於UTC+8(東八區) 所以當你進入過Ubuntu後
系統時間雖然正確 但那是系統自動加上8小時的結果
BIOS時間會少8小時 可用sudo hwclock -r查看BIOS時間
網路上有一個改文件的方法 但我用了不知為啥沒啥用
因此採用另外一個方法: (綠色部分為輸入的指令)
Ⅰ先用ntpdate來同步一次時間(如果時間你覺得準可以省略)
1.sudo apt install ntp ntpdate 安裝ntpdate
2.sudo ntpdate clock.stdtime.gov.tw 與中華電信研究所與頻率國家標準實驗室伺服器連線同步時間(可以換成你自己信任的)
Ⅱ修改系統設定成使用local時間
1.sudo timedatectl set-local-rtc 1 --adjust-system-clock 修改系統設定成使用local時間
2.timedatectl 確認修改成功與否 成功的話應該有出現警告
「Warning: The system is configured to read the RTC time in the local time zone.
This mode can not be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain
it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.」
Ⅲ把時間寫入BIOS
sudo hwclock -w
到這邊結束
如果不放心的話可以參數改成r看BIOS時間
應該沒問題
: 另外,
: 因為想試試看unity以外的launcher,裝了KDE,
: 由於不太喜歡,所以就移除
: 結果開機的ubuntu logo變成kubuntu...不知道怎麼改回來
: 除了launcher以外,我還有安裝圖示包,結果會有缺圖的情形發生
: (用unity tweak tool)
: 如圖:
: http://imgur.com/a/txhDB
: 就算用回預設
: 還是一樣:http://imgur.com/a/ba6YU
: 感謝觀看
這個我不會 請其他大神幫忙(汗
--
「如果
自己的壽命早已被註定
是我的話
會怎麼面對呢?」
──《可塑性記憶》
--
: 雙系統:ubuntu 16.04 + win10 1703
: 兩個系統分別安裝在HDD、SSD上,
: 安裝的時候,是裝好win10以後,在SSD沒有連接的情況下安裝ubuntu到HDD上,
: 透過BIOS設定的開機順序來決定進哪個系統。
: 目前遇到的問題是:
: 進入ubuntu後,下次切換到window,window的時間會跑掉...
: 反之,則不會。
: 沒有切換系統的話,兩者開關機後,時間都正常。
: 這樣就不是主機板電池沒電的問題吧?
: 想請問問題出在哪裡...
關鍵字 「ubuntu 雙系統 時間」有不少資訊
簡單來說 Ubuntu16.04是採用UTC時鐘;Windows採用local時間
台灣屬於UTC+8(東八區) 所以當你進入過Ubuntu後
系統時間雖然正確 但那是系統自動加上8小時的結果
BIOS時間會少8小時 可用sudo hwclock -r查看BIOS時間
網路上有一個改文件的方法 但我用了不知為啥沒啥用
因此採用另外一個方法: (綠色部分為輸入的指令)
Ⅰ先用ntpdate來同步一次時間(如果時間你覺得準可以省略)
1.sudo apt install ntp ntpdate 安裝ntpdate
2.sudo ntpdate clock.stdtime.gov.tw 與中華電信研究所與頻率國家標準實驗室伺服器連線同步時間(可以換成你自己信任的)
Ⅱ修改系統設定成使用local時間
1.sudo timedatectl set-local-rtc 1 --adjust-system-clock 修改系統設定成使用local時間
2.timedatectl 確認修改成功與否 成功的話應該有出現警告
「Warning: The system is configured to read the RTC time in the local time zone.
This mode can not be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain
it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.」
Ⅲ把時間寫入BIOS
sudo hwclock -w
到這邊結束
如果不放心的話可以參數改成r看BIOS時間
應該沒問題
: 另外,
: 因為想試試看unity以外的launcher,裝了KDE,
: 由於不太喜歡,所以就移除
: 結果開機的ubuntu logo變成kubuntu...不知道怎麼改回來
: 除了launcher以外,我還有安裝圖示包,結果會有缺圖的情形發生
: (用unity tweak tool)
: 如圖:
: http://imgur.com/a/txhDB
: 就算用回預設
: 還是一樣:http://imgur.com/a/ba6YU
: 感謝觀看
這個我不會 請其他大神幫忙(汗
--
「如果
自己的壽命早已被註定
是我的話
會怎麼面對呢?」
──《可塑性記憶》
--
Tags:
Linux
All Comments
![Elizabeth avatar](/img/girl1.jpg)
By Elizabeth
at 2017-09-06T20:33
at 2017-09-06T20:33
![Hazel avatar](/img/girl2.jpg)
By Hazel
at 2017-09-09T22:46
at 2017-09-09T22:46
![Isabella avatar](/img/girl3.jpg)
By Isabella
at 2017-09-12T09:47
at 2017-09-12T09:47
![Eartha avatar](/img/beret.jpg)
By Eartha
at 2017-09-12T18:32
at 2017-09-12T18:32
Related Posts
雙系統時間跑掉以及launcher與圖示包問題
![Mary avatar](/img/girl5.jpg)
By Mary
at 2017-09-02T17:18
at 2017-09-02T17:18
Fedora安裝後沒聲音
![Bennie avatar](/img/girl2.jpg)
By Bennie
at 2017-09-02T15:26
at 2017-09-02T15:26
yum install & remove
![Ethan avatar](/img/cat1.jpg)
By Ethan
at 2017-09-02T12:58
at 2017-09-02T12:58
CUDA安裝後無法登入
![Zora avatar](/img/girl1.jpg)
By Zora
at 2017-09-02T11:46
at 2017-09-02T11:46
centos7 安裝 xrdp-v0.6.0
![John avatar](/img/elephant.jpg)
By John
at 2017-08-30T19:45
at 2017-08-30T19:45