diff --git a/content/posts/2021/Windows 11 重灌/index.md b/content/posts/2021/Windows 11 重灌/index.md new file mode 100644 index 0000000..063d78f --- /dev/null +++ b/content/posts/2021/Windows 11 重灌/index.md @@ -0,0 +1,68 @@ +--- +slug: Windows 11 重灌 +title: Windows 11 重灌 +description: +toc: true +authors: [awin] +tags: [windows] +categories: [System] +series: [Windows] +date: 2021-11-01T00:00:00 +lastmod: 2021-11-01T00:00:00 +featuredVideo: +featuredImage: +draft: false +enableComment: true +--- + +## 恢復備份 +- `%userprofile%/.config` +- `%userprofile%/.ssh` +- `%userprofile%/.bash_profile` +- `%userprofile%/.bashrc` +- `%userprofile%/.gitconfig` +- `%userprofile%/.vimrc` + +## 安裝 Chocolatey +先安裝 [Chocolatey](https://chocolatey.org/) ,根據 [https://chocolatey.org/install](https://chocolatey.org/install) ,用 Administrator 權限打開 Terminal ,輸入以下指令安裝: + +```powershell +Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) +``` + +## 安裝需要的軟體 +接著就可以安裝需要的工具了。 +```shell +choco install powertoys 7zip vscode hxd sublimetext4 androidstudio intellijidea-community git winmerge freefilesync freedownloadmanager gsudo firacode cascadiacode sourcecodepro delta googlechrome googledrive enpass.install sharex win32diskimager k-litecodecpackmega --yes +``` + +可以在 [https://community.chocolatey.org/packages](https://community.chocolatey.org/packages) 找到其他工具,再加到清單後面即可。 + +上面的指令安裝了下列的軟體,可以依自己需求增刪: +- [powertoys](https://community.chocolatey.org/packages/powertoys) +- [7zip](https://community.chocolatey.org/packages/7zip) +- [vscode](https://community.chocolatey.org/packages/vscode) +- [hxd](https://community.chocolatey.org/packages/hxd) +- [sublimetext4](https://community.chocolatey.org/packages/sublimetext4) +- [androidstudio](https://community.chocolatey.org/packages/androidstudio) +- [intellijidea-community](https://community.chocolatey.org/packages/intellijidea-community) +- [git](https://community.chocolatey.org/packages/git) +- [winmerge](https://community.chocolatey.org/packages/winmerge) +- [freefilesync](https://community.chocolatey.org/packages/freefilesync) +- [freedownloadmanager](https://community.chocolatey.org/packages/freedownloadmanager) +- [gsudo](https://community.chocolatey.org/packages/gsudo) +- [firacode](https://community.chocolatey.org/packages/firacode) +- [cascadiacode](https://community.chocolatey.org/packages/cascadiacode) +- [sourcecodepro](https://community.chocolatey.org/packages/sourcecodepro) +- [delta](https://community.chocolatey.org/packages/delta) +- [googlechrome](https://community.chocolatey.org/packages/googlechrome) +- [googledrive](https://community.chocolatey.org/packages/googledrive) +- [enpass.install](https://community.chocolatey.org/packages/enpass.install) +- [sharex](https://community.chocolatey.org/packages/sharex) +- [win32diskimager](https://community.chocolatey.org/packages/win32diskimager) +- [k-litecodecpackmega](https://community.chocolatey.org/packages/k-litecodecpackmega) + +## 升級軟體 +```shell +choco upgrade all -y +```