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
-1 votes
1 answer
26 views

How do I launch the fish shell in WSL through Cmder?

Setting it as the default shell in Ubuntu WSL results in the PATH not working properly, as described in the docs. So I want to avoid that issue by launching it through the terminal.
user avatar
1 vote
1 answer
20 views

How to recover a file deleted in WSL from explorer.exe?

I accessed my Ubuntu mount via \wsl.localhost\Ubuntu\home\user.ssh and deleted a private key I shouldn't have. I wasn't sure if maybe Windows threw the file in the Recycle Bin, so first I tried recuva ...
user avatar
  • 11
1 vote
1 answer
20 views

Open Chrome with specific profile from WSL

Im trying to get any urls opened from WSL commands to open with a specific Chrome profile, in this case, specifically for aws sso login which triggers a browser login. If i set the BROWSER env var to ...
user avatar
  • 131
0 votes
0 answers
10 views

How to connect windows application proxy[local host] to WSL [KALI LINUX TERMUX]

How to connect windows application proxy[local host] to WSL [KALI LINUX TERMINAL]. The proxy address is 127.0.0.1:9050 I had tried to set temporarily export http_proxy=http://127.0.0.1:9050 its ...
user avatar
1 vote
0 answers
19 views

Cannot change the WSL2 network switch connection type

I'm using Ubuntu 20.04 as my WSL distribution, and I've been trying to connect a Wi-Fi adapter to it. I searched the web and found that I need use the Hyper-V manager to change the WSL switch ...
user avatar
  • 11
0 votes
0 answers
36 views

Was my wsl installation erased by reboot? [closed]

In a computer with windows at a corporation, where there's control over computing, I successfully installed windows Linux subsystem in power shell using admin account by wsl --install But I didn't ...
user avatar
  • 16.3k
0 votes
0 answers
18 views

Access WSL2 distro's VPN network from Windows 11 host

I am running an debian 11 in WSL2, and I am connecting to a VPN network using openvpn. Within the distro (from CLI) I can reach the desired remote hosts, but I cannot reach them from Windows. Here is ...
user avatar
1 vote
1 answer
105 views

Unable to apply the command "wsl --set-version Ubuntu 2" to set default version to 2

