验机
检测屏幕, 硬盘, 配置单, 注意不要联网
联网激活Office, 安全下车
卸载及安装
-
卸载内置联想套系, 除了
Legion Zone
, 这是调节电脑性能的工具 -
安装 QQ, Wechat 分在
D://Software/ChatTools
中- 更改 QQ, Wechat 默认文件下载位置为
D://Files/QQFiles
和D://Files/WechatFiles
- 更改 QQ, Wechat 默认文件下载位置为
-
安装网易云, 更改默认缓存目录
D://Files/CloudMusicCache
-
安装 Steam,
D://Games/Steam
-
安装 Bandzip,
D://Software/CompressionTools
-
安装 Clash,
D://Software/Clash
, 然后改代理- 开启 Allow Lan, 开启 IPV6, 开启 Start with Windows, 开启 System Proxy
- 打开 UWP Loopback 全选后保存
-
根据当前硬件安装各种驱动在
D://Drivers
中
安装 WSL
管理员模式打开 cmd
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
重启
在 Microsoft Store 中安装 Ubuntu, 打开后设置用户名和密码
wsl -l -v
确认安装 Ubuntu 版本及 WSL 版本
Windows Terminal 配置
启动:
- 默认配置文件 Ubuntu 22.04.2 LTS
- 默认终端应用程序: Windows 终端
进入 Ubuntu 子页面中的外观
下载 NerdFonts, 并在 Ubuntu 中选择该字体
检测 字体是否安装成功
Ubuntu 配置
1 | rm -rf .config/ |
配置代理
1 | export hostip=$(cat /etc/resolv.conf |grep -oP '(?<=nameserver\ ).*') |
Git 配置
1 | git config --global user.name lzl |
复制 ~/.ssh/id_rsa.pub
中内容, 到 github 上添加 ssh 密钥
安装 Hexo
- 安装 nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
, 重启终端 - 安装 node, npm:
nvm install node
- 安装 hexo:
npm install -g hexo-cli
*1
2
3
4git clone -b source git@github.com:lzlcs/lzlcs.github.io.git
mv lzlcs.github.io Blog
cd Blog
npm install
安装 nvim lvim
下载 nvim 安装包,解压
1 | echo 'export PATH="~/Apps/nvim/bin:$PATH"' >> ~/.bashrc |
安装 pip
1 | sudo apt install python-is-python3 -y |
安装 cargo
1 | sudo apt install cargo -y |
安装 lazygit
1 | cd ~/Apps/ |
安装 lvim
1 | LV_BRANCH='release-1.3/neovim-0.9' bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.sh) |