Comments (14)
Can you give me steps to reproduce your GCC issue?
Purging and reinstalling - What do you specifically mean when you did this?
"xRDP has stops with both the versions after a specific number of logins" - Can you provide steps to reproduce?
I need more specific info to assist. None of these issues make sense or are things I have run into, using kWSL daily and extensively.
from kwsl.
Also need to confirm you selected a different port for xRDP when you installed a new instance.
from kwsl.
I actually uninstalled the last instance due to the xRDP error. The new instance connected to xRDP fine itself. The xRDP error can't be replicated in any way I know of. It just comes up after I have shutdown WSL too many times without running wsl --shutdown
. One way could be to reduce the maxsessions
in xrdp.ini but I'm not sure of it. Here, here, and here are some other instances of the same error.
As for GCC in the new instance, you can probably replicate it (given it is a non defunct bug) by just trying to compile a C file, or with ls /usr/bin | grep gcc
which had no output for me.
from kwsl.
If you're seeing this xRDP error then wsl --shutdown
isn't properly terminating the instance.
Instead try wslconfig /t NeonWSL
(Or whatever you named the instance)
Regarding your GCC issue, can you try rebuilding an Ubuntu/Neon package to verify your environment is ok? Sounds like you don't have the necessary development tools installed:
sudo apt-get install devscripts debhelper autoconf build-essential dpkg-dev
from kwsl.
I have shutdown WSL too many times without running
wsl --shutdown
.
This might be a WSL2 issue as well. Can you try running the instance in WSL1 first and see if the issue persists? It shouldn't, because there's a logout script in KDE that shuts down WSL completely so new sessions are 'clean'
from kwsl.
The development tools installation worked. Not sure why I needed it, since I've always been able to compile right off the bat on previous versions and other distros.
This might be a WSL2 issue as well. Can you try running the instance in WSL1 first and see if the issue persists? It shouldn't, because there's a logout script in KDE that shuts down WSL completely so new sessions are 'clean'
What do you mean by a logout script? (When I said I shutdown without wsl --shutdown
, I meant I shutdown windows with the WSL running as it was. Is there a way to log out of KDE which terminates the xrdp service as well? And that too just on WSL1 or 2 as well?
(Also, wslconfig /t
does not free the Vmmem service from the task manager i noticed. Only wsl --shutdown
seems to do that.) Is there some universal way where I can free all the memory, terminate all services including xrdp and shutdown the wsl instance together before shutting down windows?
And finally, no matter what precautions exist- if i do face this problem again, how do I really solve it? Increasing the max sessions does not work, purging and reinstalling xrdp does not work either.
from kwsl.
When you click "Log Out" in KDE a script is kicked-off that ends the RDP session and terminates the WSL instance.
wslconfig /t
Does terminate VMMEM process, but if you look in Task Manager you'll see Windows will take 15-60 seconds to end the process.
I have no idea what's wrong with your xRDP setup. You mentioned in your logs seeing
login failed for display 0
Which makes absoloutely no sense as xrdp-sesman has an offset starting at :10.
from kwsl.
When you click "Log Out" in KDE a script is kicked-off that ends the RDP session and terminates the WSL instance.
Could you tell me where exactly is the option to do this? I seem to not have this option in my main menu, and I've never used KDE natively. Here is a image of my menu.
from kwsl.
...Or restartwsl
from the terminal.
from kwsl.
When you click "Log Out" in KDE a script is kicked-off that ends the RDP session and terminates the WSL instance.
So I did try logging out with that button as well as tried restartwsl
from the terminal, but even after that trying out wsl -l -v
on cmd shows that the instance is still running, and trying sudo service xrdp status
shows that both xrdp and sesman are running (even after 5 minutes). How did you make the log out button terminate the wsl instance?
from kwsl.
/usr/local/bin/restartwsl
kicks-off schtasks.exe /run /tn NeonWSL
As well, in your install folder there's Init.cmd
Try changing "Start-Sleep 3"
to 15, 30 or 60 seconds instead of 3.
from kwsl.
Try changing "Start-Sleep 3" to 15, 30 or 60 seconds instead of 3.
This worked. Now clicking the Log Out button on KDE does terminate the instance. I'm hoping it terminates the xrdp service before doing so, although only time will tell if I face the previous error again. Thank you for the assistance!
from kwsl.
Glad to hear your issue is sorted. What value for start-sleep
worked for you in the end?
from kwsl.
@DesktopECHO So in the beginning 15 worked out. The VMMEM process would terminate itself. But as time progresses, I've to keep increasing the time for the instance to even close (wsl -l -v
shows it's running). 30 does not work anymore so I'm using60 now. Only wsl --shutdown
terminates the process now
from kwsl.
Related Issues (19)
- RDP connection : Not able to connect to rdp when converted to wsl2 HOT 9
- Possibility to run single linux apps with native titlebars? HOT 1
- Blue Screen under Windows 11 HOT 19
- Cant install HOT 2
- WSL drive mount issue HOT 17
- Not able to point the RDP file to new WSL2 instance HOT 4
- Log Out on kWSL does not terminate anything HOT 1
- Can't install, ton of errors. HOT 1
- How to edit xrdp login screen?? HOT 8
- 22.04 Upgrade? HOT 7
- Fresh install error and stuck on "Select Runlevel and hit Enter" -loop HOT 1
- WSL2 Version + 22.04 Rebase HOT 1
- kWSL black screen & failure to start HOT 2
- Provenance of binaries / reproducibility HOT 1
- kWSL Neon Screenshot Gallery
- Errors during installation HOT 4
- YouTube Buffering? HOT 19
- Cannot Disable Screen Lock HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kwsl.