Code Monkey home page Code Monkey logo

developmentwslmanager's Introduction

DevelopmentWSLManager

About this project

The goal of this project was to create a script which makes it ease to quickly create a new, seperate WSL instance. You can use this script to quickly create a WSL instance which can be used e.g. for a specific project with its special dependencies. Afterwards you can delete the instance and keep a (relatively) clean operating system.

Features

  • Quickly create a new WSL instance from a .tar image
  • Quickly remove/unregister existing WSL instances

Installation

Create a new WSL instance

Get an image

Option 1: create an image from an exisiting installation

wsl --export <NAME> <path-for-the-new-image>.tar

Option 2: download an image from Microsoft

  • Visit https://docs.microsoft.com/en-us/windows/wsl/install-manual
  • Download the .appx file for your desired distro
  • Change the file extension from .appx to .zip
  • Locate the install.tar.gz file
  • Extract install.tar.gz (you should get an install.tar file)
  • Copy (and if you want rename) install.tar to your desired location

Option 3: use a custom tar

Use the process described here: https://docs.microsoft.com/en-us/windows/wsl/use-custom-distro

Create a folder

Create a folder in which you want to install the WSL instance

Start the script

Start the powershell script and follow the included instructions NOTE: Your image has to be compatible with the selected WSL version

Delete an exisiting WSL instance

Start the script

Start the powershell script and follow the included instructions

Disclaimer

See LICENSE. I am not affiliated with Microsoft. This project merely exists to facilitate the creation (and deletion) of WSL instances to make development much easier and faster.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.