tag:crieit.net,2005:https://crieit.net/tags/archLinux/feed
「archLinux」の記事 - Crieit
Crieitでタグ「archLinux」に投稿された最近の記事
2022-03-13T18:31:26+09:00
https://crieit.net/tags/archLinux/feed
tag:crieit.net,2005:PublicArticle/18153
2022-03-13T18:31:26+09:00
2022-03-13T18:31:26+09:00
https://crieit.net/posts/WSL2-Arch-systemctl
WSL2(Arch)でsystemctlを使用できるようにするために行ったこと
<p>環境:<br />
WSL=WSL2<br />
ディストリビューション=Arch</p>
<p>TeraTarmでSSH接続をしたかったけれど、デフォルトではsystemctlが実行できないようだったので、設定を行った。</p>
<p>【使用したもの】<br />
<a target="_blank" rel="nofollow noopener" href="https://rustrepo.com/repo/nullpo-head-wsl-distrod">Distrod</a></p>
<p>【設定方法】<br />
動いていたArchに入れたので、下記のページのOption2を実行<br />
<a target="_blank" rel="nofollow noopener" href="https://rustrepo.com/repo/nullpo-head-wsl-distrod#option-2-make-your-current-distro-run-systemd">Option 2: Make your Current Distro Run Systemd</a></p>
<p>★実行内容<br />
手順1:記載されている通りに実施<br />
手順2:下記のほうを実行<br />
<code>/opt/distrod/bin/distrod enable</code><br />
手順3は実行してもエラーとなっただけだった。</p>
<p>【実行後】<br />
systemctl が利用できるようになっていて、daemonの再起動などもできるようになった。<br />
便利。</p>
ao-iro