このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
03_windows:99_other:18_wsl2_systemctl [2021/03/25 03:59] – [SSH起動] matsui | 03_windows:99_other:18_wsl2_systemctl [2022/02/05 11:20] (現在) – matsui | ||
---|---|---|---|
行 8: | 行 8: | ||
[[https:// | [[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を入れる === |
< | < | ||
行 24: | 行 25: | ||
- | ==== SSHD起動 | + | === SSHD起動 === |
※複数のディストリビューションでSSHDを起動する場合は、ポートを変えて起動する必要があります。 | ※複数のディストリビューションでSSHDを起動する場合は、ポートを変えて起動する必要があります。 | ||
行 34: | 行 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> |