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
1 answer

Need guidance for creating temporary docker container for generating file on host machine

I'd like to create a docker container that can read file named helloworld.proto and run command protoc --dart_out=grpc:lib/src/generated -Iprotos protos/helloworld.proto The container would start with all the dependencies and generate required file…
ned
  • 71
  • 2
  • 9
0
votes
0 answers

Maven Always Compiles All The Source Files Under WSL2 Ubuntu Distro

Under normal circumstances in Linux or Windows, Maven will only compile recently changed (incremental compilation) Java sources in the project. However, under Windows WSL2 (Ubuntu distro), all the sources are compiled every time mvn compile is…
thlim
  • 2,908
  • 3
  • 34
  • 57
0
votes
1 answer

Laravel 8 setting up supervisor .conf file for DDEV development

I am trying to set-up a supervisor to process a queue. I am pretty sure it has to do with the scope the .conf is running in due to DDEV but I am not 100% sure. Here is my current…
Twoscore
  • 85
  • 2
  • 6
0
votes
1 answer

Adding Windows Path back to WSL

I'm running Ubuntu20.04 using WSL2, and I'm rather new to linux. While setting up my environment, I messed up my $PATH, as it no longer includes all of the directories in my windows path. Whenever I open Ubuntu, the terminal spews a bunch of errors…
jbrzozo24
  • 1
  • 1
  • 3
0
votes
0 answers

Error building Go + go-oci8 with docker in WSL2

I build a Go project and try to connect exist remote Oracle Database using go-oci8. The environment is wsl2 on window 10. I'm using Oracle Instant Client 21.1. My oci8.pc location: /usr/lib/pkgconfig My oci8.pc…
0
votes
1 answer

Alternative to systemd in WSL2 for Kafka installation

I am trying to install Kafka in WSL2. I am referring this DigitalOcean blog, but I am stuck when trying to start Kafka using the command: sudo systemctl start kafka System has not been booted with systemd as init system (PID 1). Can't…
Ayman Patel
  • 564
  • 2
  • 8
  • 23
0
votes
2 answers

Proper sudoers user / session setup for xrdp and systemd-modules-load / auditd fails in a WSL2 openSUSE-Leap-15.2 environment

I've managed it to successfully run xrdp in an openSUSE-Leap-15.2 WSL 2 Linux subsystem on my Windows 10 64 PC. My Linux knowledge is not that great. I use KDE (startplasma-x11) as desktop for xrdp. On my first setup I had no systemd and only a…
0
votes
1 answer

wsl2 DISPLAY variable on windows host

I use windows 10 and WSL2. To run linux applications on the X server hosted by the windows machine, I use the second command: export WSL_HOST_IP=$( cmd.exe /C netsh interface ip show addresses "vEthernet (WSL)" | grep "IP Address" | sed -e "s/\sIP…
0
votes
1 answer

php -S randomly not working: localhost refused to connect

I am using WSL2 with ubuntu 20.04 with php 7.4.3 installed on it. Sometimes, php -S (for example php -S localhost:9000 -t public) doesnt work, nor does php artisan serve. EDIT: When trying to access the address localhost:9000 from the browser, i…
Jess_Pinkman
  • 141
  • 5
0
votes
0 answers

Continous breaking connection to mySQL database

I have a problem with connection to my mySQL databases (via IntelliJ Ulitimate) – most probably problem with connection between windows and wsl2 (Ubuntu-20.04 distribution). Problem is quiet simple – always after couple of minutes (15 – 30,…
MazieKor
  • 1
  • 1
0
votes
0 answers

How do I SSH into a container running under WSL2 from Windows without Docker for Desktop

I want to do demonstrate to the IT area at my work how one might use a container for isolated development. I have installed WSL2, then I have a development container running with some basic developer tools--OpenJDK, etc. I can SSH into the…
cmhh
  • 131
  • 4
0
votes
1 answer

Can I use Docker's Linux filesystem in WSL 2 to bind mount a directory instead of installing a Linux distro?

I'm using Docker via WSL2 on Windows 10. I only want to be able to create Linux containers and map a directory in the container to a WSL directory. I'm pretty sure WSL must already have access to a Linux filesystem in order to create any container…
Neutrino
  • 8,496
  • 4
  • 57
  • 83
0
votes
1 answer

docker not saving at wsl2 with -v and --mount

I tried to run tensorflow container at wsl2, but there is trouble : my notebooks not saving. My Dockerfile FROM tensorflow/tensorflow:latest-gpu-py3-jupyter COPY Notebooks/ Notebooks/ i run it with docker run -it --gpus all -p 8888:8888 -v…
0
votes
1 answer

Docker Desktop to create Liferay docker container

I'm facing a problem since I migrate from Docker Toolbox for windows to Docker Desktop as the old one is now deprecated and not in development. I created a new Liferay 7.2 workspace and generated a sample mvc portlet module and I'm trying to create…
javaxiss
  • 680
  • 3
  • 13
  • 34
0
votes
0 answers

Error Installing PyStemmer On WSL2 (Ubuntu)

I want to clear that I am a noob at linux Hello There Gods Of Tech! I wanted to install PyStemmer On WSL2 (LINUX) But I run into this error. ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys,…
2fast4u00
  • 1
  • 1
1 2 3
99
100