このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
03_windows:99_other:18_wsl2_systemctl [2021/03/25 03:43] – 作成 matsui | 03_windows:99_other:18_wsl2_systemctl [2022/02/05 11:20] (現在) – matsui | ||
---|---|---|---|
行 5: | 行 5: | ||
===== 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を入れる === |
< | < | ||
行 19: | 行 24: | ||
</ | </ | ||
+ | |||
+ | === SSHD起動 === | ||
+ | |||
+ | ※複数のディストリビューションでSSHDを起動する場合は、ポートを変えて起動する必要があります。 | ||
+ | |||
+ | < | ||
+ | # dnf install openssh-server | ||
+ | # ssh-keygen -A | ||
+ | # systemctl start sshd | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 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> |