Questions tagged [windows-subsystem-for-linux]
Windows Subsystem for Linux (WSL) is a compatibility layer that allows Linux ELF64 binaries to run natively on Windows 10
3,759
questions
-1
votes
1
answer
15
views
Can unbuntu wsl and other teminals in windows such as powershell and cmd use the same packages
I'm new to ubuntu wsl and terminals so I'm wondering if it is possible for all the 3 to use the same packages? Thanks.
0
votes
0
answers
25
views
Using tshark on WSL2 [closed]
I've installed tshark on WSL2 and want to sniff traffic on my host Wireless LAN adapter Wi-Fi. Is there a way to allow WSL to access that?
I realize it is running on a VM, but want to know if I can ...
0
votes
0
answers
38
views
VSCode ignores cpp standard when folder is opened in WSL: Ubuntu?
When I open a folder with WSL: Ubuntu and then try to build the project it seems to ignore the cpp standard set in VSCode's User settings. I can choose the standard I want by configuring a task.json ...
0
votes
1
answer
24
views
Problem installing Turi Create on WSL on Windows 10
I have installed Ubuntu on WSL for Turi Create, but when I start with:
sudo apt install python3-pip
... I get the error:
Package python3-pip is not available, but is referred to by another package.
...
-2
votes
0
answers
17
views
Nothing happens when launching x11 apps on WSL [closed]
I recently reinstalled windows on my pc and laptop, so I had to install WSL again. I started installing it on my laptop and I was writing every step I make while installing. After that I made all of ...
1
vote
1
answer
11
views
IntelliJ give error `Failed to prepare environment` when trying to run an NPM script
I am using IntelliJ IDEA Ultimate 2022.2. I am trying to run a WSL node (NestJS) project. I have set the node and npm settings to point to my node installion done via NVM on WSL. When trying to run an ...
-1
votes
0
answers
35
views
How can I run a cron job only when my laptop is active [WSL]? [closed]
I have a small script (on WSL / Debian) to rsync my files to my Debian server.
I've set the script to run every two hours.
My laptop is a Windows 10 machine.
When put to sleep / idle, the laptop goes ...
0
votes
0
answers
23
views
failed to compile gcc12.1.0 on wsl2
this is my error message
/mnt/d/code/tools/c++/gcc-12.1.0/libcpp/configure: line 2254: config.log: Input/output error
/mnt/d/code/tools/c++/gcc-12.1.0/libiberty/configure: line 2306: confdefs.h: Input/...
-3
votes
1
answer
16
views
django.db.utils.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)") [duplicate]
the ERROR above I became in the tutorial lesson 'The Ultimate Django 3' of Mosh Hamedani. Lesson part: Running Background Tasks, 5-Celery and Windows.
If you followed the pdf instruction and got no ...
0
votes
0
answers
19
views
ruby command not found after install using rbenv
I installed ruby using rbenv on a Ubuntu WSL2 distro
I was having problems yesterday with curl errors, but managed to get that fixed with some help.
However, now that I've installed ruby, my system is ...
1
vote
1
answer
35
views
SDL remembers last instance"s user input
I am working on an SDL project in C and I am having trouble with the input handling.
whenever I start my SDL app it remembers the last app's inputted keys and SDL_PollEvent always gives repeatedly the ...
-3
votes
0
answers
20
views
How to set up my Kinect xbox 360 on ubuntu 22.04? [closed]
I have a Kinect Xbox 360 and I don't know which drivers and libraries should be installed.
I have a WSL with ubuntu 22.04.
can anyone help me ?
0
votes
1
answer
46
views
How to install specific SDK (I need 6.0.300)
I'm running WSL-Ubuntu 20.04 on windows and need to have dotnet 6.0.300.
I have 5.0.480 and 6.0.400 installed, but I can't figure out how to get the specific one (dotnet 6.0.300).
0
votes
1
answer
24
views
RStudio Server from Windows Subsystem for Linux cannot find packages on PATH
I am trying to use RStudio Server to run a package (CNV-CLinViewer) through Windows Subsystem for Linux.
All R packages required could be installed except for bedtoolsr, which requires bedtools (not ...
0
votes
0
answers
23
views
How to downgrade Laravel Sail PHP version to 7.4
I am having an error when I my change my php version in docker-compose.yml form 8.1 to 7.4 it cause an error.
services:
laravel.test:
build:
context: ./vendor/laravel/sail/...
0
votes
1
answer
35
views
WSL bash in Visual Studio Code running .bashrc but not .bash_profile
Until recently, when I've launched the integrated terminal in Visual Studio Code, bash runs both my .bashrc and my .bash_profile files. But now it's only running the .bashrc file. I need it to run ...
-4
votes
0
answers
115
views
WSL opens Kali with an error(-bash: .: filename argument required .: usage: . filename [arguments]) [closed]
Figure 1
Figure 2
As shown in Figure 1, when WSL opens Kali, two lines of error messages appear. Every time you open Kali, two lines of error messages will pop up, which is very annoying.
As shown in ...
2
votes
0
answers
40
views
windows subsystem for linux bash not working [closed]
I want to switch to subsystem for linux on my windows device, but when I type the bash command it gives me this error, why?
enter image description here
Processing fstab with mount -a failed.
<3&...
0
votes
0
answers
10
views
docker - how to download image from repository directly to file without extracting it [duplicate]
I am trying to download a neuron docker image hosted by AWS.
Unfortunately, their repository is in America and it takes a very long time to download the image while building. What makes this worse is ...
0
votes
1
answer
25
views
insmod: ERROR: could not insert module first.ko: Invalid module format in WSL2 Ubuntu
I compiled the Linux kernel source code by following the instructions present at accepted answer Here.
While inserting the .ko file which was generated using the below make file and driver code I am ...
0
votes
2
answers
50
views
Execute an .exe in Python in Ubuntu/WSL
How can I execute an .exe file with Python3 on Ubuntu in WSL? From my searches I found os.system, but despite being placed in the correct folder, I cannot find the .exe file. I also tried with os.open ...
0
votes
0
answers
21
views
Execute Shell Script located in wsl directory using wsl command
I have an up.sh file with rsync commands in order to add file watcher inside my IDE. So it needs to execute the SH from windows using wsl. How is this possible?
E.g. wsl -e path-to-up.sh
-2
votes
1
answer
36
views
Can I share the same golang environment on Windows and WSL? [closed]
In addition, I also want to use coc.nvim in WSL and use Windows's Golang environment. Can this do? Will it cause problems?
0
votes
0
answers
42
views
How to compile .c files to .ko files in WSL2 Ubuntu?
I am learning Linux kernel development, to compile a .c file to .ko in a native Ubuntu machine I used the below Makefile
ifneq ($(KERNELRELEASE),)
obj-m := mymodule.o
else
KDIR := /lib/modules/$(...
0
votes
1
answer
48
views
SSL: CERTIFICATE_VERIFY_FAILED when using pretrained detectron2 model
I am trying to just use the pretrained mask_rcnn_R_50_FPN_3x model in detectron2 on an image. I get the error ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: ...
0
votes
0
answers
37
views
Terraform init fails on WSL
I have the below code :
terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
}
}
}
when I run terraform init, it fails on my WSL Ubuntu with this ...
-1
votes
0
answers
52
views
how to get client ip address in nginx proxy manager with WSL2
I'm running a set of Docker hosts on a Windows 10 machine (WSL2) and I'm using the nginx proxy manager container to distribute traffic. Everything works fine for me except the nginx proxy manager ...
-1
votes
0
answers
23
views
How to update Bounding Box (BBOX) Coordinates for Docker Container in WSL? I am getting the following error [closed]
I am trying to change the BBOX values which is throwing an error.
0
votes
1
answer
23
views
How can run Docker in linux 20.04 in Windows 11
Hi, I have this problem, trying to running Docker in Ubuntu 20.04 in windows 11 using the WSL, I installed it using the official documentation in https://docs.docker.com/engine/install/linux-...
0
votes
0
answers
55
views
In Clion IDE, running OpenCV code in WSL2 throws (-2:Unspecified error) Can't initialize GTK backend in function 'cvInitSystem'
I try to run a compiled openCV program in clion, work with ubuntu20 wsl2.
On WSL, it compiles correctly and runs correctly.
But , when running this target on clion, I got the following error.
...
0
votes
1
answer
14
views
Airflow - Please check "executor" key in "core" section. Current value: "CeleryExecutor"
I am trying to install apache-airflow, so in airflow.cfg file changed the executor to Celery Executor but I am facing an error while doing airflow scheduler
Please check "executor" key in &...
0
votes
0
answers
20
views
Trouble launching Jupyter Notebook browser from WSL Ubuntu
I do most of my programming on my WSL Ubuntu 20.04 partition, and therefore I want to use Jupyter Notebooks in the Ubuntu BASH - but I want to have a browser open to work with the Jupyter Notebook ...
0
votes
2
answers
39
views
Is there any way to check if there is any input then contiue?
I am a newbie in bash programming. I need a bash script which can check if there is an input or not.If there is an input then continue to the second question, otherwise it will not continue unless it ...
0
votes
0
answers
13
views
podman container missing somaxconn kernel file?
The problem:
I'm trying to build a container image from a Dockerfile using podman. I installed podman for Windows and built the container. When I run a program inside the container I get this error ...
0
votes
0
answers
21
views
Google Sheets API OAuth2
I am trying to use the Google Sheets API to retrieve data inside a spreadsheet from a Linux command prompt(WSL2/Ubuntu) in order to later use that data in hand with the LastPass Command Line Interface(...
2
votes
1
answer
42
views
Bash Process Substitution with WSL
I am trying to understand the following (odd?) behavior on my setup. I am running Windows 10, with WSL.
Here is what I see from my powershell+wsl session:
$ ./run.sh
Windows IP Configuration
<cut&...
0
votes
0
answers
43
views
Why does this command in WSL give "syntax error near unexpected token"?
When I give the following command in WSL (Ubuntu in Win11) it doesn't work. Why not and what can I do to activate conda that was installed before I had WSL? I thorougly checked related answers but don'...
0
votes
0
answers
33
views
/usr/bin/ld: cannot find -llib64 when building opencv 4.6 on WSL2
I am trying to compile the opencv 4.6 with Cuda 11.7 and Cudnn 8.4.1 on WSL2 with ubuntu 20.04.
I have configured the cmake successfully by following command:
cmake \
-D CMAKE_BUILD_TYPE=RELEASE \
-D ...
0
votes
1
answer
65
views
How to get CentOS or Rocky working with Visual Studio 2022 and WSL2?
Every guide that I've found concerning Linux development in VS2022 using WSL2 has involved Ubuntu exclusively. No one ever outlines the steps using CentOS or Rocky in his example.
I've had Ubuntu ...
-2
votes
1
answer
42
views
After dropping database, its data is still on the hard drive
Hey all on StackoverFlow!
I have a problem with my database. The company that I work for uses fixtures to populate the database for the development environment, and I do too. Sometimes these fixtures ...
0
votes
0
answers
38
views
Missing bits/c++config.h in WSL Ubuntu 22.04 VSCode
I'm trying to use VSCode with WSL on windows 11 but it seams that some libraries are missing.
As soon as I #include <iostream> an error appear :
unable to open source file "bits/c++config.h&...
-1
votes
1
answer
23
views
App runned in docker and access to database run in docker
i'm just starting with docker and i have an problem.
I'm woring in windows with wsl 2.0.
I've run postgres on port 5432 in docker, and it run well.
I've cretared java app, which has access do ...
-1
votes
1
answer
23
views
MySQL NOFILE limits on WSL2
I am running MySQL on WSL2 for Windows. At WSL2 startup, MySQL does not start and I get the following error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/...
3
votes
1
answer
58
views
Unable to ping redis server port 6379 from Windows Command Prompt
I have installed Redis in Ubuntu distro in Windows using WSL and I am trying to connect to the server from Windows command prompt.
When I ping the local IP (172.29.0.1) of Ubuntu, I get the ping ...
0
votes
0
answers
14
views
How to recover WSL 1 from old system disk and use on new system [migrated]
Windows broke after updating. I couldn't fix it, so I can't access it from the system.
On the old system, I was using WSL 1 from Ubuntu. I didn't backup or export.
I would like to try to reclaim this ...
0
votes
1
answer
41
views
tcl can't find wsl.exe when executing cmd /c wsl.exe --cd some/path/to/destination
My execution call looks like this:
exec c:/Windows/System32/cmd.exe /c c:/Windows/System32/wsl.exe --cd $drive_letter/Projects/$project/gs/$unit/netlist >>TestWSL.txt
And I keep getting the ...
0
votes
1
answer
22
views
wsl installation with Visual Studio Code with # instead of >
wsl installation with Visual Studio Code!!!!!
Hi. I keep on getting this Hash in my wsl terminal on VSC "root@upstairs:~#"screen shot
Shouldn't it be something like this>screenshot
Where ...
5
votes
1
answer
77
views
How do I get WSL Vim to accept pipeline input from Powershell?
I'm trying to create a Powershell function that acts as a wrapper for Vim in WSL. I would like this wrapper to be able to accept input from the pipeline.
In WSL, it's possible to do something like:
$ ...
0
votes
1
answer
40
views
Rails asset pipeline not automatically compiling with esbuild only on WSL
I have a rails 6 app using esbuild to bundle all my js files to app/assets/build. I have to manually run rails assets:precompile in order for the changes that are in app/assets/build to actually be ...
0
votes
0
answers
33
views
connect to server running under wsl 1 from another machine
I have a program that runs from wsl 1 listening to grpc requests under port 5032. When I want to communicate from windows to that program I use host name localhost and the specified port, it works. ...