Win10

win10en
~~~~~~~
安裝中文語言包:
1. 載入SW_DVD5_NTRL_Win_10_1607_32_64_MultiLang_LangPackAll_LIP_X21-05987.ISO
2. 打開語言安裝嚮導:在運行中輸入 lpksetup
3. 點擊 Install display languages -> Browse... -> 瀏覽虛擬光驅中的簡體中文cab文件
   (如:F:\x64\langpacks\Microsoft-Windows-Client-Language-Pack_x64_zh-cn.cab)
   列表中會識別出:Chinese (Simplified)(中文(簡體)) MUI 160MB
   點Next -> I accept the license terms. -> Next ... 等待安裝完成。


TCP Config
~~~~~~~~~~
禁用 Receive Window Auto-Tuning Level(接收窗口自動調節級別)
1. 查看
C:\> netsh interface tcp show global
若是看見下面就是啓用了(Vista/7默認是關閉的)。
Receive Window Auto-Tuning Level    : normal
或者
接收窗口自動調節級別    : normal
2. 禁用
C:\> netsh interface tcp set global autotuninglevel=disabled
重啓電腦生效。
3. 從新啓用
C:\> netsh interface tcp set global autotuninglevel=normal


.NET Framework 3.5
~~~~~~~~~~~~~~~~~~
離線安裝.NET Framework 3.5
1. 載入Win10鏡像,假設爲 L: 盤
2. 管理員的CMD裏
C:\> dism /online /enable-feature /all /featurename:NetFX3 /Source:L:\sources\sxs


計劃任務
~~~~~~~~
禁用compatterlrunner.exe(開機硬盤狂轉問題之一)
打開計算機管理-系統工具-任務計劃程序-任務計劃程序庫-Microsoft-Windows-Application Experience
右鍵Microsoft Compatibility Appraiser,禁用。


更新失敗
~~~~~~~~
net stop wuauserv
del /s /q /f %windir%\SoftwareDistribution\Download\*.*
del /s /q /f %windir%\SoftwareDistribution\DataStore\*.*
net start wuauserv
start ms-settings:windowsupdate


禁用Windows Defender
~~~~~~~~~~~~~~~~~~~~
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableRoutinelyTakingAction" /d 1 /t REG_DWORD /f


禁用Hyper-V啓動
~~~~~~~~~~
管理員的CMD:
C:\> bcdedit /copy {current} /d "Windows 10 without Hyper-V"
已將該項成功複製到 {3111a647-65d1-11e6-8b9a-d4bed9c6316a}。
C:\> bcdedit /set {3111a647-65d1-11e6-8b9a-d4bed9c6316a} hypervisorlaunchtype off
注:hypervisorlaunchtype默認是auto,不是off。


WSL
~~~
先在添加刪除組件中勾選 Windows Subsystem for Linux(也能夠在powershell中運行:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux)
而後運行bash,會提示一個連接,瀏覽器打開後會出現App Store安裝Ubuntu
再次運行bash,等待安裝完成。(或者:lxrun /install)

更改倉庫
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
$ sudo vim /etc/apt/sources.list
根據VERSION_CODENAME再開始處添加清華的倉庫:(https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/)
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
用#註釋掉其餘的倉庫。ESC, w!q
$ sudo apt-get update

用zsh代替bash
$ sudo apt-get update
$ sudo apt-get install zsh -y
$ zsh
選擇2
$ vim ~/.bashrc
在開頭輸入:
if [ -t 1 ]; then
    exec zsh
fi
$ exit
之後運行bash會自動打開zsh

查看掛載分區
cat /proc/mounts
相關文章
相關標籤/搜索