Questions tagged [wsl-2]

This tag should be used for question about Windows Subsystem for Linux version 2. It should not be used for WSL version 1.

From the Microsoft docs:

WSL 2 is a new version of the architecture in WSL that changes how Linux distros interact with Windows. WSL 2 has the primary goals of increasing file system performance and adding full system call compatibility. Each Linux distro can run as a WSL 1, or a WSL 2 distro and can be switched between at any time. WSL 2 is a major overhaul of the underlying architecture and uses virtualization technology and a Linux kernel to enable its new features.

WSL provides a way to run linux binaries under Windows 10.

WSL 2 is stored in a single file and has it's own IP address while WSL 1 is stored in multiple files and shares an IP address with the host.

WSL 2 can access files in it's own directory structure faster than WSL 1 but it is slower with Windows files.

The guide for installing WSL2 can be found here.

1587 questions
0
votes
0 answers

Error in opencv while displaying image on WSL2

I have Debian installed on my WSL2, running VcXsrv, but cannot get opencv to display image. I have both libgtk2.0-dev and pkg-config installed. When I try to use imshow, I get the following error terminate called after throwing an instance of…
0
votes
1 answer

Jenkins dashboard does not show at localhost:8080 when launched from Windows Docker WSL2

Windows 10 Home, WSL2, Jenkins 2.263, Docker I am learning Jenkins and doing the tutorial by Starmer. In an ubuntu terminal (Windows 10 Home WSL2) I ran the provided code: useradd jenkins -m docker run \ -u jenkins \ --rm \ -d \ -p 8080:8080…
likejudo
  • 3,396
  • 6
  • 52
  • 107
0
votes
0 answers

How do I configure Docker Desktop on Windows 10 to control another docker installation on a Debian computer

I have a Windows 10(Home) computer installed with WSL 2 and several docker containers running on it. I also have another computer on the same network installed with Debian 10. How do I configure my Windows 10 Docker Desktop to Control/monitor Debian…
TonyP
  • 5,655
  • 13
  • 60
  • 94
0
votes
0 answers

DBus::Error while running Rails in Ubuntu WSL

I'm using the wsl2 with ubuntu 18.04 and I want to run a Rails project but encountered an error where I can't find the solution. After starting the Rails application with rails s the console prompted me with following error messages. => Booting…
Andreas
  • 31
  • 4
0
votes
0 answers

Weird thing with gcc output

So my homework is to write the program that adds every number until 0 is given and then print out the total. My code is: #include int main(void){ int sum=0, i; do { printf("%s", "Enter a number: "); scanf(" %d",…
Helper
  • 11
  • 1
  • 3
0
votes
1 answer

How can I enter the copy mode when I scroll the mouse while using Tmux in MinTTY?

Scrolling the mouse while using Tmux in MinTTY, the command history is scrolled. It seems that MinTTY converts mouse scroll event to up/down key. In the past, I tried the following terminal with tmux2.1 or later, the terminal was automatically set…
goa12z
  • 1
0
votes
1 answer

npm start hangs, does not sync changes (create-react-app on WSL)

I am new to web dev and am trying to follow the React tutorial. I have followed it successfully in the past on my machine. I am using Ubuntu 20.04 in WSL. When I run: npx create-react-app helloworld cd helloworld npm start I get: helloworld3@0.1.0…
0
votes
1 answer

VSCode Python Extension in WSL2 - Error: Failed to get interpreter information for '~/.pyenv/shims/python3.6'

I'm doing Python/Django development in WSL2:Ubuntu 20.04. When opening VSCode with code ., the Python extension gets stuck with the message "Python extension loading...". In the Output section, the following code appears: User belongs to experiment…
ad_intra
  • 93
  • 8
0
votes
1 answer

Alias stops working after adding another one

I am using WSL2 Ubuntu with Windows. I have an alias opening Notepad++ on Windows defined inside WSL like this: alias npp="/mnt/c/Program\ Files/Notepad++/notepad++.exe" and it works... but as soon as I add another alias, e.g. alias…
micper
  • 169
  • 12
0
votes
1 answer

Stuck with While loop in WSL2

I am in the very basic of the basic with Shell. In general, I only use the WSL2 for ssh. Now, I write a loop, so I google for an example to see how it works. Here is my ref:https://ryanstutorials.net/bash-scripting-tutorial/bash-loops.php. The…
Santi
  • 368
  • 2
  • 15
0
votes
1 answer

Installing Ubuntu and WSL2 on a non-Windows drive

My 1TB hard disk contains two drive, C:\ and D:\, each 490GB. Windows 10 is installed in C:. How can I install WSL2 and Ubuntu distro on D:? -Thanks
user529295
  • 189
  • 2
  • 11
0
votes
1 answer

Launch WebApp in Windows 10 from Docker container inside WSL2 (without Docker for Windows)

I have been faced certificate issue using Docker for Windows (With/Without Integration to WSL2). Here is the Link. I have installed docker inside WSL2 and Launch VSCode inside the WSL2. everything works fine without issues that I have been faced…
0
votes
1 answer

Unable to connect to minikube when using WSL

I am testing out a kubernetes cluster on my Windows machine using minikube. I installed minikube on Windows via chocolate and I have a script to access it from wsl2. I also have installed kubectl on…
Riley Conrardy
  • 392
  • 1
  • 9
  • 17
0
votes
1 answer

Is there a way to view WSL2 docker container's files via Windows File Explorer?

I can bash into one of the containers, but sometimes it's much easier to view it in GUI app such as Windows File Explorer or Total Commander. Is it possible in any way?
Tar
  • 8,529
  • 9
  • 56
  • 127
0
votes
1 answer

Installations on WSL?

I use Python Anaconda and Visual Studio Code for Data Science and Machine Learning projects. I want to learn how to use Windows Subsystem for Linux, and I have seen that tools such as Conda or Git can be installed directly there, but I don't quite…