bostrot / wsl2-distro-manager Goto Github PK
View Code? Open in Web Editor NEWA GUI to quickly manage your WSL2 instances
Home Page: https://apps.microsoft.com/store/detail/wsl-manager/9NWS9K95NMJB
License: Other
A GUI to quickly manage your WSL2 instances
Home Page: https://apps.microsoft.com/store/detail/wsl-manager/9NWS9K95NMJB
License: Other
https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64-wsl.rootfs.tar.gz doen't exist.
https://cloud-images.ubuntu.com/releases/22.04/release-20220923/ is the latest release with the ubuntu-22.04-server-cloudimg-amd64-wsl.rootfs.tar.gz
.
This is not really a bug and I don't know what to do about it either, because being locked to a particular version a) involves maintenance and b) you obviously won't always get the latest version
To Reproduce
Steps to reproduce the behavior:
\\wsl.localhost\{DISTRO_NAME}
Expected behavior
The correct path (well, at least on my machine) is \\wsl$\{DISTRO_NAME}
Screenshots
The correct path :
Desktop (please complete the following information):
As this is mainly programmed on Windows 11 with it's more tightly integrated WSL environment some features do not work as good or even don't on Windows 10.
Here is some stuff I have encountered. Feel free to add anything:
code .
is not recognized.explorer.exe .
works in the terminal.This might be very specific to the Windows 10 Pro 20H2 Build 19042.1586 with WSL 2.
EDIT: After updating Windows (still on Windows 10) following happens with code .
Updating VS Code Server to version e18005f0f1b33c29e81d732535d8c0e47cafb0b5
Removing previous installation...
ERROR: Failed to download the VS Code server. 'wget' not installed.
Please install wget:
Debian/Ubuntu: sudo apt-get install wget
Latest debian rootfs doesn't have wget pre-installed so maybe check for wget before trying to start code .
and show an error message.
Settings:
Describe the bug
Love the simple WSL GUI!
I have changed/saved the "Default Distro location" from C:\WSL2-Distros" to another folder (actually a subfolder of wsl2distromanager.exe. When I launch wsl2distromanager.exe it still creates C:\WSL2-Distros folder. Is this on purpose?
The Main GUI looks to show the correct folder but whenever I create a new ubuntu instance it creates C:\WSL2-Distros\distros....
Also any plans to add a button or something to set/enable the new bridging capabilities recently added to newer builds of WSL via .wslconfig file?
Desktop (please complete the following information):
Describe the bug
I tryed to create a Ubuntu 20.04 distro on Windows 11.
In the mid of the distro download there was some error I couldn't read, then the screen went black and I had to forcefully restart my PC.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A newly created wsl distro
Screenshots
Couldn't take it
Desktop (please complete the following information):
Describe the bug
Default distro location is configured to D:\WSL however copy command saves files into C:\WSL2-Distros.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect copy to be created under location configured as default.
Desktop (please complete the following information):
Distribution name
Fedora
Distribution versions
33, 36
Link to wsl rootfs (leave empty if unknown)
https://download.fedoraproject.org/pub/fedora/linux/releases/36/Cloud/x86_64/images/Fedora-Cloud-Base-GCP-36-1.5.x86_64.tar.gz
Additional context
This is a great project. So does Fedora. I think adding fedora is a great thing as I want a stablest, nicest distro in wsl.
Describe the solution you'd like
A button to start vscode for a WSL instance.
Additional context
Might be useful to get into the right distro right away.
Describe the bug
All tooltips in the UI are almost unreadable black text on dark grey tooltips when the app is running in dark mode.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The text on the dark mode tooltips should be a light colour or just white
Desktop (please complete the following information):
Describe the bug
When creating a new instance the instance list is not updated once it is complete and it is still showing the loading status message.
Only tested on fresh Windows with no other instances so maybe only happens for the first.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Update the list once the instance is created.
Additional context
Maybe periodic checks or reloads would help here.
Describe the bug
Unable to install version 1.3.1 using signed installer.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Able to install it.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Describe the bug
When creating a new instance with any distro / Turnkey, the application starts "creating the instance", then quickly changes to "Error downloading: [any distro].
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The application should download the distro or turnkey
Desktop (please complete the following information):
Additional context
would be cool if the app could act like running wsl --list, and wsl -t -d DistroX
Describe the bug
The latest version does dot start. 3 error messages state that the following are missing:
screen_retriever_plugin.dll
flutter_acrylic_plugin.dll
window_manager_plugin.dll
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Open WSL2 Distro Manager
Desktop (please complete the following information):
Is your feature request related to a problem? Please describe.
Starting a newly created distro starts as root user. This might not be wanted and recreating a new user every time is tedious.
Describe the solution you'd like
Try to create a user when the distro is created. Maybe even with sudo.
Additional context
install sudo
useradd test
usermod -aG test sudo
usermod -s /bin/bash
create home with permissions
set user as default
Toggling dark mode causes unsaved changes to be lost.
Toggling dark mode should not discard changed but unsaved settings, or there should be a warning that toggling dark mode will cause unsaved changes to be lost.
- Windows Version: Windows 11 Enterprise 22621
- WSL Distro Manager Version: v1.5.0
- WSL Version: ``` wsl --version ``` **does not work.**
- wsl --status
- Default Distribution: v21.04-Ubuntu
- Default Version: 2
- Windows Subsystem for Linux was last updated on 2022-03-26
- WSL automatic updates are on.
- Source: GitHub releases (for WSL Distro Manager)
No response
This tool can easily create multiple wsl2s, but these wsl2s have the same ip .
Is there any way to make different wsl2s have different ip ?
please delete :)
My laptop has a screen resolution of 3480x2160 . . . and therefore there is a scale factor in display of 250%. WSL2 manager does not preserve the screen size with which it is resized, so starting up always comes out with a tiny screen that needs to be enlarged. This does not happen in other apps.
Distribution name
e.g. Ubuntu
Distribution versions
e.g. 20.04, 20.10
Link to wsl rootfs (leave empty if unknown)
e.g. https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64-wsl.rootfs.tar.gz
Additional context
Add any other context about the request here.
MSIX installer downloads not available for newest releases on GitHub.
Latest installer is for 1.3.4
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
Spaces in the distro name results in the error failed parameter.
To Reproduce
Put a space in the name while creating a distro
Expected behavior
Create a distro
Additional context
Replacing spaces and special characters should do the work. The label can stay the same.
Describe the bug
When I create an instance but do not specify a Save Location, the instance never gets created. The status message still appears saying that the instance is being created when in reality it never really started.
I did some debugging and found out where was the error occurring. I'm not an expert in Flutter but the errors seem to happen when getting the key SaveLocation
from the preferences:
wsl2-distro-manager/lib/dialogs/create_dialog.dart
Lines 156 to 162 in 0dcf2b9
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A default value should be supplied if the SaveLocation
does not exists in the preferences
Desktop (please complete the following information):
Additional context
Nothing to add
Describe the bug
When I try to clone a distribution, the message "Copying [...]. This might take a while..." and won't go away. If I restart the WSL Manager, both distributions are there and can be used.
To Reproduce
Steps to reproduce the behavior:
focal-server-cloudimg-amd64-wsl.rootfs.tar.gz
, with default save location and specified a default user)Expected behavior
After the cloning process, the alert should disappear and the manager should be usable again.
Desktop:
Is your feature request related to a problem? Please describe.
When I launch Windows Terminal from the app, it always uses the default profile (color, etc.)
Describe the solution you'd like
If there is a profiles that match the WSL instance, use it.
Describe alternatives you've considered
As an alternative allow user to select profile in app.
Additional context
Nice app
Is your feature request related to a problem? Please describe.
Would be nice to be able to add/manage network bridging (from recent WSL builds via .wslconfig file). Maybe simply open file to add entries? Or manage other options via .wslconfig file from within WSL Manager GUI?
Describe the solution you'd like
Enable/Disable Network Bridging in WSL instance!
Describe alternatives you've considered
Msgbox showing/explaining how to enable?
Additional context
I personally like to keep things isolated in a single folder to make things easier to move around as needed.
Im sure as WSL matures more and time permits you will add more things/ways to manage WSL. In the meantime keep up the great work. im digging it!
Is your feature request related to a problem? Please describe.
When I create a new distro with a default user specified, it doesn't create the /etc/wsl.conf
. If I open the distro through the commandline or if I use code [folder]
to open vscode with wsl integration, it's always starting as root.
Describe the solution you'd like
Would be nice to also generate a /etc/wsl.conf
where the default user is set.
https://docs.microsoft.com/en-us/windows/wsl/wsl-config#user-settings
I found the project very interesting.
CMD is good but the GUI is always welcome.
I wanted to know if you have the possibility to include a multilingual system for the basic options, it would be nice and I'm sure a lot of people would help with localization.
As the options are very simple.. The location would be quiet.
If you allow, I can do that, it would be very good for the tool.
This should be fairly simple. The only thing that currently keeps this from working is that the Create functions downloads an amd64 rootfs.
So adding arm rootfs' to the download list and checking whether we are running on arm or not should be enough.
Describe the bug
Docker distros are not in the list.
To Reproduce
Steps to reproduce the behavior:
wsl -l -v
in the console and compare the result with Manager list.Expected behavior
WSL Manager shows the same list as CLI.
Desktop (please complete the following information):
The debug Shell was introduced with WSL v0.51.0.
It would be nice to have that added to the settings.
Is your feature request related to a problem? Please describe.
When using multiple devices it is easy to mix up different distros and environments.
Describe the solution you'd like
Synchronize the filesystems by comparing the ext4 filesystem hashes and uploading/downloading over local network.
Describe alternatives you've considered
Manually transfering the filesystems between multiple machines.
Additional context
For network discovery this, file server. Then just downloading it over http.
To help with accidentally overriding instances a manual sync button should be there so we could override either instance.
Description
Some distro processes might take a while to complete (e.g. setting up user environment/default user/fake systemctl). So the distros already show up when they are still being worked on. Starting one of the distros while it's being worked on might interrupt this process.
Solution
Hide the distro while it's not done.
Title says it all. The status messages are very undetailed. Currently it just knows "loading" or "not loading" so including some kind of log would help already.
This would be very helpful especially when downloading a distro which can take some time.
[to be added...]
I tried to create a second Ubuntu 20.04 version using the tool.
As name I chose Ubuntu-Home, and for "Save location" I clicked on the folder icon, navigated to "D:" and created a new folder "wsl2".
After that my running ubuntu 20.04 instance was terminated without any warning (which is another bug, imho).
Then the tool's windows shows "Creating Ubuntu-Home. This might take a while..." and disturbingly shows "No distros found." (which hopefully also is another bug - or did it delete my existing distro?).
Because it really was taking quite a while and nothing at all happened in the newly created "D:\wsl2" directory, I opened Process Explorer to check if it's doing anything at all.
I noticed a process another process that is doing an wsl export to "D:\wsl2Ubuntu-Home" - notice the missing "".
Ok, finally I ended up with a working second distro, just with the wrong name in the wrong location.
Thankfully, my existing distro still works, so I guess the "No distros found" should be "Distro configuration in process" or something.
Distribution name
e.g. Ubuntu
Distribution versions
e.g. 20.04, 20.10
Link to wsl rootfs (leave empty if unknown)
e.g. https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64-wsl.rootfs.tar.gz
Additional context
Add any other context about the request here.
Describe the bug
Installed the new version v1.2.1, launched it and there is no UI / window showing up. But looking at the task manager, there is a process called "A WSL GUI.", so it seems that it's running.. Downgraded to v1.1.0 and it's working again..
Desktop (please complete the following information):
Describe the bug
When I maximized the app, it crashes
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Maximize the window
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Support /etc/wsl.conf settings.
Is your feature request related to a problem? Please describe.
When dealing with a lot of different instances it might come in handy to have a panel for quick installing /or executing of predefined code.
Describe the solution you'd like
A panel where you can add quick install buttons that execute pre-defined code to install / configure your instance.
Describe the bug
The SharedPreference Path_name is not set when copying an instance.
To Reproduce
%appdata%\com.bostrot\WSL Distro Manager
that Path is not set for the new instanceExpected behavior
It should add the path for the new instance
Desktop (please complete the following information):
push the releases from this app in the winget database, so it can be easily avaliable for other dev's.
winget is the official microsoft cmdlet for app installation through command line, a lot of dev is using to automate the instalation and setup of a windows environment, and appers that any app can be avaliable since the main source of packages is maintained by community
Upon launching the cli from WSL2 Distro Manager, the starting directory is System 32. I have edited my JSON file for Windows Terminal to start WSL cli's in /home/%username%, but it doesn't seem to load from the JSON at least.
Describe the bug
When WSL is not installed the list will contain the error code from the commandline divided on the listtiles.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Show an error message that wsl is not installed or even show a little install guide.
Desktop:
Screenshots:
Describe the bug
The Open with File Explorer, Open with VS Code and Settings icon tooltips in each distro's section is wrongly positioned and pops in then disappears when I mouse over the folder icon. The tooltips for the Copy, Rename and Delete icons are all positioned correctly.
To Reproduce
Steps to reproduce the behavior:
See the attached screencap.
Expected behavior
The tooltips should all be positioned to the right of the mouse cursor
Screenshots
https://user-images.githubusercontent.com/97291028/189522855-36d9f0c1-11ae-430d-8df8-7254aa275711.mp4
Desktop (please complete the following information):
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.