记录乱七八糟的配置-window
以下 仅为个人记录&翻查
工具
- 烧录 Rufus https://rufus.ie/en/
-
命令行管理 conemu https://github.com/ConEmu/ConEmu
-
激活
-
win开源激活工具 https://github.com/massgravel/Microsoft-Activation-Scripts
-
Open PowerShell
-
For Windows 8, 10, 11: run
irm https://get.activated.win | iex
-
-
vpn
https://github.com/clash-verge-rev/clash-verge-rev https://github.com/MetaCubeX/ClashMetaForAndroid/releases
软件包管理
-
winget Windows 11, modern versions of Windows 10, and Windows Server 2025已经内置winget
- 安装列表
winget install nodejs windsurf 'Mozilla Firefox' git-cola.git-cola - win11右键【显示更多】开关设置,管理员运行命令:
- 关闭”显示更多”菜单
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve - 打开”显示更多”菜单
reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /va /f
- 关闭”显示更多”菜单
wsl
缩主机ping不到wsl的解决
引用https://github.com/microsoft/WSL/issues/4171#issuecomment-929858850,需要在防火墙入站规则中,打开以“虚拟机监控“或virtual machine monitor“开头的所有服务
重命名已安装的发行版
- Stop all instances of WSL
- Open Registry Editor and go to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss
- Find the distro you want to rename, look for the DistributionName
- Change it as you want
- Start WSL again, you can also execute wsl.exe -l -v to check if it changes
启动sshd服务
if ! pgrep -x "sshd" > /dev/null; then
sudo service ssh start
fi
windsurf
- 解决cluade等模型限制中国用户访问的问题
- 启动时设置代理并启动
```bat
cmd /c "set http_proxy=http://127.0.0.1:7897 && set https_proxy=http://127.0.0.1:7897 && windsurf的安装路径\Windsurf.exe"
```
- 截至2025-12-14,windsurf官方还未支持账号配置和插件云保存,除了用提供数据同步的插件。若需要自行保存数据,需要手动导入导出的数据,windsurf和vscode同宗同源,vscode同步适用
- 配置
- 导出 重要的配置文件有2:快捷键配置keybindings.json和全局配置settings.json,无所谓的导出操作,直接复制一份即可。如果不知道配置路径,在配置界面切换到文本编辑模式,在文件标题栏右键就可跳转到文件位置
- 导入 关闭windsurf进程,确保当前的配置和刚才复制出数据没有冲突。如果有,先手动合并数据,再将合并后的配置文件覆盖进来。重新打开windsurf
- 插件
- 导出
linux/window `windsurf --list-extensions --show-versions > extensions_with_versions.txt`
- 导入
- linux `cat extensions_with_versions.txt | xargs -L 1 windsurf --install-extension`
- window `Get-Content extensions_with_versions.txt | ForEach-Object { windsurf --install-extension $_ }`
作者github:
https://github.com/lizijie
</b>
PREVIOUS杂谈
NEXT记录乱七八糟的配置-debian