TL;DR
めずらしくWindowsをセットアップする機会が頻繁にあったので、備忘録。
方針として、WindowsはWindowsでしかできない作業(つまりゲームですね)のためと割り切って、ソフトウェアや設定はなるべくマジョリティに日和っていく。
不要なソフトウェアをアンインストール
Windowsが嫌いな理由、第3位ぐらいに入る「不要なプリインストールソフトウェアの多さ」。
まずは片っ端から消す。
CLI
PowerShell Core on Windows Terminalを基本とする。
Windows Storeからこれらをインストールしたあとは、なるべくwinget経由でインストールを進める。
もうちょっと若いころだったらScoopとかCmderとか頑張ってた気がする。
でも、おじさんはもう疲れたのでなるべく謹製に頼っていく。
Powerline
公式にWindows ターミナルで Powerline をセットアップする | Microsoft Docsがあるぐらい推してくるので、ちょっと外連味を足しておこう。
世間的にはdotted zeroなフォントが多い中、個人的にslashed zeroが好きなのでNerdfontsからは Mononokiを採用。
後述するWSLとPowerShell Coreしか使わなくなるので、WindowsTerminalのProfileは最低限これだけで良い。
"profiles":
{
"defaults": {},
"list":
[
{
"colorScheme": "One Half Dark",
"font":
{
"face": "mononoki NF"
},
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"name": "PowerShell Core",
"source": "Windows.Terminal.PowershellCore"
},
{
"colorScheme": "Tango Dark",
"font":
{
"face": "mononoki NF"
},
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl",
"startingDirectory": "//wsl$/Ubuntu/home/suzuki"
}
]
},
Microsoft.PowerShell_profile.ps1には、これぐらいしか書き込んでない。
余談ですけど、PowerShellのコマンドレットって全く覚えられる気がしない。
# for Windows Terminal
if ($env:WT_PROFILE_ID) {
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme marcduiker
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineKeyHandler -Key "Ctrl+f" -Function ForwardWord
}
# Aliases
Set-Alias open Invoke-Item
WSL2
WSLのインストールがとても簡単になっていて嬉しい。
wsl --install -d Ubuntu
このコマンドを打った後、Windowsはゲーム専用OSとしてSteamを立ち上げるぐらいしか仕事がなくなる説ある。
GUI
wingetでインストールできないいくつかのソフトウェアについて補足。
GPU周り
豪勢にNVIDIA GeForce RTX 3090が積まれてたのでnVidia Control Panelをインストールしないと延々とWarningが出る。
また、昨今のグラボ、熱がやばいのでMSI Afterburnerもインストールして監視。
自分でWindows PC買うときは水冷GPUにしようと思った。
Docker for Windows
WSL2をインストールしてからだと、インストーラがWSL2 Backend周りの設定もやってくれた。
これでローカルを汚さずに開発環境構築ができるのでWindowsはますますゲーム専用OSに。
Software
最終的にインストールされたソフトウェアたちを winget listで確認するとこんな感じ。
これをwinget exportしておけば次回からはwinget importでもう少し楽になりそう。
Name Id Version Source
-------------------------------------------------------------------------------------------------------------------------------------------
1Password AgileBits.1Password 7.9.822 winget
IrfanView64 30067IrfanSkiljanIrfanVie.IrfanView64_psgec73n2n7ne 4.5.8.0
MSI Afterburner 4.6.4 Beta 4 Afterburner 4.6.4 Beta 4
Intel® OptaneTM Memory and Storage Management AppUp.IntelOptaneMemoryandStorageManagement_8j3eq9eme6ctt 18.1.1020.0
CPUID HWMonitor CPUID.HWMonitor 1.44 winget
Ubuntu CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc 2004.2020.424.0
DeepL DeepL.DeepL 2.9.12645 winget
Dropbox Dropbox.Dropbox 134.3.4107 winget
GitHub Desktop GitHub.GitHubDesktop 2.9.4 winget
Git Git.Git 2.33.1 winget
Media Player Classic - BE powered by weatherlights.com HaukeGtze.77535DB761F2_6bk20wvc8rfx2 1.158.1.0
Microsoft Edge Microsoft.Edge 94.0.992.50 winget
Microsoft Edge Update Microsoft Edge Update 1.3.153.47
Microsoft Edge WebView2 Runtime Microsoft.EdgeWebView2Runtime 94.0.992.47 winget
Cortana Microsoft.549981C3F5F10_8wekyb3d8bbwe 3.2109.6305.0
AV1 Video Extension Microsoft.AV1VideoExtension_8wekyb3d8bbwe 1.1.41601.0
App Installer Microsoft.DesktopAppInstaller_8wekyb3d8bbwe 1.16.12653.0
Get Help Microsoft.GetHelp_8wekyb3d8bbwe 10.2108.42428.0
HEIF Image Extensions Microsoft.HEIFImageExtension_8wekyb3d8bbwe 1.0.42352.0
HEVC Video Extensions from Device Manufacturer Microsoft.HEVCVideoExtension_8wekyb3d8bbwe 1.0.42091.0
English (United States) Local Experience Pack Microsoft.LanguageExperiencePacken-US_8wekyb3d8bbwe 19041.3.3.0
日本語 ローカル エクスペリエンス パック Microsoft.LanguageExperiencePackja-JP_8wekyb3d8bbwe 19041.30.97.0
Paint 3D Microsoft.MSPaint_8wekyb3d8bbwe 6.2105.4017.0
3D Viewer Microsoft.Microsoft3DViewer_8wekyb3d8bbwe 7.2105.4012.0
Microsoft Edge Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe 94.0.992.50
Microsoft Sticky Notes Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe 4.1.6.0
Mixed Reality Portal Microsoft.MixedReality.Portal_8wekyb3d8bbwe 2000.21051.1282.0
Microsoft People Microsoft.People_8wekyb3d8bbwe 10.2105.4.0
PowerShell Microsoft.PowerShell_8wekyb3d8bbwe 7.1.5.0
Snip & Sketch Microsoft.ScreenSketch_8wekyb3d8bbwe 10.2008.2277.0
Store Experience Host Microsoft.StorePurchaseApp_8wekyb3d8bbwe 12106.1001.33.0
VP9 Video Extensions Microsoft.VP9VideoExtensions_8wekyb3d8bbwe 1.0.41182.0
Microsoft Pay Microsoft.Wallet_8wekyb3d8bbwe 2.4.18324.0
Web Media Extensions Microsoft.WebMediaExtensions_8wekyb3d8bbwe 1.0.42192.0
Webp Image Extensions Microsoft.WebpImageExtension_8wekyb3d8bbwe 1.0.42351.0
Microsoft Whiteboard Microsoft.Whiteboard_8wekyb3d8bbwe 21.10913.5785.0
Microsoft Photos Microsoft.Windows.Photos_8wekyb3d8bbwe 2019.19071.12548.0
Windows Alarms & Clock Microsoft.WindowsAlarms_8wekyb3d8bbwe 10.2101.28.0
Windows Calculator Microsoft.WindowsCalculator_8wekyb3d8bbwe 10.2103.8.0
Windows Camera Microsoft.WindowsCamera_8wekyb3d8bbwe 2021.105.10.0
Windows Maps Microsoft.WindowsMaps_8wekyb3d8bbwe 10.2104.2.0
Windows Voice Recorder Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe 10.2103.28.0
Microsoft Store Microsoft.WindowsStore_8wekyb3d8bbwe 11910.1002.5.0
Windows Terminal Microsoft.WindowsTerminal 1.10.2714.0 winget
Windows Package Manager Source (winget) Microsoft.Winget.Source_8wekyb3d8bbwe 2021.1016.456.546
Xbox Game Bar Plugin Microsoft.XboxGameOverlay_8wekyb3d8bbwe 1.54.4001.0
Xbox Game Bar Microsoft.XboxGamingOverlay_8wekyb3d8bbwe 2.34.28001.0
Xbox Identity Provider Microsoft.XboxIdentityProvider_8wekyb3d8bbwe 12.80.11001.0
Xbox Game Speech Window Microsoft.XboxSpeechToTextOverlay_8wekyb3d8bbwe 1.21.13002.0
Your Phone Microsoft.YourPhone_8wekyb3d8bbwe 1.21084.78.0
Movies & TV Microsoft.ZuneVideo_8wekyb3d8bbwe 10.21092.10731.0
NVIDIA Control Panel NVIDIACorp.NVIDIAControlPanel_56jybvy8sckqj 8.1.961.0
Microsoft OneDrive Microsoft.OneDrive 21.180.0905.0007 winget
Parsec Parsec.Parsec 150-77 winget
RivaTuner Statistics Server 7.3.2 Beta 5 RTSS 7.3.2 Beta 5
Realtek Audio Control RealtekSemiconductorCorp.RealtekAudioControl_dt26b99r8h8… 1.20.238.0
Steam Valve.Steam 2.10.91.91 winget
TouchDesigner 2021.15240 TouchDesigner.2021.15240_is1 2021.15240
Vivaldi VivaldiTechnologies.Vivaldi 4.3.2439.44 winget
Authy Desktop Twilio.Authy 1.8.4 winget
インテル(R) ワイヤレス Bluetooth(R) {00002090-0210-1041-84C8-B8D95FA3C8C3} 21.90.2.1
Microsoft Visual C++ 2013 Redistributable (x64) Microsoft.VC++2013Redist-x64 12.0.40664.0 winget
Microsoft Visual C++ 2013 Redistributable (x64) Microsoft.VC++2013Redist-x64 12.0.30501.0 winget
CodeMeter Runtime Kit v7.10a {09EE0E38-7A94-462F-99AC-4F05E092D935} 7.10.4196.501
VLC media player VideoLAN.VLC 3.0.16.0 winget
Intel(R) Management Engine Components {1CEAC85D-2590-4760-800F-8DE5E91F3700} 2101.15.0.2080
Microsoft Visual C++ 2010 x64 Redistributable Microsoft.VC++2010Redist-x64 10.0.40219 winget
7-Zip 7zip.7zip 19.00.00.0 winget
Microsoft Update Health Tools {29B15818-E79F-4AB0-8938-9410C807AD76} 2.84.0.0
ROG Live Service {2D87BFB6-C184-4A59-9BBE-3E20CE797631} 1.2.18.0
Windows Subsystem for Linux Update {36EF257E-21D5-44F7-8451-07923A8C465E} 5.10.16
Patriot Viper M2 SSD RGB {3c403389-0bc5-4298-bebf-09de0c0b745d} 1.0.6.4
Microsoft Visual C++ 2008 Redistributable - x64 Microsoft.VC++2008Redist-x64 9.0.30729.6161 winget
Universal Holtek RGB DRAM {6870588f-9f28-488b-a169-cf548ad6b393} 1.0.0.2
Everything Lite voidtools.Everything.Lite 1.4.1009 winget
Microsoft Visual Studio Code Microsoft.VisualStudioCode 1.61.1 winget
Realtek Ethernet Controller Driver {8833FFB6-5B0C-4764-81AA-06DFEED9A476} 10.45.928.2020
Intel(R) Chipset Device Software {99926fb7-5da9-4101-b79f-eec3674ca64b} 10.1.18634.8254
Microsoft Visual C++ 2008 Redistributable - x86 Microsoft.VC++2008Redist-x86 9.0.30729.6161 winget
NVIDIA グラフィックス ドライバー 460.89 {B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.Driver 460.89
Nvidia GeForce Experience Nvidia.GeForceExperience 3.20.5.70 winget
NVIDIA PhysX システム ソフトウェア 9.19.0218 {B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.PhysX 9.19.0218
NVIDIA FrameView SDK 1.1.4923.29214634 {B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_FrameViewSdk 1.1.4923.29214634
NVIDIA HD オーディオ ドライバー 1.3.38.40 {B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_HDAudio.Driver 1.3.38.40
Microsoft Visual C++ 2010 x86 Redistributable Microsoft.VC++2010Redist-x86 10.0.40219 winget
Realtek Audio Driver {F132AF7F-7BCA-4EDE-8A7C-958108FE7DBC} 6.0.9079.1
Microsoft Visual C++ 2015-2019 Redistributable (x64) … {a9cfe9c7-e54f-46cd-9c5c-542ff8e3e8c4} 14.28.29334.0
Microsoft Visual C++ 2015-2019 Redistributable (x86) … {b2d0f752-adc5-496e-8f70-8669de01f746} 14.28.29334.0
Microsoft Visual C++ 2013 Redistributable (x86) Microsoft.VC++2013Redist-x86 12.0.30501.0 winget
Patriot Viper DRAM RGB {fdc098ce-d76c-4e2e-a0a6-01a24e9a1f7d} 1.0.9.2
所感
Windowsをがっつり使ったのって、XPのころが最後だった記憶で、そこから比べると隔世の感を禁じ得ないんですが、そんなこと言ってるうちにWindows 11が出ちゃって、
「これもロストノウハウになるんだろうなぁ」って思いながらの作業は辛みしかなかった。
昔に比べると自動セットアップの手法も増えてるみたいなんだけど、そこまでセットアップ機会が多いわけでもなく、
かと思いきや、今回のように1週間に5台ぐらい面倒見なきゃいけなくなる事態もあって…
なんだろなぁ、諸悪の根源はOSで金を取ろうとするビジネスモデルな気がしてて、
その呪縛から解き放たれたらWindowsはもっと素敵で、もっと稼げるOSになるだろうに、と思った。

