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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

How can I configure WSL2 networking settings to access an Azure Private Endpoint?

I have an Azure key vault resource sat on a Private Endpoint that I cannot access when running my project on WSL2 (it works fine on Windows). I've tried updating the config files (https://learn....
fin's user avatar
  • 1
0 votes
0 answers
31 views

WSL can connect to VM, but not the other way around

I'm on Windows 10 and I have a service running on WSL2 Ubuntu and another service running on a Ubuntu Server VMWare VM, and although WSL can access the VM, the service on the VM seemingly can't ...
Skepller's user avatar
1 vote
1 answer
647 views

Installation of libc6 stuck in WSL Kali Linux

I recently shifted WSL since I already turned it for Docker from using VM due to space in my drive. I installed Kali Linux and ubuntu in WSL. Ubuntu worked perfectly without a hitch but when i upgrade ...
Ramaraju Sai Rajesh's user avatar
0 votes
0 answers
32 views

Enable DNS Windows 10 host for WSL2

By default, WSL2 appears to pick up the Windows Host IP Address as its autoconfigured DNS server. This can be seen by inspecting the contents of /etc/resolv.conf. For example $ cat /etc/resolv.conf ...
user3728501's user avatar
  • 2,774
0 votes
0 answers
29 views

Propagate Windows routing to Windows Subsystem

I set up routing on my Windows 11 machine to be able to route some specific IP addressed (for example 1.2.3.4) to VPN. route add 1.2.3.4 MASK 255.255.255.255 1.2.3.4 This works fine in windows. Once I ...
Tomas Kubes's user avatar
1 vote
0 answers
36 views

WSL losing all its setup when device is re-booted

I had completed all my setup like installing cuda and docker over my device and then was done for the day. The next day when I come back, to my dismay I am unable to find any of the changes which I ...
Arunbh Yashaswi's user avatar
1 vote
1 answer
88 views

Fix WSL - cannot access '/mnt/c': Input/output error

I hit a problem with my WSL Ubuntu system, where I can't ls the C:\ drive from within my WSL Ubuntu Linux system... mpenning@wsl$ ls /mnt/c ls: cannot access '/mnt/c': Input/output error mpenning@wsl$ ...
Mike Pennington's user avatar
0 votes
2 answers
93 views

Access \\wsl$\Ubuntu from a different Windows machine on network

I have a Windows 2022 Server, build 23H2 / 22631, and it runs an Ubuntu 22.04 distribution in WSL2. If I'm on the server itself, I can access the files in this distribution using the \\wsl$\Ubuntu ...
neilalex's user avatar
1 vote
0 answers
41 views

Cannot share wslg stuff in skype

When in a skype conversation, I have a wslg window open (with emacs running there) and want to share it. When I invoke screen sharing I am presented with a choice of buttons corresponding to sharing ...
2 votes
1 answer
64 views

tail -f does not follow files on WSL

I have : F:\xampp-htdocs>wsl --list Windows Subsystem für Linux-Distributionen: Ubuntu-22.04 (Standard) I cd into my logfiles on Window 11: /mnt/d/xampp-2024-15-01/apache/logs$ there i do tail -f ...
Heinz's user avatar
  • 121
1 vote
0 answers
19 views

SSDP Discovery not working for IP address other than WSL's instance IP

I am trying to port a process from Windows to WSL/Linux. Earlier, two Windows process were communicating through TCP connection after successful SSDP discovery. Now, I want similar communication to ...
Piyush Kumar Gupta's user avatar
-1 votes
1 answer
54 views

Cannot install DDEV from PowerShell

I am trying to install DDEV from PowerShell, following these instructions: https://www.drupal.org/docs/develop/local-server-setup/windows-development-environment/installing-drupal-with-ddev-in-wsl2-on-...
MrSnrub's user avatar
  • 97
1 vote
0 answers
29 views

How to reset X windows layout on WSL 2 on Windows 10?

I use WSL 2 extensively. When my computer monitors go to sleep, the layout of the X windows from WSL can get messed up - they are half rendered offscreen, I can't move them etc. If I go to windows ...
Nik's user avatar
  • 467
1 vote
0 answers
51 views

mount ignores user option at drvfs mount point

In WSL2 I've configured in /etc/fstab a drvfs mount point to be mountable by an ordinary (non-root) user: F: /mnt/f drvfs rw,noatime,dirsync,noauto,exec,umask=...
vect's user avatar
  • 265
2 votes
0 answers
18 views

Firefox behaving aways like in no-remote mode in WSLg/Ubuntu

I have a shell script that opens several tabs in default browser for 2fa process (indirectly by using aws sso login). This script runs in WSL2/Ubuntu 22.04. Now this is interesting: The behavior is ...
domaru's user avatar
  • 121
0 votes
0 answers
46 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 ...
Frank Puck's user avatar
1 vote
0 answers
39 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 ...
JavaNoob's user avatar
1 vote
1 answer
42 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 ?
user1632812's user avatar
1 vote
1 answer
120 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 ...
BrandonStudio's user avatar
0 votes
0 answers
120 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&...
alex-cita's user avatar
0 votes
0 answers
68 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 ...
jossgray's user avatar
  • 101
0 votes
0 answers
72 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 ...
Oliver's user avatar
  • 1
0 votes
0 answers
112 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 ...
Alexius The Coder's user avatar
0 votes
2 answers
487 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 ...
user23410276's user avatar
0 votes
1 answer
204 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 ...
Isaac Dontje Lindell's user avatar
1 vote
0 answers
93 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 ...
Alexey Romanov's user avatar
0 votes
0 answers
72 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 ...
Giyas's user avatar
  • 1
0 votes
1 answer
32 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 ...
Simd's user avatar
  • 927
0 votes
0 answers
15 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 ...
Tomas Kubes's user avatar
0 votes
0 answers
87 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: ...
Rohit Dalal's user avatar
0 votes
0 answers
89 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 ...
pops64's user avatar
  • 1
3 votes
1 answer
1k 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 ...
name.disp's user avatar
  • 133
0 votes
0 answers
65 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, ...
hanshenrik's user avatar
  • 1,695
1 vote
1 answer
478 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 ...
Daniel Kaplan's user avatar
0 votes
1 answer
59 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 ...
Daniel Kaplan's user avatar
0 votes
0 answers
34 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 ...
jordanfuzz's user avatar
1 vote
1 answer
210 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 ...
Mike Pennington's user avatar
0 votes
1 answer
59 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 ...
Daniel Kaplan's user avatar
0 votes
0 answers
369 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 ...
Daniel Kaplan's user avatar
0 votes
2 answers
481 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 ...
user avatar
0 votes
1 answer
128 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 ...
RedGrittyBrick's user avatar
0 votes
2 answers
121 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 ...
Zorak's user avatar
  • 165
0 votes
0 answers
75 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 ...
Gui Imamura's user avatar
1 vote
0 answers
293 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 ...
user787832's user avatar
0 votes
1 answer
312 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 ...
Asia's user avatar
  • 11
1 vote
1 answer
480 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....
Alec Darby's user avatar
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://...
neubert's user avatar
  • 7,122
1 vote
0 answers
139 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 ...
gmn_1450's user avatar
  • 111
0 votes
0 answers
55 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 ...
murspieg's user avatar
0 votes
0 answers
81 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 ...
Robert Thornton's user avatar

1
2 3 4 5
34