All Projects → Biswa96 → Wslinstall

Biswa96 / Wslinstall

Licence: gpl-3.0
Install any GNU/Linux userspace in WSL

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Wslinstall

Centwsl
[DISCONTINUED] CentOS based WSL distribution
Stars: ✭ 766 (+330.34%)
Mutual labels:  wsl, windows-10, windows-subsystem-linux
Wsl Programs
A community powered list of programs that work (and those that don't) on the Windows subsystem for Linux
Stars: ✭ 931 (+423.03%)
Mutual labels:  wsl, windows-10, windows-subsystem-linux
Wsldl
Advanced WSL launcher / installer. (Win10 FCU x64/arm64 or later.)
Stars: ✭ 782 (+339.33%)
Mutual labels:  wsl, windows-10, windows-subsystem-linux
Wsl Ssh Pageant
A Pageant -> TCP bridge for use with WSL, allowing for Pageant to be used as an ssh-ageant within the WSL environment.
Stars: ✭ 381 (+114.04%)
Mutual labels:  wsl, windows-10, windows-subsystem-linux
WSL-manager
unofficial gui manager for Windows Subsystem for Linux (WSL)
Stars: ✭ 25 (-85.96%)
Mutual labels:  windows-10, wsl, windows-subsystem-linux
Awesome Wsl
Awesome list dedicated to Windows Subsystem for Linux
Stars: ✭ 3,544 (+1891.01%)
Mutual labels:  wsl, windows-10, windows-subsystem-linux
Wsl Docker Git Setup
Shell script to configure Windows Subsystem for Linux (WSL) & Ubuntu on Windows to use docker and docker-compose as well as a git-enabled prompt
Stars: ✭ 23 (-87.08%)
Mutual labels:  wsl, windows-10, windows-subsystem-linux
Alpinewsl
Alpine Linux based WSL distribution. Supports multi-install. Lightest WSL distribution.
Stars: ✭ 203 (+14.04%)
Mutual labels:  wsl, windows-10, windows-subsystem-linux
Archwsl
ArchLinux based WSL Distribution. Supports multiple install.
Stars: ✭ 3,667 (+1960.11%)
Mutual labels:  wsl, windows-10, windows-subsystem-linux
wsl2exe
[TESTING]Use command in WSL from exe executable
Stars: ✭ 34 (-80.9%)
Mutual labels:  windows-10, wsl, windows-subsystem-linux
Wslreverse
Experiments with hidden COM interface and LxBus IPC mechanism in WSL
Stars: ✭ 47 (-73.6%)
Mutual labels:  wsl, windows-10, windows-subsystem-linux
Dowww
📟 Dev on Windows with WSL | 在 Windows 上用 WSL 优雅开发
Stars: ✭ 615 (+245.51%)
Mutual labels:  wsl, windows-10
Bootshellcredentialprovider
Windows 10 Credential Provider intended to simplify the process of logging directly into alternative shells to Windows Explorer.
Stars: ✭ 715 (+301.69%)
Mutual labels:  windows-10, windows-subsystem-linux
Gwsl Source
The actual code for GWSL. And some prebuilt releases.
Stars: ✭ 570 (+220.22%)
Mutual labels:  wsl, windows-10
Wslgit
Use Git installed in Bash on Windows/Windows Subsystem for Linux (WSL) from Windows and Visual Studio Code (VSCode)
Stars: ✭ 903 (+407.3%)
Mutual labels:  wsl, windows-subsystem-linux
Wsl Terminal
Terminal emulator for Windows Subsystem for Linux (WSL)
Stars: ✭ 3,120 (+1652.81%)
Mutual labels:  wsl, windows-subsystem-linux
Pengwin Enterprise
Enterprise-compatible WSL distribution.
Stars: ✭ 52 (-70.79%)
Mutual labels:  wsl, windows-10
Runinbash
Run Linux commands under WSL without leaving your PowerShell or CMD!
Stars: ✭ 67 (-62.36%)
Mutual labels:  wsl, windows-10
Alwsl
Install archlinux as the WSL (Windows Subsystem for Linux) host.
Stars: ✭ 1,332 (+648.31%)
Mutual labels:  wsl, windows-10
Wslbridge2
Explore various ways to connect Windows Subsystem for Linux with Windows terminal emulators.
Stars: ✭ 93 (-47.75%)
Mutual labels:  wsl, windows-10

WSLInstall

Install any GNU/Linux distribution userspace in Windows Subsystem for Linux (WSL) with compressed RootFS tarballs 📦 (tar.gz) or with Docker containers 🐳 or with ISO files 💿

Build

Clone this GitHub repository with this link https://github.com/Biswa96/WSLInstall.git . Use MSBuild (or mingw-w64) to make executable file from project file(.vcxproj). Or use the makefile in WslFunctions folder. The project file only provides x64-Release version.

Build wslapi export libraries:

  • Generate DEF file: gendef /c/Windows/System32/wslapi.dll
  • For MSVC: lib /DEF:wslapi.def /MACHINE:X64
  • For GCC: dlltool -D /c/Windows/System32/wslapi.dll -d wslapi.def -l libwslapi.a

wslapi export library was added in latest mingw-64 toolchain. See this commits for further details:

How to use

WslInstall: Installs GNU/Linux distributions

  1. First make a folder where you want to install that distribution, that may be any partition of internal drives only. External drives are not supported now.
  2. Place both WslInstall.exe and {distribution}.tar.gz files in that same folder.
  3. Open command prompt in that folder and type the command like this: WslInstall.exe <distro_name> <distribution.tar.gz>. Always put a space between the two command arguments like between <distro_name> and <distribution.tar.gz>.
  4. After some seconds, that distribution will be installed. Confirm it with wslconfig.exe /list /all command. Also you may see a rootfs folder in that directory where you want to install.

How does it work

  • WslInstall: In the source code, the main function imports the WslRegisterDistribution function from wslapi.dll file. Then it passes the provided two commandline arguments in distroName and in tarGzFilename string parameters of that function respectively and the imported function installs that distribution. See details of WSL Functions and WSL_DISTRIBUTION_FLAGS.

Table Of Contents:

Other repositories

  1. LxRunoffline
  2. WSL-DistroLauncher
  3. runnix
  4. miniwsl
  5. wslbridge

License

This project is licensed under GNU General Public License v3 or higher. See LICENSE for more details. You are free to study, change, modify the source code and make your own version and publish that.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].