Questions tagged [windows-subsystem-for-linux]
The Windows Subsystem for Linux (WSL) lets users run a GNU/Linux environment on top of the Windows operating system. It includes support for Linux-based command-line tools ELF-64 binaries, and more.
windows-subsystem-for-linux
475
questions
194
votes
23
answers
323k
views
How to set up working X11 forwarding on WSL2 [closed]
When moving from WSL1 to WSL2 many things change; apparently this applies to X11 forwarding as well.
What steps do I need to make in order to use X11 forwarding with WSL2 on Windows 10 as I did with ...
4
votes
1
answer
14k
views
Does WSL 2 really support 32 bit program?
I have googled this problem, some answers declared that WSL 2 now supports ELF 32 program.
However, a simple test on wsl2 Debian/Ubuntu distro was not passed.
Here is my test:
// install run-time
sudo ...
60
votes
7
answers
112k
views
Access a localhost running in Windows from inside WSL 2 [closed]
I am running a local AEM server in my Windows machine. The server is running on localhost:4502. I am using a Ubuntu distribution running in WSL 2 for my development. I want to access the localhost:...
26
votes
3
answers
33k
views
Exec format error 32-bit executable Windows Subsystem for Linux?
When I try to execute a 32-bit file compiled with gcc -m32 main.c -o main on Windows Subsystem for Linux, I get the following error: bash: ./main: cannot execute binary file: Exec format error.
If I ...
17
votes
2
answers
14k
views
How can nodemon be made to work with WSL 2?
Ever since updating from WSL 1 to WSL 2 with the Windows 10 April 2020 update (and thereafter updating Ubuntu 18 to Ubuntu 20), I have not been able to get nodemon to hot reload when there are file ...
9
votes
2
answers
4k
views
Assembly compiled executable using INT 0x80 on Ubuntu on Windows Subsystem for Linux doesn't produce output
I've been looking at a tutorial for assembly, and I'm trying to get a hello world program to run. I am using Bash on Ubuntu on Windows.
Here is the assembly:
section .text
global _start ;...
272
votes
21
answers
461k
views
No internet connection on WSL Ubuntu (Windows Subsystem for Linux) [closed]
Recently I installed WSL Ubuntu 18.04 on my Windows machine, but nothing seems to work properly, because I have no internet access.
I tried a few commands and sudo apt update says 'Connection failed' ...
160
votes
18
answers
306k
views
Connecting to WSL2 server via local network [closed]
I'm developing a rails app using WSL2/Ubuntu on my Windows 10 machine, which is great! The problem is I can't connect to my server from another computer in the same network.
For further clarity, I am ...
124
votes
9
answers
137k
views
Show matplotlib plots (and other GUI) in Ubuntu (WSL1 & WSL2)
So it seems on ubuntu for windows (windows subsystem for linux) people are suggesting we need to use Agg backend and just save images, not show plots.
import matplotlib
matplotlib.use('Agg') # no UI ...
7
votes
1
answer
9k
views
Get err_connection_refused accessing django running on wsl2 from Windows but can curl from Windows terminal
I got the err_connection_refused when trying to accessing django running on wsl2 (http://localhost:8000) from Windows but when I use curl http://localhost:8000 from Windows terminal bash, it's working ...
334
votes
30
answers
507k
views
Docker gets error "failed to compute cache key: not found" - runs fine in Visual Studio
I've generated a Dockerfile with Visual Studio. It runs in Visual Studio just fine and now I'm trying to build it from Windows itself (docker build ., and I tried many combinations). Yet I get the ...
16
votes
1
answer
15k
views
Enable Systemd in WSL 2
I am attempting to debug some C# / .NET 5 code in WSL 2 with Ubuntu on Windows. I have WSL 2 setup with Windows 10 and want to test out creating a Systemd service. Unfortunately, it appears Systemd is ...
5
votes
5
answers
3k
views
Powershell - Strange WSL output string encoding
Today I'm just looking to check if a specific subsystem is installed on my windows workstation.
So I'm using Windows Subsystem for Linux (WSL) and install Ubuntu available from Microsoft Store.
Now i'...
336
votes
12
answers
135k
views
How can I change the location of docker images when using Docker Desktop on WSL2 with Windows 10 Home?
I've just upgraded to Windows 10 Home May 2020, activated WSL2, and installed Docker Desktop.
WSL2 must be installed in my system disk, which is a small SSD. I don't want to fill it with docker images....
142
votes
9
answers
156k
views
Why is WSL extremely slow when compared with native Windows NPM/Yarn processing?
I am working with WSL a lot lately because I need some native UNIX tools (and emulators aren't good enough). I noticed that the speed difference when working with NPM/Yarn is incredible.
I conducted a ...