All Questions
Tagged with windows-subsystem-for-linux linux
504
questions
0
votes
0
answers
28
views
EasyMotion plugin doesn't load automatically on Vim startup in WSL Ubuntu
I am using Windows with WSL (Windows Subsystem for Linux) running Ubuntu. In my Vim setup, I have the EasyMotion plugin installed. However, the plugin does not load automatically when I start Vim. I ...
1
vote
2
answers
71
views
How to make a real time countdown in Bash while taking user input
i want to take user input and make a real time countdown like the following:
readFile(){
linenumber=1
end=10
while [ $linenumber -lt 18 ];do
for (( i=0; i<=10; i++ )); do
...
-3
votes
0
answers
35
views
Unable to run a GUI program with Ubuntu [duplicate]
When compiling one GUI program, I get the following error:
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set,
but this program performed an operation ...
1
vote
0
answers
122
views
How to show frames from USB camera with OpenCV in WSL2?
I am trying to capture and display frames from USB camera with OpenCV in WSL2. Here is the code:
import cv2
cap = cv2.VideoCapture('/dev/video0')
while True:
ret, frame = cap.read()
if not ...
0
votes
0
answers
30
views
R executable missing after installing r-base-core WSL 2
I was having trouble with package dependencies in R, so I wanted to completely erase all traces of R and re install it. After insalling r-base-core, I can't find where the R executable lives so I can ...
-1
votes
1
answer
33
views
go run unable to serve website in user mode, however works in root mode in ubuntu WSL - Windows [closed]
I am writing a simple web app in golang: golang http main.go server, with vscode user mode invocation
the server snippet:
package main
import (
"fmt"
"net/http"
)
func ...
0
votes
1
answer
41
views
OOM : Memory Increase Issue in Model Training with Pytorch on WSL2
I am experiencing an issue with memory increase and saturation while training a deep learning model using PyTorch in WSL2. While it doesn't happen on a Linux OS with the exact same code. The only ...
0
votes
0
answers
42
views
error response from daemon: rpc error: code = unvailable desc = connection error: desc= "transport": Error while dialing tcp
I have 3 containers in three different physical machines in the same LAN, I want them to communicate between them.
so I used docker swarm init --advertise-address @ip_Manager but I got an error :
...
0
votes
0
answers
46
views
Deno - Importing "https://deno.land/std@x/" throws "Module not found"
Basically the title.
I've been moving an existing fresh project into a WSL folder, and coming face to face with constant problems.
I've started going bare-bones and starting by just setting up the ...
0
votes
0
answers
28
views
readline on wsl cpp stops input from showing after stopping run via vscode interface
My setup includes WSL with Ubuntu, and I'm using Visual Studio Code as my work environment and coding in cpp 17. I've encountered the following issue: whenever I stop the program from running via the ...
0
votes
0
answers
20
views
relocation R_X86_64_PC32 against symbol `timing_' can not be used when making a shared object
When I try to execute my project on a machine without arpack++, I encounter the error 'libarpack.so.2: cannot open shared object file.' I attempted to rebuild the project after uninstalling arpack++, ...
0
votes
0
answers
51
views
WSL2 Sandbox - Trying to setup a script to build firewall rules on windows 10
I am trying to lock down WSL2 in my environment. I am not able to use the tools in Intune to manage WSL2 because I am not on Windows 11. So, I created a script to pull the IP of the WSL2 Interface and ...
0
votes
1
answer
71
views
Trouble creating react app inside WSL but works on windows
I am able to successfully run npx create-react-app while inside my windows directory. However, I cannot run this inside WSL. Any reason why? Tried more ways than I can count in trying to resolve this.
0
votes
1
answer
246
views
Qt application fails to initialize XCB plugin in WSL2
I have a WSL2 environment set up with Ubuntu 20.04 LTS on Windows 11 23H2. Previously, I was able to run my Qt5 application without any issues. However, I encountered a requirement for Qt4 in another ...
-2
votes
1
answer
55
views
Error when training on WSL2 that wasn't there on windows
I've been trying to make a simple language model using python and tensorflow and I've found that to propperly use the gpu I'd need to run on WSL, no problem of course. Though a new problem arose. It ...