windows-subsystem-for-linux

How to set up working X11 forwarding on WSL2

隐身守侯 提交于 2020-07-04 06:54:06
问题 When moving from WSL1 to WSL2 many things change; apparently this applies to X11 forwarding as well. What steps do I need to make in order to use X11 forwarding with WSL2 on Windows 10 as I did with WSL1? 回答1: TL;DR: Add the following to your ~/.bashrc : export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 export LIBGL_ALWAYS_INDIRECT=1 Enable Public Access on your X11 server for Windows.* Add a separate inbound rule for TCP port 6000 to the windows firewall

Connecting to WSL2 server via local network

半腔热情 提交于 2020-06-27 18:48:25
问题 I'm developing a rails app using WSL2/Ubuntu on my Windows 10 machine, which is great! The problem is I can't connect to my server from another computer in the same network . For further clarity, I am running a Puma server on localhost:3000 I have tried the following: Directly connecting to the IP address assigned to Ethernet adapter vEthernet (WSL) -> 172.26.208.1:3000 Directly connecting to the host machine's IPv4 address -> 192.168.0.115 Adding a firewall exception (using Bitdefender)

how to include the draco_dec library?

霸气de小男生 提交于 2020-06-27 17:20:13
问题 I want to include the draco library for my c++ project and I built draco with cmake on ubuntu. When i try to add any draco header i see "include errors". I've tried to compile header file and this command worked for some drace headers but didnt find many on them. g++ -I "\\wsl$\Ubuntu\home\antmedia\draco\src\draco" ObjContainer.cpp error: " No such file or directory #include "draco/compression/config/compression_shared.h" I saw this in draco readme. But i did not get it. " If you'd like to

Using Jupyter with Windows Subsystem for Linux

跟風遠走 提交于 2020-06-24 11:52:31
问题 Using the Ubuntu bash terminal on Windows 10 (installation instructions here), I installed Anaconda and have been using Jupyter notebooks without a problem. Unfortunately, Jupyter is unable to locate a runnable browser from within the subsystem, so I have to copy and paste the link it outputs in the terminal - but that is workable. The main issue comes when I try to open multiple notebooks. Normally, Jupyter would detect that a port ( 8888 by default) is already being used and make a new one,

How to Install JavaFX on Windows Subsystem for Linux

主宰稳场 提交于 2020-06-23 10:31:34
问题 I'm trying to install JavaFX on WSL Ubuntu I just updated and upgraded all my packages and checked that OpenJDK is up to date. If I try to compile anything for JavaFX I get errors like this. Below is my Java Version. Any help would be great cause I'm not sure what I'm missing. 回答1: You should install OpenJFX first sudo apt install openjfx openjdk-11 comes without javafx/openjfx by default. 回答2: in our course at POLIMI we solved so: https://github.com/ingconti/JavaFXWithImagesAndText/blob

How to Install JavaFX on Windows Subsystem for Linux

前提是你 提交于 2020-06-23 10:28:25
问题 I'm trying to install JavaFX on WSL Ubuntu I just updated and upgraded all my packages and checked that OpenJDK is up to date. If I try to compile anything for JavaFX I get errors like this. Below is my Java Version. Any help would be great cause I'm not sure what I'm missing. 回答1: You should install OpenJFX first sudo apt install openjfx openjdk-11 comes without javafx/openjfx by default. 回答2: in our course at POLIMI we solved so: https://github.com/ingconti/JavaFXWithImagesAndText/blob

NativeScript ./gradlew failed with exit code 1

ε祈祈猫儿з 提交于 2020-06-17 13:12:25
问题 Problem On Windows Subsystem Linux (WSL), during tns run android command: A problem was found with the configuration of task ':app:signingConfigWriterDebug'. File specified for property 'signingConfig.storeFile' does not exist. ./gradlew failed with exit code 1 回答1: Solution Copy platforms/android/~ directory to platforms/android/app/~ . 来源: https://stackoverflow.com/questions/61028194/nativescript-gradlew-failed-with-exit-code-1

Docker Bind Mounts in WSL do not show files

依然范特西╮ 提交于 2020-06-17 09:54:39
问题 Im trying to use the docker client from inside WSL, connecting to the docker engine on Windows. Ive exposed the docker engine on Windows on port 2375, and after setting the DOCKER_HOST environment variable in WSL, I can verify this works by running docker ps. The problem comes when i attempt to mount directories into docker containers from WSL. For example: I create a directory and file inside my home folder on WSL ( mkdir ~/dockertest && touch ~/dockertest/example.txt ) ls ~/dockertest shows

Default permission and ownership in WSL

北战南征 提交于 2020-06-17 09:31:11
问题 I'm currently in the process of switching from an Ubuntu 18.04 VirtualBox to the WSL. Everything is up and running to have a complete web dev environment. Unfortunately, the file permission and ownership is kind of a problem for me right now. --- Disclaimer--- I know that in a server environment this would be pretty bad and wouldn't be done. This is just for my local development process and this requirement will stay there. What I want to achieve is, to have a consistent set of permissions

Couldn't start client Rust Language Server

让人想犯罪 __ 提交于 2020-06-14 06:43:59
问题 I'm trying to figure out how to use rustc & cargo from my WSL. I use VS Code and Rust (rls) plugin and can compile my code but there is a problem with RLS: Couldn't start client Rust Language Server Rustup not available. Install from https://www.rustup.rs/ How i can solve this problem? 回答1: I had this problem as well with WSL and Visual Studio Code. The problem seems to stem from the fact that the Rust Language Server needs to find rustup in your path. We both probably followed the same path