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

 

posted @ 2018-02-27 09:56  Bob-wei  阅读(981)  评论(0编辑  收藏  举报