WINDOWS

Windows Update Corruption

4月8号的更新,出现了如下问题 https://answers.microsoft.com/en-us/windows/forum/all/input-indicator-doesnt-work-well-and-icon-missing 通过卸载更新把更新删除后,系统恢复正常 删除本地下载的更新文件 https://winaero.com/blog/delete-downloaded-windows-update-files-in-windows-10/ C:\Windows\SoftwareDistribution\Download

在WSL中使用Docker

在windows中使用docker有多种方式: docker WIN10 desktop WSL 本文主要介绍在WSL中使用docker 前提条件 Windows 10 Version 1803以上(支持cgroups) Ubuntu for WSL 16.0.4 LTS(WSL支持的最新版本) Docker 17.09 安装WSL install WSL 安装Ubuntu for WSL 16.0.4 LTS install ubuntu in WSL 安装DOCKER 启动ubuntu in WSL(以管理员身份运行) c:\>wsl -d Ubuntu-16.04 安装docker $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" $ sudo apt-get install docker-ce=17.

Wireless and Wired Connection Both at a Same Time in Windows

give the wireless network higher priority than the wired WIRELESS CONNECTION > "Internet Protocol Version 4 (TCP/IPv4) Properties" > advanced TCP/IP setting > Automatic metric Uncheck it. That will enable a text box named “Interface metric”. Fill in a number. It needs to be larger than 1 (reserved for loopback) and the number(30) you choose for the wired network. WIRED CONNECTION > "Internet Protocol Version 4 (TCP/IPv4) Properties" > advanced TCP/IP setting > Automatic metric Again Uncheck “Automatic metric”, and fill in a number in the “Interface metric” box.

Windows Application Information Service

AppInfo 启动类型必须是自动或手动, 否则,msinstaller, services.msc, regedit 等都会报错: The Service command cannot be started, either because it is disabled or because it has no enabled devices associated with it AppInfo svchost.exe Facilitates the running of interactive applications with additional administrative privileges. Users will be unable to launch applications with the additional administrative privileges they may require to perform desired user tasks. These tools include regedit. Although safe to disable, this is not recommended since you need to boot into safe mode to enable again.

WIN用户使用Docker卷

在windows,启动卷必须线启用共享驱动 启用共享驱动 1: Open "Settings" in Docker Desktop -> "Shared Drives" -> "Reset Credentials" -> select drive "D" -> "Apply" 检查测试卷 docker run --rm -v d:/tmp:/data alpine ls /data

Docker Windows7 Docker Toolbox

docker proxy run cmd as administrator cmd>cd $GIT_HOME cmd>echo > .bash_profile export HTTP_PROXY=http://127.0.0.1:1080 export HTTPS_PROXY=http://127.0.0.1:1080 export no_proxy=localhost,127.0.0.1,192.168.99.100

Tcpdump Windows

install winpcap and windump https://www.winpcap.org list all interfaces windump -D dump on interface windump -i 1 -n dst host 172.17.17.6 See entire packet payload using tcpdump windump -nnvvXSs 1514 -i 1 -n dst host 172.17.17.6

Win10 Customize

disable Taskbar thumbnail preview on Windows https://www.windowscentral.com/how-disable-taskbar-thumbnail-preview-windows-10

购买笔记本电脑的正确打开姿势

关闭网络连接 个性化设置 性能模式 任务栏 通知 文件夹 关闭激活服务 禁用激活服务 https://www.wikihow.com/Turn-Off-Windows-Activation 关闭自动激活 https://www.intowindows.com/how-to-turn-off-automatic-activation-in-windows-10/ 注意 个性化设置必须在关闭激活服务之前完成 禁止用户修改密码 net users net user user_cmp /PasswordChg:No

windows notes

常用工具 cport https://www.nirsoft.net/utils/cports.html turn on IE proxy @ECHO OFF ECHO Turn on proxy! please wait... REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f turn off IE proxy @ECHO OFF ECHO Turn off IE Proxy! please wait... REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f 禁止用户修改密码 net users net user user_cmp /PasswordChg:No