Biswa96/WSLInstall
关于
Install any GNU/Linux userspace in WSL
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文WSLInstall
Install any GNU/Linux distribution userspace in Windows Subsystem for Linux (WSL) with compressed RootFS tarballs :package: (tar.gz) or with Docker containers :whale: or with ISO files :cd:
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
- 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.
- Place both
WslInstall.exeand{distribution}.tar.gzfiles in that same folder. - 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>. - After some seconds, that distribution will be installed. Confirm it with
wslconfig.exe /list /allcommand. Also you may see arootfsfolder in that directory where you want to install.
How does it work
- WslInstall: In the source code, the main function imports the
WslRegisterDistributionfunction fromwslapi.dllfile. Then it passes the provided two commandline arguments indistroNameand intarGzFilenamestring parameters of that function respectively and the imported function installs that distribution. See details of WSL Functions and WSL_DISTRIBUTION_FLAGS.
Table Of Contents:
Docs:
Tools:
- DistroLink: Create a shortcut file aka. shell link with
\\wsl$path.
- DistroLink: Create a shortcut file aka. shell link with
Other repositories
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.
探索相关项目
加载中…