diff --git a/windows/README.md b/windows/README.md index 9792234b..d476062e 100644 --- a/windows/README.md +++ b/windows/README.md @@ -2,32 +2,40 @@ ## Installation -1. ```powershell - winget import --import-file "\\wsl.localhost\Ubuntu\home\kachick\repos\dotfiles\windows\config\winget-pkgs-basic.json" - winget import --import-file "\\wsl.localhost\Ubuntu\home\kachick\repos\dotfiles\windows\config\winget-pkgs-dev.json" +Bascically following codes will be done in PowerShell + +1. Install WSL2 + ```powershell + wsl.exe --install --distribution "Ubuntu-22.04" + ``` +1. On WSL2, download this repository. HTTPS may work even if ssh is not yet configured + ```bash + mkdir -p ~/repos + cd ~/repos + git clone https://github.com/kachick/dotfiles.git ``` -1. Download the windows helper binaries from github releases or uploaded artifacts in each workflow +1. Download the windows helper binaries from [GitHub releases](https://github.com/kachick/dotfiles/releases) or uploaded artifacts in [each workflow](https://github.com/kachick/dotfiles/actions/workflows/release.yml) summary 1. New session of pwsh ```powershell ./setup_windows_terminals.exe -dotfiles_path "\\wsl.localhost\Ubuntu-22.04\home\kachick\repos\dotfiles" -pwsh_profile_path "$PROFILE" ./disable_windows_beeps.exe ./enable_windows_verbose_context_menu.exe ``` +1. Install some tools + ```powershell + winget import --import-file "\\wsl.localhost\Ubuntu-22.04\home\kachick\repos\dotfiles\windows\config\winget-pkgs-basic.json" + winget import --import-file "\\wsl.localhost\Ubuntu-22.04\home\kachick\repos\dotfiles\windows\config\winget-pkgs-dev.json" + ``` +1. Remove needless pre-installed tools + ```powershell + # 9MSSGKG348SP is the Windows Widget(Windows Web Experience Pack) + winget uninstall --id 9MSSGKG348SP + ``` 1. Change Dropbox storage path from `C:\Users`, default path made problems in System Restore. \ See https://zmzlz.blogspot.com/2014/10/windows-dropbox.html for detail 1. Enable Bitlocker and backup the restore key -## How to run go scripts in this repo? - -After installed golang with winget, you can run github hosting files - -```console -Administrator in ~ psh -> go run github.com/kachick/dotfiles/cmd/disable_windows_beeps@39ac6dc -2023/08/22 15:34:18 Completed to disable beeps, you need to restart Windows to activate settings -``` - Specifying with branch name with the @ref may use cache, then specify commit ref ## How to install WSL2? @@ -52,7 +60,7 @@ One more noting, if you cannot find ngen.exe, dig under "C:\Windows\Microsoft.NE ## How to export winget list? ```powershell -winget export --output "\\wsl.localhost\Ubuntu\home\kachick\repos\dotfiles\windows\config\winget-pkgs-$(Get-Date -UFormat '%F')-raw.json" +winget export --output "\\wsl.localhost\Ubuntu-22.04\home\kachick\repos\dotfiles\windows\config\winget-pkgs-$(Get-Date -UFormat '%F')-raw.json" ``` It may be better to remove some packages such as `Mozilla.Firefox.DeveloperEdition`. @@ -110,7 +118,7 @@ No beautiful ways, I think. Read