What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-12-23 17:36:26
wsl System has not been booted with systemd as init system
Instead of using sudo systemctl start your_app use: sudo /etc/init.d/your_app start example: sudo /etc/init.d/docker start , as of right now we do not have systemd in WSL 2. example: sudo /etc/init.d/chrony start Add solution -
Other 2021-09-27 11:19:06
wsl2 port forwarding ps1 script
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" $found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; if( $found ){ $remoteport = $matches[0]; } else{ echo "The Script Exited, the ip address of WSL 2 cannot be foun... Add solution