このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
03_windows:99_other:18_wsl2_systemctl [2021/03/25 03:49] – matsui | 03_windows:99_other:18_wsl2_systemctl [2022/02/05 11:20] (現在) – matsui | ||
---|---|---|---|
行 6: | 行 6: | ||
===== systemctlを書き換えて利用する方法 ===== | ===== systemctlを書き換えて利用する方法 ===== | ||
+ | [[https:// | ||
+ | |||
+ | ==== Linux ==== | ||
< | < | ||
# cd /usr/bin/ | # cd /usr/bin/ | ||
# mv systemctl systemctl.old | # mv systemctl systemctl.old | ||
- | # curl -L -O systemctl https:// | + | # curl -L -o systemctl https:// |
# chmod +x systemctl | # chmod +x systemctl | ||
</ | </ | ||
- | ==== Python2を入れる | + | === Python2を入れる === |
< | < | ||
行 22: | 行 25: | ||
- | ==== SSH起動 ==== | + | === SSHD起動 === |
+ | |||
+ | ※複数のディストリビューションでSSHDを起動する場合は、ポートを変えて起動する必要があります。 | ||
< | < | ||
行 30: | 行 35: | ||
</ | </ | ||
+ | |||
+ | ==== Ubuntuの場合 ==== | ||
+ | |||
+ | < | ||
+ | $ sudo su - | ||
+ | # apt update | ||
+ | # apt install python2 | ||
+ | # cd /usr/bin/ | ||
+ | # mv systemctl systemctl.old | ||
+ | # curl -L -o systemctl https:// | ||
+ | # chmod +x systemctl | ||
+ | </ | ||
{{tag> | {{tag> |