Giter Site home page Giter Site logo

initialsetuponwindows's Introduction

安裝Windows後的初始設置

0. 安裝Windows前的準備

  1. 備份位於硬碟中的應用程式資料到Backups資料夾,以管理員身分執行:

  2. 備份位於登錄檔案中的應用程式資料到Backups資料夾,有:

    • Bandizip
    • MPC-HC
  3. 備份「Firefox」的擴充套件資料到Backups資料夾,有:

    • Authenticator(保險起見)
    • Enhancer for YouTube
    • Image Search Options
    • Simple Tab Groups(非必要)
    • Social Fixer for Facebook
    • Stylus
    • TWP - Translate Web Pages
    • Tampermonkey
    • User-Agent Switcher and Manager
    • uBlock Origin
    • 新同文堂

1. 基本的檢查與設置

  1. 關閉「OneDrive」的同步與個人資料夾備份

  2. 檢查「Windows Update」與「Microsoft Store」是否有更新,有的化更新並重新啟動電腦

  3. 安裝驅動程式、螢幕色彩設定檔等

  4. 安裝硬體供應廠商提供的應用程式,用「記事本」打開以下腳本並複製需要的行在「PowerShell」中執行:

  5. (可選)執行系統調整腳本,以管理員身分執行:

  6. 確保Windows授權有啟用

  7. 設置「檔案總管」、「設定」與「Windows 安全性」的選項

    :::info

    • 編輯DNS設定(連線公共AdGuard DNS伺服器)

      1. 使用Win+R快速鍵開啟執行視窗並執行ms-settings:network-advancedsettings指令,打開「設定」中的「網路和網際網路→進階網路設定」頁面

      2. 進入在「網路介面卡」列表的每項項目中的「檢視其他屬性」

      3. 在「DNS伺服器指派」按下「編輯」按鈕,打開「編輯DNS設定」視窗

      4. 填入以下資訊,並按下「確定」按鈕

      5. 用系統管理員權限在「PowerShell」中執行以下腳本針對特定網站使用中華電信DNS:

         Add-DnsClientNrptRule -Namespace "pixiv.net" -NameServers "168.95.192.1"
         Add-DnsClientNrptRule -Namespace "twitter.com" -NameServers "168.95.192.1"
      6. 用系統管理員權限在「PowerShell」中執行以下腳本針對特定域名進行阻擋:

         Add-DnsClientNrptRule -Namespace ".mov" -NameServers "0.0.0.0"
         Add-DnsClientNrptRule -Namespace ".zip" -NameServers "0.0.0.0"
    • 設置切換輸入法的快速鍵

      1. 使用Win+R快速鍵開啟執行視窗並執行rundll32 Shell32.dll,Control_RunDLL input.dll,,{C07337D3-DB2C-4D0B-9A93-B722A6C106E2}{HOTKEYS}指令,打開「文字服務和輸入語言」視窗
      2. 在「進階按鍵組合」分頁中設置以下快速鍵:
        動作 按鍵順序
        切換輸入語言 (無)
        切換到中文(繁體,台灣)—微軟注音 Left Alt + Shift + 1
        切換到日本(日本)—微軟輸入法 Left Alt + Shift + 2
        切換到英文(美國)—US Left Alt + Shift + 0
      3. 按下「確定」按鈕
      4. 執行 control intl.cpl 指令,打開「地區」視窗
      5. 在「系統管理」分頁中按下「複製設定」按鈕,打開「歡迎畫面及新的使用者帳戶設定」視窗
      6. 勾選所有「將目前設定複製到:」下的選項後,按下「確定」按鈕
    • 禁用驅動程式的自動更新

      1. 使用Win+R快速鍵開啟執行視窗並執行 SystemPropertiesHardware 指令,打開「系統內容」視窗
      2. 在「硬體」分頁中按下「裝置安裝設定」按鈕,打開「裝置安裝設定」視窗
      3. 選擇「否(您的裝置可能無法如預期般運作)」後,按下「儲存變更」按鈕

    :::

  8. 設置個人資料夾的位置

  9. 重新啟動電腦

