What it does?
Smart Stop will stop ALL the WSL services including the distros running in the background and the IDE that you specified in the settings as it is needed for WSL to not autorestart and close the Vmmem
process.
-
Compatible WSL distros:
✔️ Ubuntu
✔️ Debian
✔️ kali-linux
✔️ Ubuntu-16.04
✔️ Ubuntu-18.04
✔️ Ubuntu-20.04 -
Install dpkg if not installed:
sudo apt-get update sudo apt-get install dpkg
-
Enable PowerShell Scripts to run:
Open PowerShell as administrator and type:
Set-ExecutionPolicy RemoteSigned
IMPORTANT: All the installation is made from the WSL Terminal you want the program to be installed and used on.
-
Download the package:
wget https://github.com/Flamiing/SmartStop/releases/download/v1.0.0/Smart_Stop_1.0_amd64.deb
-
Install the package:
sudo dpkg -i Smart_Stop_1.0_amd64.deb
-
Setup your preferences:
Set the distro in which you are installing Smart Stop by copying your distro name from the compatible distros section above and changing it for
DistroName
.smart-stop -d DistroName
Set your IDE with the below command. Change
IDEName
by the process name of the IDE you use without the filename extension.
If you don't know how to find a process name click here.smart-stop -i IDEName
If you use Windows Terminal and don’t want it to be closed you can set the option off by typing:
smart-stop -t false
If you change your mind you can just type:
smart-stop -t true
After everything is setup you can use smart-stop
to close WSL and relax!
You can check at any time the list of available commands by typing smart-stop -?
or smart-stop --help
If you want to report any bugs or to give some feedback please contact me at feedback@flamiing.com.
Also feel free to contribute to the project if you have any cool features or ideas that could make it better!
Smart Stop is under MIT License © Flamiing