When trying to set the default version to 2 (I'm using windows 11) I got the error 0xffffffff as follows: PS C:\WINDOWS\system32> wsl --set-version Ubuntu 2 For information on key differences with ...
user avatar
  • 11
0 votes
1 answer
27 views

Access WSL2 distro's VPN network from host

I am running an Ubuntu 20 in WSL2, and I am connecting to a VPN network using openfortivpn. Within the distro (from CLI) I can reach the desired remote hosts, but I cannot reach them from Windows. ...
user avatar
3 votes
1 answer
146 views

How to find out WSL2 version?

At the moment the latest WSL2 version is 0.58.3. I just run wsl.exe --update and now I would like to know which version of WSL2 I'm running. I've tried both --version and --status flags without ...
user avatar
0 votes
0 answers
41 views

Windows Subsystem for Linux: error fetching identities: communication with agent failed with keys from KeepassXC

My ssh keys are stored in KeepassXC (version 2.7.1). I've enabled the SSH Agent integration in KeepassXC and have it use OpenSSH. I tried using Pageant and with "Use both agents" but it ...
user avatar
1 vote
0 answers
80 views

Exclude WSL 2 VM from Windows Defender

I'm trying to exclude my Ubuntu VM in WSL 2 running in an up to date Windows 11 Pro installation. The problem is that my local build is terribly slow when Windows Defender is active. Setup is as ...
user avatar
  • 11
24 votes
4 answers
4k views

How does WSL/WSL2/WSLg work without systemd?

As I've understood it, systemd is Linuxes' "master"-daemon, managing all other processes right after it has been started up and run its init-function. Since I had this (now resolved) issue, ...
user avatar
0 votes
1 answer
22 views

How to stop jar from executing inside container, with green border?

Windows 10 (64-bit) I'm trying to run an executable jar. It opens & runs fine, but there is a green border around the window, and any application which is opened by this app, also has a green ...
user avatar
  • 101
0 votes
1 answer
60 views

NFS Permission Denied when mounting from WSL

I'm trying to mount a NFS folder in WSL2 Ubuntu 20.04 sudo mount singularity:/srv/Storage /mnt/storage -v But it gives me an error mount.nfs: access denied by server while mounting singularity:/srv/...
user avatar
  • 620
0 votes
1 answer
35 views

dual Kali linux instances windows wsl2

I am trying to run kali and parrotos side by side on windows wsl. Parrot os can just be installed over kali, so really I just need to figure out how to create two kali machines. I found some answers ...
user avatar
  • 1
2 votes
1 answer
157 views

WSL fails to start in Windows 10: "The specified module could not be found." (Error 0x8007007e)

I'm trying to run WSL in Windows 10. However, doing so returns a vague The specified module could not be found error. I initially thought it was a problem with Docker, until I tried to run WSL ...
user avatar
  • 353
1 vote
1 answer
44 views

WSL2: can ping by FQDN but not by host

In WSL2, I can ping by FQDN: $ ping host02.foo.org PING host02.foo.org (10.10.10.1) 56(84) bytes of data. 64 bytes from host02.foo.org (10.10.10.1): icmp_seq=1 ttl=122 time=33.7 ms but not by the ...
user avatar
  • 879
0 votes
2 answers
35 views

How can I omit double quote when `cd F:\folder_xxx` in wsl2?

I have found below ways: wcd() { cd `wslpath "$1"`; } cdw() { cd "$(wslpath "$1")"; } They need add double quote around a path: wcd "F:\folder_xxx" Which is ...
user avatar
  • 835
1 vote
0 answers
35 views

Windows Terminal removing/skipping random lines of output

Windows Terminal (1.12.10982.0) keeps removing random lines from the output in Ubuntu/WSL - notice the gap in irb's output between line 52 and 70: irb(main):051:3* file.each do |line| irb(main):...
user avatar
1 vote
1 answer
279 views

WSL2 Network is unreachable

My WSL2 can't connect with internet on any distro. Network is unreachable on sudo apt-get update. I don't have any VPN just fresh Windows 11 or 10. It's wired connection using Wifi Router, It can ...
user avatar
1 vote
1 answer
65 views

Ubuntu/WSL disappeared from Windows Terminal?

I am using WSL/Ubuntu 20.04 on Windows Terminal, and I wanted to change my font color. When I copied settings into my settings.json file, the Ubuntu profile disappeared from Windows Terminal`. My ...
user avatar
1 vote
0 answers
69 views

How do I run Atom in Ubuntu WSL? [closed]

I am trying to run Atom editor in ubuntu. I installed ubuntu then node.js. Both seem to work fine. Then I followed the instructions on this site for installing Atom: https://linuxize.com/post/how-to-...
user avatar
1 vote
0 answers
47 views

How to access Windows ntfs ea/extended attributes under Linux or Windows? Or convert Volfs to DrvFs past version 1903?

I accidentally deregistered the legacy wsl1 install at %APPDATA%\local\lxss (back at the time when wsl was called bash on Ubuntu on Windows and there could be only 1 rootfs which had to be installed ...
user avatar
  • 1,671
1 vote
1 answer
34 views

WSL2 is installed but won't launch

I don't remember exactly how I installed WSL, but I think it installed with Docker. When I run wsl -l, Docker appears in the list of WSL distributions. But when I run the wsl command from the Windows ...
user avatar
  • 421
11 votes
2 answers
1k views

How to connect to Windows subsystem for Linux from another machine within network?

I set up my Ubuntu WSL instance and am running an SSH server on it. However, when I do ifconfig on the Ubuntu console, my Ipv4 is 172.26.66.223, which is different from my regular machine's ipv4 192....
user avatar
2 votes
0 answers
67 views

WSL and Hyper-V suddenly stopped working

I'm running Windows 11 21H2 22000.613. I use both WSL 2 (Windows Subsystem for Linux) and Hyper-V on a regular basis. One day they both suddenly stopped working. When I run Hyper-V, it doesn't display ...
user avatar
  • 21
0 votes
0 answers
28 views

Why are SSH connections being blocked when using internal IPs on windows Linux subsystem?

I setup ubuntu linux subsystem on my windows 11 machine, and configured SSH on it, to allow other devices on my network to connect to it. It works when I am trying to connect from the same computer: ...
user avatar
0 votes
1 answer
34 views

Can't find /Users folder on ubuntu "app" in Windows 11

I am trying to access a file in my downloads folder via ubuntu WSL,I used cd /mnt/Users/Omar/downloads But it says that the directory doesn't exist, I tried going in one folder at a time and found out ...
user avatar
0 votes
1 answer
21 views

Docker on Remote Host refused mount request : not exported

I have a windows host (10.10.1.28) I'm trying to connect to NFS shares (10.10.1.17) for docker volumes. My NFS export /etc/exports # This file is auto-generated by openmediavault (https://www....
user avatar
1 vote
0 answers
141 views

Problems connecting via ssh from windows / wsl

Setup Banana Pi m2U running raspbian, (uname -r gives "3.10.108-BPI-M2U-Kernel") ssh server running on said bPi (atteched ssh config bellow), listening on port 22, allowing only public key ...
user avatar
  • 111
0 votes
1 answer
76 views

Unable to change WSL 2 to WSL 1. A version number could not be parsed

I installed WSL using the command wsl --install This installed default Ubuntu using WSL 2. Now I find WSL 2 is slow for file access cross NTFS files. And I read the WSL 1 is faster for file IO when ...
user avatar
  • 182
0 votes
1 answer
29 views

Changing default permissions on a new windows file moved into the WSL directory tree. How?

I often use file explorer to move/copy a windows file into the WSL environment for bash manipulation. All the windows files I move/copy in this way have permissions set to 000 by default. I have to ...
user avatar
1 vote
2 answers
68 views

Unable to SSH into other users in WSL remotely

I set-up a VPN and I can SSH into my WSL2 on Windows via any other computer, by running: ssh microsoft_account_email@ipaddress from another computer's terminal. I created other users on my WSL by ...
user avatar
  • 113
0 votes
0 answers
81 views

Unable to install windows subsystem for linux, error 0x800f0831

When I tried to install wsl without enabling it, it gives me this error PS C:\WINDOWS\system32> wsl --install wsl : The term 'wsl' is not recognized as the name of a cmdlet, function, script file, ...
user avatar
  • 1
3 votes
2 answers
233 views

WSL2 two separate Centos distributions have same eth0 inet addres

Using Windows Subsystem for Linux 2, I want to run two separate instances of Centos 7, but when I do this both instances have the same eth0 inet address. Here's what I did... I created a base Centos 7 ...
user avatar
  • 325
0 votes
1 answer
34 views

Automatically run a Linux executable with automatically updated Notepad++ file

I am currently working in WSL with a code that simulates something via an executable in the WSL window. To edit parameters (namely how long I want the simulation to run) for this executable I use ...
user avatar
  • 1
1 vote
1 answer
77 views

Drive /dev/sda with a swap file in WSL2

As NotTheDr01ds mentioned in this answer, /dev/sda in WSL2 is a virtual drive which Windows creates to store a swap file shared between WSL instances. But it isn't mounted by default when instance ...
user avatar
  • 113
0 votes
1 answer
162 views

WSL 2.0 : The file cannot be accessed by the system

When I open my terminal and run WSL, the following error is shown: The file cannot be accessed by the system. [process exited with code 1 (0x00000001)]
user avatar
1 vote
1 answer
165 views

Start menu shortcut on Windows for WSL2 GUI app not working

I am not able to get a custom start menu shortcut to a WSL2 GUI app working inside Windows 11. The app in question is Android Studio which is installed with snap using https://github.com/arkane-...
user avatar
  • 155
1 vote
1 answer
204 views

Change of WSL installation location

I am trying to install the Windows Subsystem for Linux in my PC (Windows 10). I opened a "Command Prompt" window by running it as administrator and ran wsl --install without changing the ...
user avatar
  • 433
2 votes
1 answer
92 views

Some Virtual Machines can't co-exist with WSL

Some of my virtual machines in VMWare (Windows guests) only work when 'Virtual machine platform' is disabled in 'Optional windows features' This in turn breaks WSL Anyone else encountered this. This ...
user avatar
  • 338
0 votes
1 answer
63 views

Making a bash script execute ssh

I want a bash script to start multiple SSH connections to multiple linux servers in multiple new bash windows, not for further processing, just to connect with a simple command instead of having to ...
user avatar
0 votes
0 answers
194 views

WSL2 connect to host without disabling the windows firewall

I simply want to connect from my WSL2 Ubuntu installation to my host windows on port 8529. What I tried: Disabled my public firewall. This works but is no option. I added bash, wsl, and the ubuntu ...
user avatar
0 votes
1 answer
200 views

Why permission of all directory set to full for WSL windows

Not sure if it the case for all or not but since the day I installed the WSL on my windows, I am in my home directory but I could see all the permission is set as drwxrwxrwx. I tried to change the ...
user avatar
1 vote
1 answer
17 views

Opening file location in Ubuntu with Windows Terminal Preview

I found this article very helpful but would find it really useful to be able to do the same with an Ubuntu tab in WTP. Is this possible?
user avatar
0 votes
0 answers
14 views

Starting VSCode with WSL Distro (from command line.)

is there a way to launch vscode from command line, and to tell it to start a new WSL window (using the default WSL distribution.) I don't see an option in the CLI, and regardless of whether I launch ...
user avatar
3 votes
2 answers
813 views

Ubuntu App for Windows sporadically gets a “Temporary Failure in Name Resolution” error

I have the Ubuntu app for Windows (downloaded from the Microsoft store) and I keep getting a temporary failure in name resolution error. ping: google.com: Temporary failure in name resolution This ...
user avatar
1 vote
1 answer
43 views

How do I fix command output in terminal is invisible on external monitor

Sometimes, when I run a command in Windows Terminal, the output of that command will be invisible until I select the text in the terminal, then it appears one whole line at a time, even if I don't ...
user avatar
  • 111
2 votes
1 answer
293 views

WSL2 won't use Xming on Windows 11

I'm using WSL2 with Ubuntu 20.04 on Windows 11. I've noticed that when you open a GUI app like xmGrace or Gnuplot, WSLg opens the GUI app through the "Remote Desktop Connection". So Xming is ...
user avatar

1
2 3 4 5
26