{
    "componentChunkName": "component---src-templates-blog-post-jsx",
    "path": "/post/setup-windows-2020/",
    "result": {"data":{"site":{"siteMetadata":{"title":"WEB EGG","author":"Leko - CTO at Yuimedi"}},"markdownRemark":{"id":"c5dce826-886b-56d1-ac5e-c9a1f48cc49a","excerpt":"普段使いしているUbuntuで致命的な問題が起こり実用に耐えなくなってしまったので急遽IE確認用に残しておいたWindowsを開発機として使うことにしました。次こういうことが起こった時にスムーズに対処できるようにするためのメモを残します。 WindowsをIE…","html":"<p>普段使いしているUbuntuで致命的な問題が起こり実用に耐えなくなってしまったので急遽IE確認用に残しておいたWindowsを開発機として使うことにしました。次こういうことが起こった時にスムーズに対処できるようにするためのメモを残します。<br>\nWindowsをIEの動作確認に利用する程度で全くセットアップされておらず、ほぼクリーンインストール直後と同じ状況でした。</p>\n<p>なお、もともとWindowsに詳しいユーザにとって特に目新しいことはないと思います。<strong>そして吟味されていない不適切な方法が掲載されている可能性があります</strong><br>\n新しいPCが届くまでのつなぎとして情報の吟味をほとんどしてないため、より良い選択肢があれば教えてもらえると喜びます。</p>\n<h2 id=\"環境\" style=\"position:relative;\"><a href=\"#%E7%92%B0%E5%A2%83\" aria-label=\"環境 permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>環境</h2>\n<ul>\n<li>Thinkpad X1 Carbon 2019年モデル</li>\n<li>Windows 10 (64bit, ver 1909, build 18363.900)</li>\n<li>Windows 10歴 2日目</li>\n</ul>\n<h2 id=\"ゴール\" style=\"position:relative;\"><a href=\"#%E3%82%B4%E3%83%BC%E3%83%AB\" aria-label=\"ゴール permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>ゴール</h2>\n<ul>\n<li>普段使ってるキーマッピングとほぼ同等の使用感にする</li>\n<li>Apple Magic trackpad 2が使えるようにする</li>\n<li>Chrome, Slack, VSCodeが使えるようにする</li>\n<li>VSCodeで多段SSHの環境に入って開発ができる</li>\n<li>sshコマンドが使えるようにする</li>\n<li>いざという時のためにWSL2でUbuntuが使えるようにしておく</li>\n</ul>\n<h2 id=\"windows-updateする\" style=\"position:relative;\"><a href=\"#windows-update%E3%81%99%E3%82%8B\" aria-label=\"windows updateする permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Windows updateする</h2>\n<p>環境を整えるためにいろいろインストールしていくので脆弱性のパッチなどはあらかじめ当てておきたい。ということで長いこと溜め込んでたWindows Updateを実行します。<br>\n私の場合Windows 10のメジャーアップデート（？）があったようで100Mbpsの有線接続で3-40分くらい放置しました。</p>\n<h2 id=\"キー配列を設定する\" style=\"position:relative;\"><a href=\"#%E3%82%AD%E3%83%BC%E9%85%8D%E5%88%97%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B\" aria-label=\"キー配列を設定する permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>キー配列を設定する</h2>\n<p>US配列を使っているのですがWindowsはJIS配列として認識されていました。<br>\nIEにURLを打つ程度なら問題なかったのですが、さすがにコード書くとなると記号の入力が壊滅しているのは厳しいので修正しました。</p>\n<ul>\n<li>言語設定を開く（Winキー→“lang”で開ける）</li>\n<li>優先言語に表示されている言語をクリック＋オプションボタンを押下</li>\n<li>ハードウェアキーボードレイアウトをUSに変更</li>\n</ul>\n<h2 id=\"capslockキーをctrlキーにマッピングする\" style=\"position:relative;\"><a href=\"#capslock%E3%82%AD%E3%83%BC%E3%82%92ctrl%E3%82%AD%E3%83%BC%E3%81%AB%E3%83%9E%E3%83%83%E3%83%94%E3%83%B3%E3%82%B0%E3%81%99%E3%82%8B\" aria-label=\"capslockキーをctrlキーにマッピングする permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>CapsLockキーをCtrlキーにマッピングする</h2>\n<blockquote>\n<p>— <a href=\"https://www.atmarkit.co.jp/ait/articles/0907/03/news103.html\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Ctrl2Capツールで［Ctrl］と［CapsLock］キーを入れ替える（Windows編）：Tech TIPS - ＠IT</a></p>\n</blockquote>\n<p>純正のツールでキーマップを変更できたので取り急ぎこれを使った。<br>\nただ後述するキーマッピングの変更ソフトを使って一元管理したほうがよさそうです。</p>\n<h2 id=\"ime日本語英語の切り替え\" style=\"position:relative;\"><a href=\"#ime%E6%97%A5%E6%9C%AC%E8%AA%9E%E8%8B%B1%E8%AA%9E%E3%81%AE%E5%88%87%E3%82%8A%E6%9B%BF%E3%81%88\" aria-label=\"ime日本語英語の切り替え permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>IME（日本語↔英語）の切り替え</h2>\n<p>仕事では日本語を入力しないので英語しか入力できなくても大きな支障はないですが、日本語が入力できないとTwitterやブログ書くのに不便なのでやります。<br>\nもともとUbuntuでも使用していた「左右の⌘キー/Altキーで日英の切り替え」ができる手段の１つがこちらです。</p>\n<blockquote>\n<p>— <a href=\"https://github.com/karakaram/alt-ime-ahk\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">karakaram/alt-ime-ahk</a><br>\n— <a href=\"https://www.karakaram.com/alt-ime-on-off/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">WindowsのAlt空打ちで日本語入力(IME)を切り替えるツールを作った - karakaram-blog</a></p>\n</blockquote>\n<p>AutoHotKeyというソフトを使ってAltを単押ししたときだけ日英を切り替えるスクリプトだそうです。<br>\n<a href=\"https://twitter.com/euxn23\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">@euxn23</a>から教えてもらったのですがAHKより良い手段がいろいろあるそうで、現キーマップが動かないor物足りなくなったら試行錯誤してみようと思います。</p>\n<blockquote class=\"twitter-tweet\"><p lang=\"ja\" dir=\"ltr\">ahk 不安定なので nodoka (yamy の後継)がおすすめですよ。変なことしないなら PowerToys のキーボード拡張でも事足ります</p>&mdash; ユーン🍆 (@euxn23) <a href=\"https://twitter.com/euxn23/status/1291365340606160896?ref_src=twsrc%5Etfw\">August 6, 2020</a></blockquote> <script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>\n<h2 id=\"apple-magic-trackpadを使えるようにする\" style=\"position:relative;\"><a href=\"#apple-magic-trackpad%E3%82%92%E4%BD%BF%E3%81%88%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%99%E3%82%8B\" aria-label=\"apple magic trackpadを使えるようにする permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Apple Magic trackpadを使えるようにする</h2>\n<p>単にBluetoothデバイスとしてペアリングすると最低限マウスとしては動作します。<br>\nしかしマウスの移動とクリックしかできず、スクロールやその他ジェスチャはすべて使えません。これではMagic trackpadを利用する意味がありません。治します。</p>\n<p>まず出てきたのがこちらのOSSで作成されているドライバ。Bluetooth接続には対応してない（ロードマップには入っている）ので有線接続でのみ動作します。</p>\n<blockquote>\n<p>— <a href=\"https://github.com/imbushuo/mac-precision-touchpad\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">imbushuo/mac-precision-touchpad: Windows Precision Touchpad Driver Implementation for Apple MacBook / Magic Trackpad</a></p>\n</blockquote>\n<p>次に出てきたのがこちら。有償ですが品質は高いそうです（試してない）</p>\n<blockquote>\n<p>— <a href=\"https://magicutilities.net/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Home - Magic Utilities</a></p>\n</blockquote>\n<p>mac-precision-touchpadがよくできているので、結局そちらを使っています。<br>\n本当は無線のまま使えたら良かったのですが、OSSもしくはフリーソフトでBluetooth対応しているドライバはなかった＋USBポート１つ空いてたので有線接続しました。</p>\n<h2 id=\"wsl-2を有効化する\" style=\"position:relative;\"><a href=\"#wsl-2%E3%82%92%E6%9C%89%E5%8A%B9%E5%8C%96%E3%81%99%E3%82%8B\" aria-label=\"wsl 2を有効化する permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>WSL 2を有効化する</h2>\n<p>こちらの記事の通りです。</p>\n<blockquote>\n<p>— <a href=\"https://qiita.com/TsuyoshiUshio@github/items/947301bd9317610572fc\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">WSL2入れてみた - Qiita</a></p>\n</blockquote>\n<h2 id=\"wsl--vscodeの設定\" style=\"position:relative;\"><a href=\"#wsl--vscode%E3%81%AE%E8%A8%AD%E5%AE%9A\" aria-label=\"wsl  vscodeの設定 permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>WSL + VSCodeの設定</h2>\n<p>特に用はないのですが、とりあえずLinuxのターミナルとVSCodeの環境を用意しておけばWindows固有の問題に詰まった時に回避できそうなので用意しておきます。<br>\nといってもやることはExtension入れるだけです。</p>\n<blockquote>\n<p>— <a href=\"https://code.visualstudio.com/docs/remote/wsl#_getting-started\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Developing in the Windows Subsystem for Linux with Visual Studio Code</a></p>\n</blockquote>\n<h2 id=\"opensshのセットアップ\" style=\"position:relative;\"><a href=\"#openssh%E3%81%AE%E3%82%BB%E3%83%83%E3%83%88%E3%82%A2%E3%83%83%E3%83%97\" aria-label=\"opensshのセットアップ permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>OpenSSHのセットアップ</h2>\n<p>公式ドキュメントがあったのでこの通り進めてOpenSSHを有効化します。</p>\n<blockquote>\n<p>— <a href=\"https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse#installing-openssh-with-powershell\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Installation of OpenSSH For Windows Server | Microsoft Docs</a></p>\n</blockquote>\n<p>するとPowerShellでssh-keygenが使えるようになります。UNIX系OSと同様のやり方でキーペアを生成し、パーミッションを確認しておきます。<br>\nGitHubに公開鍵を登録し、そもそもSSHが動いているか、パーミッション周りが適切か調べておくとこの先のトラブルが少ないと思います。</p>\n<blockquote>\n<p>— <a href=\"https://docs.github.com/en/github/authenticating-to-github/testing-your-ssh-connection\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Testing your SSH connection - GitHub Docs</a></p>\n</blockquote>\n<h2 id=\"ssh--vscodeの設定\" style=\"position:relative;\"><a href=\"#ssh--vscode%E3%81%AE%E8%A8%AD%E5%AE%9A\" aria-label=\"ssh  vscodeの設定 permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>SSH + VSCodeの設定</h2>\n<p>私の場合はEC2においてある開発用のコンテナに接続して開発しているので、ローカルに開発環境を整える必要はありません。<br>\nVSCodeでSSHできればいいのですが思った以上にハマったので残しておきます。</p>\n<h3 id=\"vscodeの設定\" style=\"position:relative;\"><a href=\"#vscode%E3%81%AE%E8%A8%AD%E5%AE%9A\" aria-label=\"vscodeの設定 permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>VSCodeの設定</h3>\n<p>VSCodeの<code>Remote - SSH</code>というExtensionをインストールし、SSHの設定ファイル（パスは違うけど~/.ssh/configと同じもの）を開いて必要な設定を書き足します。</p>\n<blockquote>\n<p>— <a href=\"https://code.visualstudio.com/docs/remote/ssh\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Developing on Remote Machines using SSH and Visual Studio Code</a></p>\n</blockquote>\n<p>公開鍵認証を用いた１段階のSSHであれば問題なく接続できたのですが、踏み台を用いた多段SSHでよくわからないエラーが起きました。<br>\n具体的には<code>ProxyCommand</code>が動作しません。ProxyCommandの設定内容を直接SSHコマンドとして実行すると動作するのですが、なぜかSSHできない場合はおそらくこれが原因です。<br>\n<code>ProxyCommand</code>コマンドの中身を貼り付けて実行してエラーになるようなら別の問題です。ググりましょう。</p>\n<p>デフォルトでインストールされるOpenSSHのバージョンにはバグがあるようで、SSHコマンドを最新に更新する詳しい手順があるのでそれに従います。<br>\n手順通りsshコマンドをアップグレードしたところProxyCommandが期待通り動き、VSCodeで多段SSH環境に入れるようになりました。</p>\n<blockquote>\n<p>こちらのコメントに手動で修正する方法が紹介されています。\n<a href=\"https://github.com/microsoft/vscode-remote-release/issues/18#issuecomment-507258777\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https://github.com/microsoft/vscode-remote-release/issues/18#issuecomment-507258777</a></p>\n<p>— <a href=\"https://www.suzu6.net/posts/205-ssh-config-proxycommand-windows10/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Windwos10でssh ProxyCommandの多段SSHの設定 - suzu6</a></p>\n</blockquote>\n<h2 id=\"起動時に自動で起動するアプリを変更したい\" style=\"position:relative;\"><a href=\"#%E8%B5%B7%E5%8B%95%E6%99%82%E3%81%AB%E8%87%AA%E5%8B%95%E3%81%A7%E8%B5%B7%E5%8B%95%E3%81%99%E3%82%8B%E3%82%A2%E3%83%97%E3%83%AA%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%97%E3%81%9F%E3%81%84\" aria-label=\"起動時に自動で起動するアプリを変更したい permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>起動時に自動で起動するアプリを変更したい</h2>\n<p>「スタートアップ アプリ」という設定があるのですが、この設定画面からは項目を追加できません。</p>\n<p>スタートアイコン（Windowsマーク）を右クリックし「ファイル名を指定して実行」を押下し、<code>shell:startup</code>と入力すると、起動時に自動起動してほしいアプリを置いておくフォルダが開かれます。<br>\nこのフォルダにexeのショートカットまたはexe本体を配置しておくと自動起動するようです。</p>\n<p>フォルダにいろいろ追加してみると「スタートアップ アプリ」の設定画面にも反映されていました。<br>\nなんでGUIの設定画面から設定できないんだろう。</p>\n<h2 id=\"最後に\" style=\"position:relative;\"><a href=\"#%E6%9C%80%E5%BE%8C%E3%81%AB\" aria-label=\"最後に permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>最後に</h2>\n<p>私はSteamなどのゲームもしないしWindows専用のソフトも何も使ってないため、真剣にWindowsを触ったのはWeb制作会社でバイトしてた頃の貸与PCぶり（8年前）でした。<br>\nその頃はAdobeのDreamweaverとSublime Text、ターミナルには<a href=\"https://gitforwindows.org/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Git for Windows</a>を使ってました。<br>\n当時と比べて（今更ですが）WSLの登場だったりエディタの進化だったりOSの進化だったりによってかなり使いやすくなってると感じました。正直このままメインマシンとして使ってもいけそうな予感がしています。</p>\n<p>仕事ではEC2に開発環境を置いてあるためローカルの動作環境が一切なくてもいい点が幸いでした。<br>\nそのためまだlocalhostを立てたこともなくWSL化のUbuntuも酷使していません。\n趣味のコードを書き始めれば何か問題が見つかると思います。何かあれば逐次追記します。</p>\n<p>以上雑記でした。</p>","timeToRead":10,"frontmatter":{"title":"急遽Windowsを開発機として使うことになったときやったこと","tags":null,"date":"August 07, 2020","featuredImage":null}}},"pageContext":{"slug":"/setup-windows-2020/","previous":{"fields":{"slug":"/smart-home-light-with-sleep/"},"frontmatter":{"title":"睡眠トラッカーWithings SleepをIFTTTで繋いで電気のOn/Offを制御する","tags":["スマートホーム","IFTTT"]}},"next":{"fields":{"slug":"/review-live-project-by-manning/"},"frontmatter":{"title":"マニング出版のliveProjectというサービスの持ち込み提案書をレビューした話","tags":null}}}},
    "staticQueryHashes": ["2585454260","2954598359"]}