How to remove highlighted background of text in vim?

I am referring to the grey background highlighting which is making vim unreadable. Note - I am running vim on Windows Subsystem for Linux. Also, this is not search highlighting. This is the...

How to add 'Open in Vim' context menu entry to edit text files in Windows from WSL Vim

I'd like to add a Windows right-click menu entry to quickly open text files in WSL Vim, without manually opening up a terminal. Thanks @romainl.

Karma: use Windows' Chrome from WSL

I am trying to launch karma from WSL using the Windows version of Google Chrome. In the karma.conf.js I simply use the Chrome browser: [...], browsers: ['Chrome'], [...] And I export the...

WSL Bash Permission denied to create files and directories

I've set up WSL (Windows Subsystem Linux) on my Windows 10 to utilize the Bash Terminal. I've created a Linux user, installed the latest updates and upgrades and I know how to access the windows...

Ubuntu wsl2 git getting "The remote end hung up unexpectedly" on large repos

Getting this action for days in Ubuntu 19.04 in wsl2 on Windows. $ git clone https://github.com/gohugoio/hugo.git Cloning into 'hugo'... error: RPC failed; curl 56 GnuTLS recv error (-12): A TLS...

I can't delete folders inside WSL which I accidentally created through Windows

I have WSL with a directory ~/library created within WSL. Then I ran VSCode and opened this folder directly from Windows Explorer, causing to open it as a "local Windows" folder instead of WSL....

WSL Conda Environment in PyCharm

I'm trying to set up a new dev environment on Windows 10. Let me set the stage with some key points: I am using Ubuntu through Windows Subsystem for Linux (WSL). I have Anaconda3 installed on...

How to change default directory in Windows Subsystem for Linux

I just installed Windows Subsystem for Linux and it always seems to open a fresh terminal in my Windows home directory - /mnt/c/Users/dl and I'm trying to make it default to the linux home...

How to set up working X11 forwarding on WSL2

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?

Can't get my Docker Container to start and give me a shell

I am trying to get a Docker Container running. I am following this guide: http://opendata.cern.ch/docs/cms-guide-docker. The container refuses to start and give me access to the shall I...

Selecting Python interpreter from WSL

I am using Windows 10 and want to set the the default VSCode interpreter for Python to be the same one used in my WSL 2 (Ubuntu), so that I'm always using "one Python". When I click "Select Python...

Develop against folder in WSL in Visual Studio 2019

I've tried to find any information on this, but failed. Is it possible to use Visual Studio 2019 to develop against a folder on WSL? I know that it's possible with VS Code and the remote WSL...

python pip defaulting to user installation because normal site-packages is not writeable

I am setting up a clean version of Ubuntu under WSL2, it needs to run python 3.7 because of some dependencies. The goal is to have a project folder with a virtual environment in it, and to be able...

WSL-2: Which ports are automatically forwarded?

I've been tinkering around with WSL-2 for a while now and don't exactly understand how traffic is routed between the host and WSL-2 dist. In some sources it seems like all ports used by WSL-2...

WSL2 Clock is out of sync with Windows

WSL2 clock goes out of sync after resuming from sleep/hibernate. A workaround was shared on GitHub sudo hwclock -s to resync clock in WSL, but you have to do this every time you resume from...

How can I debug my .NET Core unit tests using Visual Studio with WSL 2?

With Visual Studio, I can debug my .NET Core applications running in Windows and WSL 2. For WSL 2, I use this extension. This is working fine. I can also debug my unit tests in Windows. This is...

How to run multiple WSL2 instances on Windows?

I have installed WSL2 and deployed two machines on it: CentOS Ubuntu-20.04 It is possible to run multiple instances of the Ubuntu-20.04 instance on my win10 machine?

Can't pip install to target (distutils.errors.DistutilsOptionError: can't combine user with prefix, exec_prefix/home, or install_(plat)base)

I'm using ubuntu subsystem of linux and are trying to install a package using python 3.8 into a target such that I can zip the package. I can install the package in python 3.8 and I can use the...

C++ Undefined reference to `main (.text+0x24)

I have some problems with compiling my program since adding .h files to it. The error I'm getting looks like this. /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o:...

PhpStorm - WSL2 - Unable to save settings

I am using WSL2 with PhpStorm. When I am on a project under WSL2, then when I save a file, I always have the following error: Unable to save settings I have already tried restarting PhpStorm,...

System python version active instead of local pyenv version

How can I check if the correct python version is used after activating a virtual environment? I tried which python3 and which python but both outputs indicate the system python version and not the...

NFC-list Unable to find USB buses (No such file or directory) with ACR122U reader writer

I received my ACR122U NFC reader/writer 3 days ago, and had to find a way to get "libnfc" and "libsub" installed so I could try something in Windows Subsystem for Linux since the one specific...

pyenv install 3.x BUILD FAILED (Ubuntu 20.04 using python-build 20180424) using 'python-build: use readline from homebrew'

Trying to install a new Python - version with pyenv on Ubuntu 20.04 WSL for Windows 10 fails with the following output: [email protected]:~$ pyenv install 3.9.4 Downloading...

Error "Failed to initialize virtualenvwrapper." (WSL Windows 10)

Intro In my WSL (Wsman Shell commandLine, version 0.2.1) on Windows 10, I got pyenv installed and try to use pyenv-virtualenvwrapper. Yet, I can't seem to get it up and running, not even with the...

After installing npm on WSL Ubuntu 20.04 I get the message "/usr/bin/env: ‘bash\r’: No such file or directory"

I see the following message when running the npm install or npm command from the terminal. Executing node works as expected. > npm install /usr/bin/env: ‘bash\r’: No such file or directory

Python3 on WSL 2 takes forever (over 6 minutes) to import keyring

I noticed this issue when trying to run pip commands on my WSL2 Ubuntu-20.04 machine that it would take a long time to run anything. I finally narrowed it down to when pip is importing the keyring...

Error: require() of ES modules is not supported when importing node-fetch

I'm creating a program to analyze security camera streams and got stuck on the very first line. At the moment my .js file has nothing but the import of node-fetch and it gives me an error message....

VScode connected with WSL "The connection to the terminal's pty host process is unresponsive, the terminals may stop working."

I have wsl 2 installed on windows 10 and I have connected VScode with wsl. Many times when I run a gatsby app in VScode with the wsl environment. I get the error: The connection to the terminal's...

Trouble using python/brownie in WSL

I'm trying to complete the simple collectible NFT tutorial from this freeCodeCamp video. (I'm getting stuck on the script that starts exactly where the link is timestamped to.) For those that...

PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version, has anyone seen this before

/home/user/.local/lib/python3.8/site-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release