2. 安裝與移除內建的應用程式與功能

  1. (可選)如果Windows是Home版本,安裝Pro有但在Home缺失的元件,以管理員身分執行:

  2. 移除預裝的應用程式,以管理員身分執行:

  3. 移除預裝的選用功能,以管理員身分執行:

  4. 關閉已經預先開啟的Windows選用功能,以管理員身分執行:

  5. 開啟沒有預先開啟的Windows選用功能,以管理員身分執行:

  6. 重新啟動電腦

3. 安裝並設置終端機環境

  1. 安裝與終端機相關的應用程式,以管理員身分執行:

    :::info

    • 安裝「Git」時,在「Select Components」除了「Add a Git Bash Profile to Windows Terminal」以外全部勾選,在「Choosing the SSH executable」選擇「Use external OpenSSH」選項
    • 安裝「clink」時,取消勾選「Autorun when cmd.exe starts」選項即可,其他維持

    :::

  2. 安裝殼層描述檔,執行:

  3. 重新啟動終端機

4. 下載並安裝字體

  1. 下載常用的字體,執行:

  2. 到「下載\Fonts」資料夾中,全選所有字體檔案並選擇右鍵選單中的「安裝」,將字體安裝到當前使用者的字體資料夾中

5. 還原應用程式的備份資料

  1. Backups資料夾還原位於硬碟中的應用程式資料,以管理員身分執行:

  2. 匯入Backups資料夾中的登錄檔檔案以還原位於登錄檔中的應用程式資料,有:

    • Bandizip
    • MPC-HC

6. 安裝主要使用的應用程式

  1. 安裝主要使用的應用程式,以管理員身分執行:

  2. 設置主要使用的應用程式以及「Microsoft Edge」

    :::info

    :::

  3. 到「設定」的「應用程式 → 預設應用程式」,將安裝好的應用程式按表格順序設為預設的打開方式

    項目 預設應用程式
    網頁瀏覽器 Firefox Developer Edition
    文字編輯器 Notepad++
    圖片瀏覽器 XnView MP
    音樂播放器 foobar2000
    影片播放器 MPC-HC
    壓縮檔管理器 Bandizip
    電子郵件客戶端 Outlook For Windows
    PDF檢視器 Foxit PDF Reader

6. 安裝Windows子系統

  1. 安裝Windows子系統「Ubuntu」及「Android」發行版,執行:

  2. 在Windows子系統的「Ubuntu」中,執行:

    sudo sed -i -e "s/# zh_TW.UTF-8 UTF-8/zh_TW.UTF-8 UTF-8/" /etc/locale.gen
    sudo dpkg-reconfigure --frontend=noninteractive locales
    sudo update-locale LANG=zh_TW.UTF-8
    
    sudo apt update
    sudo apt upgrade -y
    sudo apt install nala -y
  3. 在Windows子系統的「Ubuntu」中,於檔案/root/.bashrc~/.bashrc後面加入:

    apt() {
      command nala "$@"
    }
    
    sudo() {
      if [ "$1" = "apt" ]; then
        shift
        command sudo nala "$@"
      else
        command sudo "$@"
      fi
    }
  4. 設置「Windows子系統Android版設定」的選項

7. 安裝並設置開發環境

  1. 安裝開發環境,以管理員身分執行:

    :::info

    • 安裝「Visual Studio Code」時,將選項全部勾選

    :::

  2. 重新啟動終端機

  3. 開啟「Android Studio」進行初始化設置

  4. 設置開發環境,執行:

  5. 匯入個人PGP金鑰

8. 安裝應用程式

  1. 安裝用於命令行的應用程式,以管理員身分執行:

  2. 安裝可轉散發執行套件,以管理員身分執行:

  3. 安裝Microsoft Office的應用程式,以管理員身分執行:

  4. 安裝平常使用的應用程式,以管理員身分執行:

  5. (可選)安裝用於特定裝置的應用程式,以管理員身分執行:

  6. (可選)安裝只有需要時才會安裝的應用程式,用「記事本」打開以下腳本並複製需要的行在「PowerShell」中執行:

  7. 在「Microsoft Edge」中安裝以下網站應用程式:

  8. 逐一開啟應用程式進行設置

initialsetuponwindows's People

Contributors

yujinlin0224 avatar

Stargazers

JiaJyun Yang avatar Bandit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.