windows-subsystem-for-linux Questions

5

I am working on a set of projects that use .env files for configuration, where each .env file exports a number of environment variables. The files are setup like; export VARIABLE1=foo I use the W...
Lewellen asked 4/2, 2018 at 10:53

4

$ sudo apt search gcc-12 Sorting... Done Full Text Search... Done $ uname -a Linux Han 5.10.81.1-microsoft-standard-WSL2 #1 SMP Mon Nov 22 18:52:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux I am usi...
Baucom asked 24/1, 2022 at 14:39

4

Somehow when I run code . inside the WSL, it simply doesn't do anything. If I which code it does return the VS Code path on windows, but still nothing happens.
Camarillo asked 28/9, 2020 at 20:6

9

I am trying to schedule a bash script to run with Bash on Ubuntu on Windows in Windows 10. Every time that I to write the cron, I get the following error messages in the terminal: crontab: install...
Dissociation asked 22/12, 2016 at 10:35

1

recently I've tried to make Visual Studio 2022 work with Docker containers on WSL2. My idea was to do a docker-compose up in my project's folder from WSL2. It runs well. Then I use d the WSL profil...
Assr asked 22/6, 2022 at 12:7

2

Empting space of my computer, I can anymore run wsl, how can I deal with this problem? in command line I tried to run wsl to use linux command line but I got this error: Failed to attach disk...
Nadeau asked 25/11, 2023 at 17:37

2

Solved

I want to schedule a job from wsl. The job will need to be run in the nix-shell and then in the python virtual environment under Nix-shell. I try to do this by writing a shell script, run ./enter.s...
Ellmyer asked 29/10, 2020 at 20:29

8

Solved

I'm runing nvim through wsl2 on ubuntu. However if I use the windows terminal nvim or vim will not fill the whole terminal How can I get rid of those black borders? It works just fine if I u...
Eolanda asked 25/6, 2020 at 15:3

7

I'm running WSL 2 on Ubuntu and having some issues getting docker up and running on my computer. I have Docker Desktop installed and running in the background, and I also have WSL integration enabl...
Povertystricken asked 3/6, 2022 at 0:44

6

firstly, I google'd a lot but nothing I found related to my case, I have an ELF executable file I'm trying to run it in my Ubuntu WSL, I've changed the permissions (chmod +x file), when I run it, t...
Dykstra asked 20/4, 2022 at 13:2

6

On Windows 10 Pro and 11 Pro I have installed and activated Ubuntu-20.04 and Debian. Using the documentation from MS on switching those distros to a secondary drive, everything seemed to work fine....

8

Solved

I am struggling to figure out how to launch a new "command prompt" window via a bash command in WSL. The goal is to launch a second prompt preferably already in bash. I have already tried running ...
Alfreda asked 25/4, 2019 at 5:28

7

Solved

When I wanted to run perf under WSL, I met the follow question: WARNING: perf not found for kernel 4.4.0-18362 You may need to install the following packages for this specific kernel: linu...
Barthol asked 15/2, 2020 at 8:36

3

Solved

I have on Windows10 and WSL. vscode is installed on Windows and not on WSL. When I open WSL and run: code I am getting following error: command not found: code I have reinstalled vscode and also ...
Malachite asked 1/9, 2019 at 12:54

5

Solved

I am a windows user. I installed Windows Subsystem for Linux [wsl2] and then installed docker using it. Then I tried to get started with OpenSearch so I followed the documentation in the given link...

6

Solved

I've tried but every time I restart my system my variables are gone. How can I store my environment variables in a permanent way on Ubuntu WSL2?
Spireme asked 11/12, 2020 at 21:21

4

Has anyone used WSL2 and connected to the host machine using its actual IP instead of through the WSL2 Network Adapter IP? My situation is this: My ip is 192.168.1.2 I start a webserver on my actua...

4

Solved

I have a host running Windows 10, WSL 2. My guest is Ubuntu. I'm trying to use sqlcmd to connect to the SQL Server running on my host machine, but I'm not sure what IP to use in the connection? I'v...
Geranial asked 21/11, 2020 at 3:45

3

Solved

Trying to get git and Beyond Compare to place nicely together on WSL. Here is the output from git config --list: diff.tool=bc3 difftool.prompt=false difftool.bc3.path=/mnt/c/Program Files/Beyond Co...
Zoo asked 12/2, 2022 at 16:39

3

Solved

I recently updated my Docker environment to run on WSL 2 on Windows. For setting memory allocation limits on containers in previous versions, I had option in Docker Desktop GUI under Settings->...

2

Solved

When I go into WSL the C drive is automatically mounted at /mnt/c. I would further like to mount a folder C:\D to the mount point /mnt/d. The contents of /etc/fstab: LABEL=cloudimg-rootfs / ext4 ...
Urana asked 29/1, 2020 at 0:35

1

I am trying to use netem tool on my windows subsytem for linux. This is the command I tried tc qdisc add dev eth0 root netem delay 100ms I am getting this error Cannot talk to rtnetlink : Opera...
Protectorate asked 8/4, 2020 at 11:25

3

Solved

I'm just trying out WSL 2 with Docker for Windows and I'm having an issues with mounted volumes : version: "3.7" services: node: build: . container_name: node hostname: node volumes...

3

I run WSL2 on Windows with an Ubuntu distribution inside WSL, and Docker desktop using the integrated "WSL2-based engine". If I do wsl --shutdown in the CLI, Docker Desktop complains abou...

6

Solved

I am trying to athenticate to the gcloud sdk using : gcloud init. I get a URL I'm supposed to access in order to copy a token and return it to the CLI... but instead of a token, I get this error : ...

© 2022 - 2024 — McMap. All rights reserved.