重装系统后笔记:网络设置、WSL安装、修改注册表
# 重装系统后,记录的一些笔记
## 网络设置
1. 安装 [clash-verge](https://github.com/zzzgydi/clash-verge/releases)
- 中国移动云盘: <https://caiyun.139.com/m/i?0I5CIX490zAh3> 提取码:UmnV
2. 配置 clash-verge (私信我获取配置链接)
3. 根据工作需要您可能还需要在 host 文件添加域名解析
host 路径:C:\Windows\System32\drivers\etc\hosts
## 【Windows】安装 WSL (Windows Subsystem for Linux)
WSL 是一种允许在Windows操作系统上运行Linux发行版的技术,
安装 WSL 后,可以在 Windows 上运行 Linux 命令行工具。
安装命令如下:
```powershell
wsl --install
```
安装后,可以在 windos terminal 中选择 Ubuntu 作为默认终端。
## 【Windows】修改注册表,交换左Ctrl和左Alt键位(我的习惯)
1. 创建一个批处理文件 (SwapCtrlAlt..bat)
2. 内容如下:
```bat
@echo off
net session >nul 2>&1
if %errorLevel% == 0 (
echo Continuing...
) else (
echo Please run the script as an administrator.
pause
exit /b 1
)
@echo off
echo Swapping Left Ctrl and Left Alt keys...
(
echo Windows Registry Editor Version 5.00
echo.
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
echo "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,38,00,1D,00,1D,00,38,00,00,00,00,00
) > SwapCtrlAlt.reg
reg import SwapCtrlAlt.reg >nul 2>&1
del SwapCtrlAlt.reg
echo Left Ctrl and Left Alt keys have been swapped.
echo Please restart your computer to apply the changes.
pause
```
3. 管理员身份运行批处理文件,重启电脑.
P.S. 重启后,如果需要恢复默认设置:
1. 打开注册表编辑器:
- 按下Win + R键组合来打开“运行”对话框。
- 输入“regedit”并按Enter键,以打开注册表编辑器。
2. 导航到注册表项:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
3. 删除键值:Scancode Map
4. 保存更改并退出注册表编辑器。
5. 重新启动计算机
## 下载浏览器/软件
- 下载 chrome 登录/导入书签
- 下载 vscode
- 安装 Git
- 下载密码管理器
- ...
P.S.
您可以了解下我独立开发的密码管理器:
- [Passbox](https://zzk13180.github.io/passbox/)
- 近期会发布新版本,加入更多功能,敬请期待
- 欢迎您的使用和反馈,谢谢

