--- tags: 系統 --- 砍掉 Ubuntu 之後再安裝 Ubuntu === 關鍵字:ubuntu 19.04 、 windows 10 、 dual boot 、 fixmbr 、 Device for boot loader installation ## 環境: 原本是 ubuntu 18.04 和 windows 10 雙系統 Windows 10 ## preparation * SSD: 額外切出80GB * HDD: 額外切出500GB * 把舊的grub弄掉(看情況,不一定要) Windows 從安全性設定那邊重新啟動,進到救援模式的終端機,打某個指令(google搜尋 `/fixmbr`) * Ubuntu 19.04 bootable usb 參考官網 * windows 有 bit locker,參考 [guide](https://askubuntu.com/questions/1506694/dual-boot-with-windows-11-and-bitlocker) ## installation * 先選 Try without installation (問題:沒有偵測到SSD 解法:https://medium.com/@petragospodneti/windows-10-and-linux-love-hate-dual-boot-problems-d9994cbe16c0) * 開始安裝 記得選擇安裝顯卡驅動(在可以選minimal installation那個頁面) * 磁碟分配 * HDD 的 500GB 設成 `/home` (不一定要格式化) * SSD 的 80GB 設成 `/` (要格式化) * Device for boot loader installation 設成整個 SSD(例如 /dev/sdb 而不是 /dev/sdb3 這種有數字結尾的)(其實亂選好像沒差) * 確保整個系統上(所有硬碟裡)至少有一個 EFI system partition,如果沒有的話要自己新增,大小設 512MB。通常會有 Windows Boot Manager 這個 parition,如果有的話就都不用設定。 * 如果有 EFI system partition 的話,就算按安裝的時候跳出「The partition table format in use on your disks normally requires you to create a separate partitionfor boot loader code. This parition should be marked for use as "Reserved BIOS boot area" and should be at least 1MB size」也不用管他,直接按 continue 即可。 * 看起來網路上是說如果安裝在 BIOS mode 的話就要設定 "Reserved BIOS boot area",如果是 UEFI mode 的話就要有 "EFI System Partition"(沒有實驗求證過) ## 套件s & 設定s(自行斟酌,可以不要打) ``` sudo timedatectl set-local-rtc 1 sudo apt update sudo apt install git python3-pip curl net-tools inetutils-traceroute wavemon zsh vim tmux gcc g++ texlive-xetex axel htop tree ubuntu-restricted-extras simplescreenrecorder exa ``` fcitx 設定 https://ivonblog.com/posts/ubuntu-fcitx5/ * my gist: https://gist.github.com/ktpss95112/8c0b79a8f82058b89633a4fd1d3e9fa4 * 兩個 group: Default 和 russian * Default  * russian  * Global Options *  *  在 startup application 裡面新增 fcitx 把先前備份的 `~/.config/fcitx5` 下的 config 檔直接蓋掉 遇到問題時可以跑 `fcitx5-diagnose`,說不定是沒設 `GTK_IM_MODULE=fcitx` `QT_IM_MODULE=fcitx` `XMODIFIERS=@im=fcitx` 的問題。現在是把他設在 /etc/environment 但應該有更好的作法(不要 system-wise) * git credential https://gist.github.com/maelvls/79d49740ce9208c26d6a1b10b0d95b5e * [.zshrc](https://gist.github.com/ktpss95112/c158b73cc1167740406e0f2c42b6ed0b)(我自己的啦,不用全盤照收) <!-- gcin 設定:     --> * 筆電充電 threshold https://www.osbusters.net/2021/01/enable-asus-battery-health-charging-in-linux-os.html
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up