yangweijie / note

个人博客
https://yangweijie.github.io/note/
10 stars 1 forks source link

wsl2 安装genie 使用systemctl #97

Open yangweijie opened 1 year ago

yangweijie commented 1 year ago

apt install lsb-release

wget -O /etc/apt/trusted.gpg.d/wsl-transdebian.gpg https://arkane-systems.github.io/wsl-transdebian/apt/wsl-transdebian.gpg

chmod a+r /etc/apt/trusted.gpg.d/wsl-transdebian.gpg

cat << EOF > /etc/apt/sources.list.d/wsl-transdebian.list deb https://arkane-systems.github.io/wsl-transdebian/apt/ $(lsb_release -cs) main deb-src https://arkane-systems.github.io/wsl-transdebian/apt/ $(lsb_release -cs) main EOF

apt update

sudo apt install -y systemd-genie

genie -c systemctl start sshd