redcode-labs / easywsl Goto Github PK
View Code? Open in Web Editor NEWCreate WSL distros based on Docker Images.
License: Other
Create WSL distros based on Docker Images.
License: Other
EasyWSL希望能够得到的改进
EasyWSL hopes to be able to improve
希望能优化一下标题栏,默认主题为白色的情况下,标题栏显示成了黑色,UI界面没有统一。
Winui3标题栏的自定义您可以参考微软苏州员工(云之幻)写的一篇文章来定制。
I hope to optimize the title bar, the default theme is white, the title bar is displayed in black, and the UI interface is not unified.
The customization of the Winui3 title bar can be customized by referring to an article written by a Microsoft Suzhou employee (Yunzhihuan).
https://www.cnblogs.com/richasy/p/winui3_custom_title_bar.html
希望能够提供多语言版本支持,目前应用只有英语版本。
It is desirable to be able to provide support in multiple languages, and the current application is only available in English.
Can you please add the disk usage for the distros and also the ability to reclaim the disk space ?
Here is what i do to reclaim it :
df -h
look on the right column 'Mounted on,' or df -h /mnt/wslg/distro
wsl --shutdown
then cd 'C:\Users\%UserProfile%\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState'
then optimize-vhd -Path .\ext4.vhdx -Mode full
Hi devs, first of all, AWESOME work so far!!!
OK, let's cut to the chase. I want to install Elementary OS 6, which is from the docker image: elementary/docker:odin-unstable
.
The code linked below only supports :tag
for library/ images and :latest
for namespaced images.
easyWSL/easyWSL/DistroInstaller.cs
Lines 95 to 108 in 1698bc6
Some docker containers are hosted on github, such as Scrummage. It'd be handy to be able to select a custom server/url for fetching the docker container.
When .wslconfig
does not have every possible config options set (for example, in case when only memory=1024MB
option is set), Settings
tab show nonreal (empty) values for settings not present in .wslconfig
.
%USERPROFILE%\.wslconfig
[WSL]
memory=1024MB
easyWSL
easyWSL
Settings
tabSettings
tab show nonreal (empty) values for settings not present in .wslconfig
.
Settings
tab show real default values for settings not present in .wslconfig
.
There's no error message. Please let me know where I can find the logs (if any) and I'll post them here.
This is for the lastest release, on Windows 10 Pro.
Sometimes, when using easyWSL the connection might get interrupted, and the whole process will come to a halt, and will have to be restarted from the beggining. It'd be really good if we could cache layer downloads so only the failed layers have to be downloaded again.
Right now, it is practically impossible to download heavy docker images on an unstable connection using easyWSL
as title
I installed the latest version of this app from the Microsoft Store and after trying to launch the app was closing. After manually installing ubuntu-wsl from the Microsoft Store, everything worked. How can I help in solving this problem?
.NET 6 installed, WSL too. How i can help?
I manage to install manjaro on wsl2 with kernel 5.10 but I'm not being able to run it.
At this point, how can I proceed? Thank you very much.
C:\Users\user>wsl -l
Windows Subsystem Distributions for Linux:
Manjaro (Default)
C:\Users\user>wsl Manjaro
Error mounting one of the file systems. Run 'dmesg' for more details.
The readme says:
Just go to our release page, download latest release and just run it. Done!
What is the URL as it seems to lead to endless loops otherwise.
Hi redcode team,
I tried to install a docker container and ran in to an exception. It looks like a hardcoded path to your projects folder.
Unbehandelte Ausnahme: System.IndexOutOfRangeException: Der Index war außerhalb des Arraybereichs. bei easyWSL.DistroInstaller.InstallDistro(String distroImage, String distroName, String distroPath, String easyWSLDataDirectory, String easyWSLDirectory, Boolean isCustomImageSpecified) in C:\Users\unrooted\Documents\projects\easyWSL\easyWSL\DistroInstaller.cs:Zeile 91. bei easyWSL.Program.Main(String[] args) in C:\Users\unrooted\Documents\projects\easyWSL\easyWSL\Program.cs:Zeile 147.PS
Hi all, I'm experimenting with Windows LTSC, and thus don't consider it to be a supported OS. That said, if anyone has any ideas what could cause this crash, I'd appreciate it!
OS:
Windows 10 IoT Enterprise LTSC 2021
Version 21H2 (OS Build 19044.3086)
I've installed Microsoft Store, winget, Windows Desktop Runtime on my machine
Installed easyWSL from MS Store
App successfully installs
Launching app brings up a blank window momentarily, before crashing / disappearing.
Event log shows:
Faulting module name: KERNELBASE.dll
Any ideas? Thanks!
Event Log message:
Faulting application name: easyWSL.exe, version: 1.0.0.0, time stamp: 0x6216d2c0
Faulting module name: KERNELBASE.dll, version: 10.0.19041.3086, time stamp: 0xe1ac3f79
Exception code: 0xc000027b
Fault offset: 0x000000000012d8b2
Faulting process id: 0x1494
Faulting application start time: 0x01d9a2148f0a06fc
Faulting application path: C:\Program Files\WindowsApps\27302RedCodeLabs.easyWSL_0.1.8.0_x64__m9ag49q0nrza2\easyWSL.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 8787c2ce-f9f7-46e4-92bb-e3c6cc254ded
Faulting package full name: 27302RedCodeLabs.easyWSL_0.1.8.0_x64__m9ag49q0nrza2
Faulting package-relative application ID: App
I tried to register an Ubuntu 24.04 LTS and I get errors when I try to start it.
Steps:
ubuntu:24.04
wsl -d Ubuntu-2404docker
And I get this:
D:\>wsl -d Ubuntu-2404docker
<3>WSL (12) ERROR: CreateProcessParseCommon:711: Failed to translate D:\
<3>WSL (12) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\Common Files\Oracle\Java\javapath
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0\
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\ProgramData\chocolatey\bin
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yuryw\AppData\Local\Microsoft\WindowsApps
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount D:\, see dmesg for more details.
Failed to mount C:\, see dmesg for more details.
Failed to mount D:\, see dmesg for more details.
<3>WSL (12) ERROR: CreateProcessEntryCommon:334: getpwuid(0) failed 2
<3>WSL (12) ERROR: CreateProcessEntryCommon:505: execvpe /bin/sh failed 2
<3>WSL (12) ERROR: CreateProcessEntryCommon:508: Create process not expected to return
Tried to register Ubuntu 21.10 both via "Supported distro list" and via ubuntu:21.10
- works fine.
P.S. Also tried to register ubuntu:20.04
, ubuntu:22.04
, ubuntu:23.10
- same error. So, I guess it's not specific to a version but easyWSL has to support a particular distro in some way?
When registering a distribution, without Distro name
provided, a vague error message is show that doesn't really tell anything.
An error with a message somewhere along the lines of "Distro name empty. Please provide one."
An error message "There were problems with registering your distribution"
How do I start a WSL Docker Container with specifc run commands e.g. --publish?
EasyWSL crashes when i try to open "Open filesystem" and "Add Snapshot"
also when i try to install a distro it just downloads and do nothing
While UIs are all nice, ponies and rainbows, a cli app would be perfect. Even for CI scenarios.
Currently, the script won't restart your computer and continue running after booting up. This needs to be fixed.
For many reasons, it is sometimes beneficial to keep VHD off of arcane folders like AppData. Can you implement a way to move VHD (automate stoping/exporting/imporintg via wsl.exe
) or maybe add honouring an environment variable such as EASYWSL_VHD_HOME
to store them somewhere outside AppData from the start?
Scoop is a package manager that allows for easy application management in user-space (https://scoop.sh). Please provide a manifest for easyWSL in https://github.com/ScoopInstaller/Extras so it can be automatically downloaded outside and independently of Windows Store.
While playing with the easyWSL I noticed that the post-install script doesn't work correctly.
Examples:
A number of a distro you want to install: 1
A name for your distro (default ArchLinux):
A path to a directory where you want to store your distro (default is C:\Users\easywsl\AppData\Local\easyWSL\distros\ArchLinux):
Downloading 1. layer ...
Downloading 2. layer ...
Creating install.tar file ...
Registering the distro ...
Cleaning up ...
/mnt/c/Users/easywsl/Downloads/Release/post-install.sh: line 1: echo: command not found
/mnt/c/Users/easywsl/Downloads/Release/post-install.sh: line 34: syntax error near unexpected token `$'\r''
'mnt/c/Users/easywsl/Downloads/Release/post-install.sh: line 34: `add_user()
A number of a distro you want to install: 4
A name for your distro (default Alpine):
A path to a directory where you want to store your distro (default is C:\Users\easywsl\AppData\Local\easyWSL\distros\Alpine):
Downloading 1. layer ...
Creating install.tar file ...
Registering the distro ...
Cleaning up ...
/mnt/c/Users/easywsl/Downloads/Release/post-install.sh: line 1: echo: not found
/mnt/c/Users/easywsl/Downloads/Release/post-install.sh: line 64: syntax error: unexpected word (expecting "in")
docker save -o images.tar alpine:latest
hope can support Specify images.tar file as a docker image.
For me, the settings file was on C:\Users\%USERNAME%\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3dbbwe\localState\settings.json
. It would only be necesarry to add an entry under "list"
like this:
,
{
"commandline": "wsl -d %DISTRONAME%",
"guid": "%AUTO-GENERATED-GUID%",
"hidden": false,
"icon": "%easyWSL-ICON-PATH%",
"name": "%DISTRONAME-CAPITALISED%"
}
Where AUTO-GENERATED-GUID can be generated with:[1]
[guid]::NewGuid()
I'd make a PR but I don't know csharp 😅
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.