windows tool

89 阅读4分钟

windows tool

  • keyboard shortcuts

    • win+x
    • win - search local
    • win+s - search
    • win+L - lock screen
    • win+p - display settings
    • win+m - switch desktop
    • win+a - alert settings
    • win+e - file exploration
    • alt+tab - alert tab
    • alt+F4 - close tab
    • ctrl+shift+esc - open task manager
    • win+R - taskmgr - open task manager
    • win+R - cmd - command window - systeminfo / ipconfig
    • win+R - control - control panel
  • google

  • xshell & xftp & tabby

  • Docker Desktop

    • windows 开启 wsl

      • win+s - 启用或关闭 Windows 功能 - 适用于 Linux 的 Windows 子系统 - 确定 - 重启电脑
      • win+r - 更新 wsl --update - 重启 wsl --shutdown
      • win+r - 系统架构 echo %PROCESSOR_ARCHITECTURE%
    • docs.docker.com/desktop/ins… Docker Desktop for Windows - x86_64

    • setting

      1. General
         勾选 Use the WSL 2 based engine
         勾选 Expose daemon on tcp://localhost:2375 without TLS
      
      2. Docker Engine
      # docker 代理加速
      {
          "builder": {
            "gc": {
              "defaultKeepStorage": "20GB",
              "enabled": true
            }
          },
          "experimental": false,
          "registry-mirrors": [
            "https://docker.m.daocloud.io",
            "https://dockerproxy.net",
            "https://docker.mirrors.ustc.edu.cn",
            "https://docker.nju.edu.cn",
            "https://registry.docker-cn.com",
            "http://hub-mirror.c.163.com"
          ]
      }
      
  • git

    • git-scm.com/downloads/w…

      # github 加速
      githubproxy="https://ghp.ci/"
      git clone ${githubproxy}https://github.com/golang/tools.git tools
      wget https://ghp.ci/https://github.com/xxx/archive/master.zip
      
  • golang

    • golang.google.cn/dl/

    • golang.google.cn/dl/go1.22.0…

    • mirrors.ustc.edu.cn/golang/

    • studygolang.com/dl

      # 解下zip安装 D:\soft\go\goroot
      # 新建 D:\soft\go\gopath
      
      # windows 环境配置
      编辑系统环境变量 - 环境变量
        新建
          GOPATH D:\soft\go\gopath
          GOROOT D:\soft\go\goroot
        编辑PATH
          D:\soft\go\goroot\bin
          D:\soft\go\gopath\bin
      
      # 验证
      win+r - cmd
      go version
      # go version go1.22.0 windows/amd64
      
      # Go 环境配置
      # windows: ~/AppData/Roaming/go/env
      # linux: ~/.config/go/env
      go env GOPROXY
      go env -u GOPROXY
      
      go env -w GO111MODULE=on
      go env -w GOPRIVATE="git.company.com,gitoa.company.com"
      go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
      go env -w GOPROXY=https://mirrors.cloud.tencent.com/go/,direct
      go env -w GOPROXY=https://goproxy.cn,direct
      go env -w GOPROXY=https://goproxy.io,direct
      
      
      # Go 多版本
      # windows: ~/sdk/go1.16.4/go1.16.4.windows-amd64.zip
      go install golang.org/dl/go1.16.4@latest
      go1.16.4 download
      go1.16.4 version
      
  • python

    • www.python.org/downloads/w…

    • www.python.org/ftp/python/

    • www.python.org/ftp/python/…

    • www.python.org/ftp/python/…

    • www.python.org/ftp/python/…

    • mirrors.huaweicloud.com/python/

    • docs.python.org/zh-cn/3.8/t…

    • python2 install pip

      # windosw 配置 python 多版本
      # 自定义安装目录后手动添加PATH
      # 安装 D:\soft\python\py36 D:\soft\python\py38 D:\soft\python\py27
      
      # windows PATH 新建
          D:\soft\python\py36\
          D:\soft\python\py36\Scripts\
          D:\soft\python\py38\
          D:\soft\python\py38\Scripts\
          D:\soft\python\\py27\
          D:\soft\python\py27\Scripts\
      
      # python 命令重命名
        # python36 作为默认版本不重命名
        # D:\soft\python\py38\python - py38
        # D:\soft\python\py38\pythonw - pyw38
        # D:\soft\python\py27\python - py27
        # D:\soft\python\py27\pythonw - pyw27
      
      # pip38 命令修复 及 重命名
      py38 -m pip install --upgrade pip --force-reinstall
      # D:\soft\python\py38\Scripts\pip - Scripts\pip38
      
      # python27 安装 pip
      # 解压 setuptools-40.6.3.zip pip-18.1.tar.gz
      cd setuptools-40.6.3 && py27 setup.py install -v
      cd pip-18.1 && py27 setup.py install -v
      
      # pip 版本
      pip2 list
      pip38 list
      pip list
      
      # python 加速
      # 临时 指定不同镜像源
      pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple/
      pip install numpy -i https://pypi.douban.com/simple/
      pip install numpy -i http://mirrors.aliyun.com/pypi/simple/
      pip install numpy -i https://pypi.mirrors.ustc.edu.cn/simple/
      pip install numpy -i http://pypi.mirrors.ustc.edu.cn/simple/
      
      # 永久
      # %USERPROFILE%\pip\pip.ini
      # %APPDATA%\pip\pip.ini
      # %HOME%\pip\pip.ini
      win+r - cmd
      echo %APPDATA%
      # ~/AppData/Roaming
      # 配置文件 300秒超时
      mkdir ~/AppData/Roaming/pip
      
      echo "[global]
      timeout = 300
      index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
      trusted-host = pypi.tuna.tsinghua.edu.cn
      ">~/AppData/Roaming/pip/pip.ini
      
  • node

    • nodejs.org/download/re…

    • nodejs.org/download/re…

    • nodejs.org/download/re…

    • github.com/coreybutler…

    • github.com/coreybutler…

      推荐 nvm 多版本管理

      # nvm node version manager 多版本管理
      # 先卸载已安装 nodejs
      # 安装 nvm 设置目录
      # D:\soft\nvm
      # D:\soft\nodejs
      # windows 环境变量新增 NVM_SYMLINK 是快捷方式,nvm 切换版本指向对应版本的 node
        NVM_HOME D:\soft\nvm
        NVM_SYMLINK D:\soft\nodejs
      # windos PATH 新增
        %NVM_HOME%
        %NVM_SYMLINK%
      
      # nvm 配置
      # nvm npm_mirror http://mirrors.cloud.tencent.com/npm/
      # nvm node_mirror http://mirrors.cloud.tencent.com/nodejs-release/
      
      # cat /d/soft/nvm/setting.txt
      root: D:\soft\nvm
      path: D:\soft\nodejs
      arch: 64
      proxy: none
      node_mirror: https://npmmirror.com/mirrors/node/
      npm_mirror: https://npmmirror.com/mirrors/npm/
      
      # nvm 安装
      nvm list available
      nvm install 18.20.0
      nvm install 16.0.0
      nvm ls
      nvm use 16.0.0
      node -v
      nvm use 18.20.0
      node -v
      npm -v
      nvm uninstall 16.0.0
      
      # npm node package manager 加速
      npm -v
      npm config list -l
      # 淘宝源
      npm config set registry https://registry.npm.taobao.org/
      # 官方镜像源
      npm config set registry http://www.npmjs.org/
      
      # 安装到 ./node_modules/jquery
      npm install jquery
      # 全局安装到 npm config list -l | grep prefix 设置目录 或命令查看  npm root -g
      npm install jquery -g
      
      # windows 多版本安装
      unzip node-v16.0.0-win-x64.zip -n -d /d/soft/nodejs/
      unzip node-v20.0.0-win-x64.zip -d /d/soft/nodejs/
      
      # windows PATH 新建
        D:\soft\nodejs\node-v16.0.0-win-x64\
        D:\soft\nodejs\node-v20.0.0-win-x64\
      
      # node20 命令重命名
       mv /d/soft/nodejs/node-v20.0.0-win-x64/node.exe /d/soft/nodejs/node-v20.0.0-win-x64/node20.exe
       mv /d/soft/nodejs/node-v20.0.0-win-x64/npm.cmd /d/soft/nodejs/node-v20.0.0-win-x64/npm20.cmd
       mv /d/soft/nodejs/node-v20.0.0-win-x64/npx.cmd /d/soft/nodejs/node-v20.0.0-win-x64/npx20.cmd
      
      # 验证
      win+r - cmd
      node -v
      npm -v
      npx -v
      node20 -v
      npm20 -v
      npx20 -v
      
  • java

    jdk-8u201 java8更新201版本,201代表cpu核心补丁更新,202代表psu补丁集合更新

    # jdk-8u201-windows-x64.exe
    # 安装目录
    # D:\soft\java\jdk1.8.0_202
    # D:\soft\java\jre1.8.0_202
    
    # windows 新增系统变量
      win+s - 编辑系统环境变量 - 环境变量
      JAVA_HOME D:\soft\java\jdk1.8.0_202
    # windows 新增PATH变量
      %JAVA_HOME%\bin
      %JAVA_HOME%\lib
      %JAVA_HOME%\jre\bin
      %JAVA_HOME%\lib\tools.jar
    
    # 验证
    win+r - cmd
    java -version
    javac -version
    
  • vscode

  • foxmail & wps

  • Ditto

  • zeal

  • SwitchHosts

  • windos command