Espejo
877 字
4 分钟
快速恢复 Windows 工作环境
引言
还没写呢
步骤
更新、安装驱动
直接使用 Windows Update 即可 小米驱动官网
一般设置
- 显示后缀名
- 桌面显示用户文件夹和此电脑
- 隐藏搜索、任务视图、小组件
状态栏靠左已经习惯了 win11已经变成 Win11 的形状了输入法开启模糊拼音- 下载安装微信输入法,打开小鹤双拼
安装字体
卸载自带软件
- Clipchamp
- 资讯
- etc.
更新 Windows 自带应用(可以使用 UU 加速器)
UU 加速器 好像不能加速
网络优化
下载软件
- Scoop
- Chrome
- QQ(NT) 关闭开机自启动
- ~~PeaZip~~换用 7-zip
- ~~Obsidian~~用 scoop 安装
- ~~Everything~~用 scoop 安装
- ~~Mem Reduct~~用 scoop 安装
- Office 2021
- Potplayer
- ToDesk
Scoop 不好用,已淘汰
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserInvoke-RestMethod -Uri https://get.scoop.sh | Invoke-ExpressionScoop 国内源
iwr -useb https://gitee.com/glsnames/scoop-installer/raw/master/bin/install.ps1 | iexscoop config SCOOP_REPO https://gitee.com/glsnames/scoop-installercd ~/scoop/buckets/main/git remote set-url origin https://gitee.com/scoop-bucket/main.gitscoop bucket add extras https://gitee.com/scoop-bucket/extras.git以下可选scoop bucket add dorado https://gitee.com/scoop-bucket/dorado.gitscoop bucket add nerd-fonts https://gitee.com/scoop-bucket/nerd-fonts.gitscoop bucket add versions https://gitee.com/scoop-bucket/versions.gitscoop bucket add java https://gitee.com/scoop-bucket/java.gitscoop bucket add backit https://gitee.com/scoop-bucket/backit.gitScoop 中的软件
==VScode 不要用 Scoop== Nu
scoop install nuObsidian
scoop install obsidianGit(会自动安装了 7z)
scoop install git7-Zip
scoop install 7zipOBS Studio
scoop install obs-studioPython
scoop install python登录账号同步
Gaming Time
Windows 工作环境安装
VSCode
Python
scoop install nu加入环境变量 PATH 更新 pip 并更换为华为源
python -m pip install --upgrade pippip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple可以使用以下命令来升级
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pipOpenJdk
这里选择 Microsoft 编译的 OpenJdk 选择合适的版本下载 下载后解压到合适的位置,配置好环境变量
Go
$env:GO111MODULE = "on"$env:GOPROXY = "https://goproxy.cn"或者
go env -w GO111MODULE=ongo env -w GOPROXY=https://goproxy.cn,direct打开 VSCode,继续安装
WSL
- 打开或关闭 Windows 功能,勾选适用于 Linux 的 Windows 子系统。
- 在 Microsoft Store 中下载 Windows Subsystem for Linux
- 下载安装 Debian 或 Deepin
[[Deepin WSL 安装手册]]
Debian 将 apt 源换为镜像源 清华源 华为源
USTC 不比 THU 强?👍👍👍
以清华源为例: https 支持:
sudo apt install apt-transport-https ca-certificates -y备份文件
sudo mv /etc/apt/sources.list /etc/apt/sources.list.baksudo nano /etc/apt/sources.list复制后
sudo apt-get updatesudo apt-get upgradesudo apt updatesudo apt upgradeWSL 配置
安装一些软件
sudo apt-get install vim curl wget git zsh -y可选安装:
sudo apt-get install neofetch -y安装 ohmyzsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"omz 美化
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10kgit clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsgit clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightinggit clone --depth=1 https://gitcode.com/gh_mirrors/po/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10kgit clone https://gitcode.com/gh_mirrors/zs/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsgit clone https://gitcode.com/gh_mirrors/zs/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting.zshrc 编辑:
ZSH_THEME="powerlevel10k/powerlevel10k"plugins=( # other plugins... git zsh-autosuggestions zsh-syntax-highlighting z)WSL 工作环境安装
C
sudo apt install gcc gdb g++ -yjava
以 Microsoft 编译的 OpenJdk 为例
wget https://aka.ms/download-jdk/microsoft-jdk-11.0.20.1-linux-x64.tar.gzsudo tar -zxvf microsoft-jdk-11.0.20.1-linux-x64.tar.gz -C /usr/local/vim ~/.zshrc在 .zshrc 中添加:
export JAVA_HOME=/usr/local/jdk-11.0.20.1+1export PATH=$JAVA_HOME/bin:$PATHsource ~/.zshrc测试 java 安装是否成功
java -versionSome もんだい
1
ps:可能是因为我一直开着梯子的原因,安装 WSL 的时候,一直提示 wsl: 检测到 localhost 代理配置,但未镜像到 WSL。NAT 模式下的 WSL 不支持 localhost 代理。
不知道会不会对 WSL 的网络产生影响,保险起见我 按照 教程做了一些配置。
WSL 中有一个配置文件用于配置高级设置选项,那就是 .wslconfig.这个文件默认是没有的,如果要配置,我们要手动创建。
这个文件在 C:\Users\<UserName>\.wslconfig 中。
创建文件后,填入以下内容并保存。
[experimental]autoMemoryReclaim=gradual # gradual | dropcache | disablednetworkingMode=mirroreddnsTunneling=truefirewall=trueautoProxy=true再打开 powershell,输入 wsl --shutdown,重新打开 WSL,就没有之前的提示了。
2
wsl 速度慢 PowerShell 管理员权限运行
Disable-NetAdapterBinding -Name “vEthernet (WSL)” -ComponentID ms_tcpip6 -IncludeHiddenDisable-NetAdapterLso -Name “vEthernet (WSL)” -IncludeHiddenGet-NetAdapterBinding -IncludeHidden -Name “vEthernet (WSL)”Get-NetAdapterAdvancedProperty -IncludeHidden -Name “vEthernet (WSL)”