131 lines
5.2 KiB
Markdown
131 lines
5.2 KiB
Markdown
# 要保存/恢復的檔案
|
||
- `%userprofile%/.config`
|
||
- `%userprofile%/.ssh`
|
||
- `%userprofile%/.bash_profile`
|
||
- `%userprofile%/.bashrc`
|
||
- `%userprofile%/.gitconfig`
|
||
- `%userprofile%/.vimrc`
|
||
|
||
# 安裝工具
|
||
## 使用 [WinGet](https://learn.microsoft.com/zh-tw/windows/package-manager/winget/) 安裝工具
|
||
```bash
|
||
winget install -e --id \
|
||
Microsoft.PowerToys \
|
||
7zip.7zip \
|
||
MHNexus.HxD \
|
||
SublimeHQ.SublimeText.4 \
|
||
Git.Git \
|
||
dandavison.delta \
|
||
WinMerge.WinMerge \
|
||
SoftDeluxe.FreeDownloadManager \
|
||
Google.Chrome \
|
||
CodecGuide.K-LiteCodecPack.Mega \
|
||
ShareX.ShareX \
|
||
Win32diskimager.win32diskimager \
|
||
Google.GoogleDrive \
|
||
Microsoft.VisualStudioCode \
|
||
Google.AndroidStudio \
|
||
```
|
||
|
||
```PowerShell
|
||
winget install -e --id `
|
||
Microsoft.PowerToys `
|
||
7zip.7zip `
|
||
MHNexus.HxD `
|
||
SublimeHQ.SublimeText.4 `
|
||
Git.Git `
|
||
dandavison.delta `
|
||
WinMerge.WinMerge `
|
||
SoftDeluxe.FreeDownloadManager `
|
||
Google.Chrome `
|
||
CodecGuide.K-LiteCodecPack.Mega `
|
||
ShareX.ShareX `
|
||
Win32diskimager.win32diskimager `
|
||
Google.GoogleDrive `
|
||
Microsoft.VisualStudioCode `
|
||
Google.AndroidStudio
|
||
```
|
||
|
||
|
||
|
||
## 安裝 Chocolatey
|
||
安裝[Chocolatey](https://chocolatey.org/),用Administrator身份打開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'))
|
||
```
|
||
|
||
## 用 Chocolatey 安裝工具
|
||
```
|
||
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 obsidian anki enpass.install --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)
|
||
- [obsidian](https://community.chocolatey.org/packages/obsidian)
|
||
- [anki](https://community.chocolatey.org/packages/anki)
|
||
- [Enpass Password Manager](https://community.chocolatey.org/packages/enpass.install)
|
||
|
||
## 用 Chocolatey 升級軟體
|
||
|
||
```shell
|
||
choco upgrade all -y
|
||
```
|
||
|
||
# 手動安裝
|
||
3. Python 3.6.3
|
||
4. Python 3.9
|
||
7. Visual Studio 2022
|
||
8. Office 365
|
||
9. Lightroom
|
||
11. [ShareX](https://getsharex.com/)
|
||
12. [win32diskimager](https://sourceforge.net/projects/win32diskimager/)
|
||
13. [卡巴斯基](https://www.kaspersky.com.tw/)
|
||
14. 字型
|
||
- [Caskaydia](\\diskstation\share\Tools\字型\Caskaydia Cove Nerd Font\)
|
||
15. 安裝 [`wget`](https://eternallybored.org/misc/wget/)
|
||
1. [Version 1.21.4](https://eternallybored.org/misc/wget/1.21.4/64/wget.exe)
|
||
|
||
# `~/.bashrc`
|
||
1. 打開`~/.bashrc`。
|
||
2. 內容如[[bashrc|bashrc]]
|
||
|
||
# Setup Windows Terminal
|
||
1. 開啟Windows Terminal。
|
||
2. 按`ctrl + ,`打開設定,之後參考[[Windows Terminal]]。
|
||
|
||
# 恢復右鍵選單
|
||
- 以admin身份打開PowerShell,執行 `reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve`
|
||
- 要恢復Windows 11的右鍵選單則是執行:`reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f`
|
||
|
||
# 設定使用者環境變數
|
||
- `PYTHON_INCLUDE`: `C:\Python363\include`
|
||
- `PYTHON_LIB`: `C:\Python363\libs`
|
||
- `RobotRunCommonLib`: `C:\SynologyDrive\codes\CommonLib\RobotRunCommonLib`
|
||
- `SWIGCmd`: `C:\SynologyDrive\PortableApps\swigwin-4.0.2\swig.exe`
|
||
|
||
# 參考
|
||
- [How to open the full right-click menu by default on Windows 11](https://www.xda-developers.com/how-to-open-full-right-click-menu-by-default-windows-11/)
|
||
- [【教學】Windows 11 系統優化](https://ofeyhong.pixnet.net/blog/post/225581177) |