Questions tagged [windows-subsystem-for-linux]

Windows Subsystem for Linux is a compatibility layer that allows Linux binaries to run natively on Windows 10.

71 questions
17
votes
1 answer

How to manually trigger an update of /etc/hosts in WSL?

When I start the first WSL terminal (ubuntu 20.04 bash in my case), WSL generates the /etc/hosts file based on the host file of my windows system %WINDIR%\System32\drivers\etc\hosts. If I now change the %WINDIR%\System32\drivers\etc\hosts, e.g. add…
René Link
  • 273
  • 1
  • 2
  • 6
8
votes
2 answers

How can I connect to Postgres running on the Windows host from inside WSL2?

I have Postgres running on my windows machine and I need to connect to it from inside WSL2. The postgres windows service is running I can connect to it from the windows command line using psql The IP of the WSL2 vm is 172.31.210.120, netmask…
4
votes
4 answers

Git, WSL2, SSH: unexpected disconnect while reading sideband packet

While attempting to clone a remote Git repo using SSH I got the following error: git clone user@remote-repo:project.git . remote: Counting objects: 187444, done. remote: Compressing objects: 100% (73430/73430), done. client_loop: send disconnect:…
amateur barista
  • 478
  • 3
  • 7
  • 21
3
votes
1 answer

How do I deal with paths when creating a PowerShell alias for a Windows Subsystem for Linux command?

I am updating my PowerShell aliases to include utilities from the Windows Subsystem for Linux. For example, I want to launch vim from PowerShell. Set-Alias -name 'vim' -Value 'Start-Vim' function Start-Vim { wsl vim $args } This Alias works…
Erick T
  • 191
  • 1
  • 4
3
votes
3 answers

rsync server using Windows Subsystem for Linux

Is it possible using the Windows 10 Windows Subsystem for Linux (WSL) to have a rsync server running on a Windows box? We have a linux rsync system that polls Windows boxes currently running DeltaCopy, but we occasionally have odd problems. Hoping…
Torfey
  • 33
  • 1
  • 1
  • 5
3
votes
1 answer

Wsl ubuntu virtualhost and hosts file on windows

I try to access it through my windows browser and fail. what is my mistake? I use WSL2 on windows 10, with ubuntu 20. I have an apache server and a laravel app which I installed at /var/www/law In my windows hosts file I've added this: 127.0.0.1 …
3
votes
3 answers

How to run KVM nested in WSL2 (or vmware)?

I'm trying to follow this tutorial to run KVM nested in WSL 2, but after following the directions through compiling the kernel and loading it, the test kvm-ok reports that KVM is not supported. I've tried multiple options: enabling hyper-v,…
3
votes
2 answers

L0 KVM and Win10 L1 nested virtualization not working (Windows boot loop)

I'm having a hard time getting nested virtualization inside my Win10 Pro guest running on KVM host working. Enabling Windows Hypervisor hypervisorlaunchtype auto results in a boot loop/boot to Automatic Repair. Host: CentOS Linux release 8.2.2004…
3
votes
0 answers

Connecting MongoDB Compass to WSL2 Mongo server

I am running a mongoDB server on Ubuntu via Windows Subsystem for Linux 2. (Windows build is 19041.) I have MongoDB Compass running on Windows, and it is happy to connect to my Mongo server in Windows, but I can't figure out how to give it access to…
David Kennell
  • 225
  • 2
  • 6
3
votes
1 answer

How to use Windows Kerberos ticket in WSL and/or Docker

I don't know much about Kerberos authentication, I just have some basic experience with configuration and usage. Recently I noticed that Windows has a built-in Kerberos implementation that is configured. So when I run klist in PowerShell, I get a…
SchLx
  • 131
  • 1
  • 4
3
votes
5 answers

When will WSL2 to be generally available on Windows Server?

Searching the internet shows that with Windows 10 version 2004, WSL2 (Windows Subsystem for Linux, v2) is now generally available. I use it, and it's great. All of the information (as at September 2020) that I've been able to find about Windows…
3
votes
1 answer

Pages load only when you restart php-fpm

So here's more context in a GIF Notice how pages do not load on link clicks, but as soon as you run service php7.2-fpm restart it instantly loads the page and like that with every page. What is causing this? I'm on WSL2 Ubuntu 18.04, Nginx, PHP7,…
2
votes
1 answer

PyCharm on Windows 10, how to use WSL ubuntu bash to run shell scripts?

I have installed PyCharm Community Edition on Windows 10, my Windows also has WSL Ubuntu installed. We know that PyCharm on Linux can create and run shell scripts because PyCharm use the /bin/bash on Linux. But on Windows, PyCharm doesn't know where…
2
votes
0 answers

WSL issue: cannot execute C:\Windows\System32\Bash.exe from elevated PowerShell - “access is denied” - works in normal CMD/PS prompt (no admin rights)

I have an issue with WSL (Windows Subsystem for Linux) in PowerShell. If I run the Ubuntu 18.04 LTS app (the UWP app) it works as expected. However, if I run and run Bash.exe from an elevated PowerShell prompt, it fails with simply: I opened…
SamAndrew81
  • 264
  • 1
  • 5
  • 20
2
votes
1 answer

Does Bash through Linux as a Subsystem for Win10 replace Git Bash for Windows?

I'm in the process of learning how to create Wordpress templates, and as a part of that was told to install Git, npm, node and gulp. However, the online course leaves out details about where stuff gets installed to through commands in CLI, what CLI…
1
2 3 4 5