665 字
3 分钟
Win11重装工具
正文编辑
好用软件合集
- 工具箱
- 美化类
ExplorerPatcher:win11恢复win10菜单和任务栏(安装后右键任务栏-属性,进行设置)
- 软件类
Snipaste:好用的截图贴图软件(windows自带截图win+shift+s)
- 小工具
win11激活
用户设置
- win11 跳过用户激活: 在激活页面shift+F10 打开 cmd,输入以下命令
start ms-cxh:localonly- win11 关闭用户密码:ctrl + alt + del 打开安全选项界面,然后选择更改密码,密码留空
- win11 关闭自动更新:打开powershell,输入以下命令后,去设置的更新中将会有521周后更新的选项
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "FlightSettingsMaxPauseDays" -Value 3650 -PropertyType DWORD -Force开发环境
先在powershell中以管理员身份运行以下脚本,避免后续脚本无法正常运行
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned安装winget:官方文档
win11自带winget,如果msstore源没有正常配置,可以运行下面命令进行重置
winget source reset msstore
#如果需要更换国内源:winget source remove wingetwinget source add winget https://mirrors.ustc.edu.cn/winget-sourcewinget source reset --forcewinget source update安装wsl:官方教程
输入下面命令安装wsl功能后重启
wsl --install# 重启后输入:wsl --list --online #查看发行版wsl --install -d <DistroName># 安装指定版本 要设置密码
#如果忘记密码,可以管理员运行powershell wsl.exe --user root #然后修改指定用户密码 passwd <username>Ubuntu apt换源:USTC换源文档
替换/etc/apt/sources.list
安装C/C++编译器
winget install MSYS2.MSYS2 #这步是在下载linux的windows中间层#然后在开始菜单中搜索 MSYS2 MSYS 打开窗口后输入pacman -S --needed mingw-w64-ucrt-x86_64-toolchain#随后按两次回车:安装所有包、确认安装#安装完成后根据安装位置,运行下面命令,添加环境变量[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\msys64\ucrt64\bin", "Machine")安装git
winget install Git.Git安装uv:官方配置文档
winget install --id=astral-sh.uv -e# uv换源# 方法一:临时换源export UV_DEFAULT_INDEX="https://mirrors.aliyun.com/pypi/simple"# 方法二:修改配置# 如果在本地配置pyproject.toml,写入如下配置[[tool.uv.index]]url = "https://mirrors.ustc.edu.cn/pypi/simple"default = true# 如果在全局配置uv.toml(Linux和MacOS一般是~/.config/uv/uv.toml,Windows一般是%APPDATA%/uv/uv.toml,路径不存在手动创建即可),写入如下配置[[index]]url = "https://mirrors.ustc.edu.cn/pypi/simple"default = true