Questions tagged [windows-subsystem-for-linux]
Windows Subsystem for Linux (WSL) is a Windows feature that allows multiple Linux distributions and tools to run natively on Windows 10 and later.
1,648
questions
0
votes
0
answers
27
views
interactive ssh connection forgetting/creating keystrokes
By and then it happens to me, that an ssh session running on WSL/windows11/ubuntu_20.04 to Centos 7.9 forgets keystrokes or other keystrokes are suddenly repeated. This is driving me crazy!
And I'm ...
1
vote
0
answers
27
views
Ncat inside WSL2 not behaving correctly
I have an instance of kali linux running in WSL2 on Windows 11. It is configured to use mirrored networking mode, if that is relevant. Typically, if one were to start listening on 127.0.0.1 on any ...
1
vote
1
answer
30
views
several wsl vms. How? [duplicate]
On WIndows 11 I have an app named "Ubuntu"
When I launch it, a terminal will come up with an Ubuntu bash shell in it
Can I have 2 distinct installations of Ubuntu ?
How ?
1
vote
1
answer
44
views
How to run wsl using Task Scheduler without loging?
According to Task Scheduler- Batch "Run whether user is logged on or not" not working and other articles, "Run whether user is logged on or not" requires pure batch processing ...
0
votes
0
answers
58
views
Folder /usr/lib/wsl is missing in WSL 2
I've been encountering difficulties getting my Nvidia GPU to function within WSL 2. While researching solutions, I noticed that many discussions refer to a "wsl" folder in "/usr/lib&...
0
votes
0
answers
79
views
Cmder bash failures after DockerDesktop installed [closed]
I have been using Cmder on my laptop for development and to execute bash scripts successfully until installing DockerDesktop. DockerDesktop works fine and is using WSL, but now when I run my bash ...
0
votes
0
answers
30
views
Specify custom WSL path when using Docker Desktop on Windows
When installing WSL updates manually, it installs to C:\Program Files\WSL, but the default wsl.exe exists in System32 so when Docker Desktop calls wsl it doesn't use the new version.
Is there a way to ...
0
votes
0
answers
42
views
Connect to VPN working inside WSL from Windows environment
I have a remote VPN set up, to which I can only connect to via Linux machines. As of now, I do have access from WSL to this VPN, meaning I can ping and interact with the hardware that is only visible ...
0
votes
0
answers
55
views
Need to change WSL default path in Explorer from \\wsl.localhost\\ to \\wsl$\\
After some update Windows 11 started using by default "\\wsl.localhost" path in explorer instead of "\\wsl$" to access files on WSL disk:
access to WSL files from explorer
So, some ...
0
votes
2
answers
225
views
How to route all the Windows traffic into WSL2?
I want to route all traffic from Windows to WSL2 (172.28.20.4), but I have little knowledge about networking.
I did try to add a route:
route add 0.0.0.0 mask 0.0.0.0 172.28.20.4
I also enabled IP ...
0
votes
0
answers
75
views
WSL2 Ubuntu cannot reach single host without DNS suffix
EDIT: This question was closed as a duplicate of this question: WSL2: can ping by FQDN but not by host. However, that question does NOT answer my question, which is why name resolution works for 2 out ...
1
vote
0
answers
57
views
WSL run a non-login shell even with `--shell-type login`
Previously running wsl sourced .profile for me, as expected:
As of build 16188 when running bash.exe without arguments (or with the ~ argument) bash will be launched as a login shell. The same is ...
0
votes
0
answers
63
views
Data was reset from the postgresql table after deleting the Packages file
I created my project in python using postgresql on windows in a wsl environment. And accidentally deleted the file at the address Appdata/Local/Packages. After that, everything broke down and the ...
0
votes
1
answer
30
views
Best way to get consistent timings for code in WSL
I am trying to time code I have written and am having trouble getting consistent timings. I am running the code in WSL. There is no randomness in my code.
What is the best way to set up my laptop to ...
0
votes
0
answers
14
views
Read git label in version format on Windows
I have the following bash script which read the last label from git which is in version format (1.2.3.4).
git tag --sort=-refname | awk 'match($0, /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/)' | head -n 1
I ...
0
votes
0
answers
58
views
WSL win-kex pick up windows scale 1.25%?
I am using kali in wsl. When I launch win-kex in windows mode, it (xtigervnc) pick up windows default scal which is 1.25% (windows 11). It is not looking nice and blurry.
Command to launch win-kex:
...
0
votes
0
answers
54
views
How to access a folder inside of WSL remotely on another linux machine?
I have a NAS setup inside of WSL. The easy part was the server. For what ever reason Windows or Linux doesn't want to play nice with the rest of the network. I was able to get samba working inside of ...
1
vote
1
answer
520
views
Reclaim WSL2 disk space after setting it to sparse
Following the advice on How do I get back unused disk space from Ubuntu on WSL2? I set my WSL disk image to sparse with wsl --manage <distro> --set-sparse true. But the ext4.vhd file is still ...
0
votes
0
answers
58
views
Why is explorer.exe much faster than rsync?
Copying some 150GB from Windows to WSL, doing
rsync /mnt/c/big_file big_file -aP
rsync manages about 400MB/s, but copying the file on explorer.exe and pasting in \\wsl.localhost\Ubuntu-22.04, ...
1
vote
1
answer
177
views
What does wsl --import-in-place do?
Ostensibly, wsl --import-in-place <Distribution Name> <FileName> is documented here:
Imports the specified .vhdx file as a new distribution. The virtual hard disk must be formatted in the ...
0
votes
1
answer
40
views
In Windows 10, where is the default installation directory of the WSL2 Ubuntu distribution?
I have wsl --exported my previous version of Ubuntu and now want to import it with this command:
wsl --import <Distribution Name> <InstallLocation> <FileName>
I'd prefer to pick the ...
0
votes
0
answers
29
views
Prosody XMPP server on WSL 2: A record points to unknown address
I'm trying to set up a Prosody XMPP server, and I'm wanting to put it on my existing Windows machine running WSL 2. I've followed the docs on Prosody's site and most steps succeeded without any ...
1
vote
1
answer
159
views
Install multipass on WSL Debian 12 (the snapd socket isn't listening)
I am running Debian 12 bookworm on WSL.
I need multipass, which does not have a Debian package, but the multipass github README says to install it in linux with snap.
I attempted to install snapd with ...
0
votes
1
answer
37
views
How can I temporarily prevent a WSL WSLTTY terminal from automatically closing?
I have a shortcut on my taskbar that opens a WSLTTY terminal. When I click on it, it flickers open and immediately closes. I suspect there is an error message being printed but it closes too fast for ...
0
votes
0
answers
182
views
How do I troubleshoot an unresponsive WSL2 on Windows 10?
Usually, WSL2 runs fine, but maybe once a month or two, it becomes completely unresponsive and I'm not sure why. Usually restarting the entire computer fixes it, but I'd like to know if there is any ...
0
votes
2
answers
348
views
Local DNS Server on WSL
I have one Windows machine with WSL and nginx server at WSL running on it. Server works perfectly on local network, and other devices can see the website using Ip address of network interface of the ...
0
votes
1
answer
87
views
How to change codepage for WSL console?
I've read Problems when using "New Windows Terminal" to ssh into non-UTF codepage servers where an answer suggests using LUIT or maybe Screen. But I am wondering if there is a different ...
0
votes
2
answers
91
views
WSL - how to connect to VcXserv/Xming when VPN is running in the hosted OS?
For work for a vendor, I need to access a few sites via their VPN. Due to the security, however, their VPN blocks basically all other network traffic.
For that, I decided to try the WSL/Linux ...
0
votes
0
answers
47
views
WSL2 unresponsive after idling
Been running Ubuntu 22.04 LTS (guest-machine) via WSL2 on Windows 11, but it frequently gets unresponsive to mouse/keyboard inputs after idling for a while (e.g. when I have to do some researches on ...
1
vote
0
answers
193
views
Ubuntu installed in WSL can NOT reach the Internet
Asked before by other people. I used the answers to their questions to get a head start, but still no joy.
My software mix:
Windows 10 Enterprise
WSL version: 2.0.14.0
Kernel version: 5.15.133.1-1
...
0
votes
1
answer
205
views
Is it normal for Ubuntu (WSL) to take up 40GB of space?
I've tried running this to cleaning out docker images, etc… with this command:
compact vdisk
The filesystem allocation is 1007GB and only 4% is used.
How do I fix this?
All the forums and questions ...
1
vote
1
answer
440
views
Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.15.133.1-microsoft-standard-WSL2 x86_64) is displayed. How do I get to GUI? [closed]
Installing Ubuntu on Win 11 Lenovo IdeaPad Slim 5. Installed prerequisites and downloaded Ubuntu, named and passworded it but now the terminal displays: Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.15....
1
vote
0
answers
114
views
google-chrome when ran from Ubuntu / WSL gives weird visual glitches [duplicate]
I'm working on a fresh install of Windows (Windows 11; 22H2 OS Build 22621.2715). I enabled WSL, installed Ubuntu 22.04.3 from the Microsoft App store and then did the following in Ubuntu:
get https://...
1
vote
0
answers
104
views
How to recover folder deleted with rm -rf from \\wsl.localhost\Ubuntu\home\username
I've accidentally deleted some important folders from my WSL Ubuntu environment using the rm -rf command. The specific path was \\wsl.localhost\Ubuntu\home\myusername\myfoldername. I'm aware of the ...
0
votes
0
answers
39
views
Windows WSL (using ksh) hangs after random idle periods
I'm running Ubuntu on Windows 10 with WSL. My shell is KornShell (ksh). After idle periods of not using the shell - can be several hours or just a few minutes - it becomes unresponsive. A given ...
0
votes
0
answers
55
views
WSL wget command returns HTML rather than downloadable csv file
I am running WSL (Windows Subsystem for Linux) and using Ubuntu 22.04 to test my homegrown bash scripts as a part of my CS course.
The task is to download a CSV (comma separated values) file from the ...
0
votes
0
answers
20
views
Backup WSL folder to USB without logging in as administrator [duplicate]
I am trying to backup my complete WSL data to a USB drive; however, I'm running into a 7zip administrative rights problem when I do it simplistically (creating the zip with the same windows user that ...
0
votes
0
answers
33
views
Created a new project on Ubuntu for windows using npx, but cannot find it after it successfully runs
When installing ubuntu for windows 10, I was following a guide that used npx to bootstrap a project. For example I'll run npx create-react-app my-app
When it runs successfully, it'll say something ...
3
votes
0
answers
287
views
How to remove WSL directory icon from desktop?
How to remove this?
I've tried to remove this icon through WSL. On path /mnt/c/Users there is desktop.ini file, I think that file represents desktop icon of WSL directory. rm -r desktop.ini doesn't ...
0
votes
1
answer
93
views
WSL seems to ignore "default user" argument when updating distro
We are creating a deployment for WSL/Ubuntu 20.04. This works flawlessly for virgin machines.
However, we have a population of machines which have Ubuntu 16.04 which we want to update. We're not in ...
1
vote
1
answer
329
views
Trying to understand how WSL2 networking and routing works when pinging google.com, confused
I'm trying to learn networking and i'm still a novice. I'm confused about how the routing is done between the virtual adapter and my wifi card
When I ping google.com from WSL, I can see on Wireshark ...
0
votes
0
answers
52
views
WSL: Used 'sudo reboot' in ubuntu; now everything is down incl. wsl
I run WSL on win 10, installed ubuntu 20.04 & used 'sudo reboot' in ubuntu command line;
now everything is down incl. wsl
Means, if I type wsl -l -v in windows power shell, not even that works.
...
1
vote
1
answer
880
views
WSL2 Ubuntu 20.04.6 LTS not working: WslRegisterDistribution failed with error: 0x80070490
After a windows update, WSL2 stopped working with:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070490
Error: 0x80070490 Element not found.
Press any key ...
0
votes
1
answer
178
views
WSL not initializing because of systemd-firstboot.service
I had an issue with my WSL after enabling systemd, it was stuck initializing. I have an arch distro set up, so this might be specific to that.
WSL-Version: 2.0.9.0
Kernelversion: 5.15.133.1-1
...
0
votes
0
answers
59
views
What are the default values for opening links in WSL?
On a fresh WSL install, when running
open . : Windows File Explorer will open
open https://example.com: My default Windows browser in will open.
However, I believe after I installed Lynx, this ...
1
vote
1
answer
1k
views
Rendering artifacts with GUI application in WSL
I see the following artifacts when moving the mouse over Linux applications running in WSL:
The system is a Thinkpad T470 (Intel Core i5-7300U CPU, integrated graphics). The installation ISO was ...
0
votes
1
answer
123
views
How to Update Plaso
I have been trying to Google but to no avail. May I ask this community how to update my plaso on an Ubuntu/WSL?
I have tried the below:
https://plaso.readthedocs.io/en/latest/sources/user/Ubuntu-...
2
votes
1
answer
588
views
X11 forwarding from a remote Linux server to a WSL2 desktop
I need to run GUIs from a Linux server (which I do not have sudo for) for work.
Being on a Windows 11 computer, I set up a WSL with Ubuntu-22.04, and succesfully followed these steps to display Linux ...
-1
votes
1
answer
352
views
What’s the command prompt to update Ubuntu 20.04 6 LTS
I’m working with Windows 11 Pro in a virtual environment in the windows subsystem for Linux using Ubuntu 20.04 6 LST, all the command I have tried had not worked.
To update my Linux shell for bash. It ...
0
votes
0
answers
327
views
WSL2 unable to connect to IP address (not DNS) on Cisco Anyconnect VPN
Preface: This is not a DNS issue. I am working with explicit IP addresses here and cannot make connections. There are a lot of questions for my same situation but involving DNS resolution. I have ...