Questions tagged [windows-subsystem-for-linux]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

After a random period of time, Windows is unable to see services running on my Linux subsystem and vice versa

I am running an Ubuntu 18.04 Linux Subsystem. I have Postgresql 12 running on Linux, and I connect to this from my apps I am developing in Windows. When I start up my PC, everything works fine.. DB ...
-1
votes
0answers
15 views

WSL2 SSH RemoteForward connect back

I'm trying to use rsync on my dev server to download files to my local machine after checking out a branch on the dev server. Before using wsl2, I used to be able to do the following: Remote server ...
1
vote
0answers
63 views

Accessing WSL2 From Public IP Address

I have installed WSL2 with Ubuntu 20.04 on Windows 10. I have an Apache server running in WSL2, and this works fine when I use a browser in Windows (Chrome) to access it via WSL IP address. As the ...
0
votes
0answers
14 views

The disk \\.\physicaldrive1 was attached from WSL2, but failed to mount (error code: -22)

Environment: Build: 21343 Ubuntu 20.04 WSL2 Currently attempting to mount an ext4 drive via WSL2 and keep receiving error: The disk \\.\physicaldrive1 was attached from WSL2, but failed to mount (...
0
votes
0answers
12 views

WSL & VcXsrv mouse not functional

I have WSL set up on a WINDOWS 10 PRO machine which I generally use for development. And I have gotten X apps to display properly within the windows WM and everything seemed fine; however, no matter ...
0
votes
1answer
20 views

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 ...
1
vote
1answer
55 views

win32 openssh default shell wsl.exe command arguments

Environment: Windows 10.0.21327 wsl2, ubuntu 20 LTS win32-openssh Windows Openssh Default shell changed to: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH\DefaultShell C:\WINDOWS\System32\wsl.exe ...
-2
votes
1answer
46 views

How can I connect AWS by using AWS-CLI in Windows Subsystem Linux?

I am totaly new for AWS I am trying to use awscli by calling below code : root@DESKTOP-QK5VI8R:~# aws s3 ls I applied lots of solution for that: I added port 8888 into Inbound/Outbound Rule set in ...
1
vote
2answers
1k views

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% (...
0
votes
1answer
31 views

SSH Connection Error: buffer_put_cstring: s == NULL [preauth]

I'm trying to connect via SSH to a remote SUSE Linux Enterprise Server 11 from a Windows 10 Computer. When using Putty 0,73, it works without problems. But using WSL2/Debian I get always refused. On ...
1
vote
1answer
21 views

Speed issue on using Linux subsystem search on a Windows server [closed]

I'm performing a search on a Windows server, who has a mapping to my Z:-drive (\\<servername>\<base_directory>). In there I would like to search inside a subdirectory, so we get Z:\<...
1
vote
1answer
143 views

iptables-legacy cannot load NFQUEUE targets and the --queue-num and --queue-bypass options are unknown options

I am trying to run the following iptables command from https://github.com/farukuzun/notsodeep on ubuntu 20.04.1. iptables -A INPUT -p tcp --tcp-flags SYN,ACK SYN,ACK --sport 443 -j NFQUEUE --queue-num ...
0
votes
1answer
41 views

Simulate or have VcXsrv system menu on WSL

I have a debian package which wants to install a system menu icon. Installation failed, and now deinstallion also fails with: xdg-desktop-menu: No writable system menu directory found. The situation ...
0
votes
1answer
2k views

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 ...
6
votes
1answer
1k views

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

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 ...
4
votes
2answers
2k views

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 ...
0
votes
0answers
15 views

WSL (Windows Subsystem Linux) fails to install gpsbabel

I'm trying to get GPSBabel (aka gpsbabel) to run on my WSL. gpsbabel Command 'gpsbabel' not found, but can be installed with: sudo apt install gpsbabel OK, I can do that. But it fails. I get ~/whome/...
1
vote
2answers
141 views

Unable to delete .gitconfig folder in user home wsl2

I want delete the .gitconfig folder in my user's home directory on Ubuntu 20-.04 (WSL2) but I'm getting this strange error: rm: cannot remove '.gitconfig/': Device or resource busy I've tried testing ...
0
votes
1answer
53 views

My Magento only can load the first front page, and all the page are 404. Nginx server configuration issue

I am trying to run Magento 2 on WSL, ubuntu Nginx webserver, localhost I only able to load my website first front page, but the rest of the pages are 404 not found. I only modify the /etc/nginx/sites-...
0
votes
0answers
44 views

Is there anyway to get MobaXterm to use the Windows Openssh agent?

I am trying to use MobaXterm to connect via public key to a server at work. This works without issue on the windows command line and also in the Windows Subystem for Linux. But it will not work ...
2
votes
2answers
576 views

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 ...
3
votes
0answers
376 views

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,...
1
vote
0answers
187 views

WSL2 on Windows 10 - installed NVM, Node but can't install any package

I have WSL 2 on my Windows 10 (* Ubuntu-20.04 Running 2). I installed nvm and node on it. nvm --version: 0.35.3 nvm ls: -> v14.11.0 default -> node (-> v14.11.0) node -> stable (->...
2
votes
1answer
900 views

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 ...
1
vote
3answers
2k views

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 ...
0
votes
0answers
89 views

Why does my sudo password not work for postgres on WSL2?

I am working on a project using WSL/Ubuntu. Love using Ubuntu, not having fun with the way Windows is handling things with a bunch of previous issues (but it's probably me). Now when I try to start ...
0
votes
1answer
255 views

Routing ipv4 traffic to ipv6 on windows 10

I'm running some services on WSL2 which only seems to support listening on ipv6 interface on the host side. This means everything outside WSL trying to connect to a WSL2 service on 127.0.0.1 is ...
0
votes
0answers
164 views

What dose it take to have traphandle works for individual OID with Net-SNMP?

In an Ubuntu 18.04 running in Windows Subsystem for Linux (WSL 1), I can have triphandle working for the default, but not able for individual OID, as shown in the except of snmptrapd.conf below: ...
1
vote
1answer
82 views

“Connection was reset” accesing apache2 virtualhost through wsl1 and /etc/hosts

I am new with linux but am trying to install koha (a library management system) through Debian 10 on my laptop using windows 10 ver.1903 (build 18362.900) and wsl1 as a test for installing it in my ...
0
votes
1answer
246 views

the same ssh rsa key does not work in Ubuntu(WSL) while from RHEL7 it works

I'm trying connect from Ubuntu(WLS) to RHEL7 server using ssh RSA key. And it does not work, while the same key when used from another RHEL7 host works. I checked all file permissions There is no &...
0
votes
0answers
1k views

AnyDesk TCP tunnelling port “closed” since Windows 10 2004

I connect to my company computer via AnyDesk. I have set up a TCP tunnel from local port 11111 to remote port 22, to have an SSH connection to the remote machine. This stopped working since I ...
0
votes
0answers
302 views

How to install tigervnc client in WSL?

I'm trying to install tigervnc client in Windows subsystem for linux. sudo apt install tigervnc-viewer I get, Reading package lists... Done Building dependency tree Reading state information... ...
0
votes
1answer
521 views

Local domain name resolution with WSL & Docker

I'm developing an app that is a combination of a Chrome extension and Rails backend (plus redis, solr and postgres). I've recently switched to developing on my nice home Windows rig instead of my ...
1
vote
0answers
125 views

Error installing OpenLDAP in WSL2

I'm trying to set up OpenLDAP to act as a non-secure proxy to Secure LDAP to support a legacy app so we can finish our migration to Azure Active Directory. I'm trying to install OpenLDAP on my system ...
3
votes
1answer
1k views

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 ...
0
votes
0answers
268 views

Problems with `PUT` FTP command under WSL2 (via VPN)

I'm experiencing problems with FTP under WSL2 while trying to transfer a HTML file to an FTP server running under IIS 10. After issuing a PUT command it gets stuck on "Waiting for transfer to ...
2
votes
1answer
2k views

How to get Ubuntu in WSL 2 to talk to an HTTP server on same Windows host?

I am running a console app in Windows 10 which has a self-hosted HTTPS server listening on port 44340. It's an ASP.NET Core website (Kestrel) and its perfectly browsable on the Windows side. I cannot ...
1
vote
1answer
1k views

Getting CUPS and printing working on Ubuntu with Windows Subsystem for Linux [closed]

I'm building a cross platform printing app and need to test it on various Linux. I could use VMs but I've got WSL just sitting here working and it will be a lot more convenient, at least initially ...
2
votes
1answer
3k views

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 ...
-1
votes
1answer
443 views

Real Linux instance vs WSL?

Windows 10 now has the subsystem for Linux available, I want to know what could be the difference between running a real Linux OS on a physical of Virtual machine VS running a WSL Linux instance? Can ...
2
votes
0answers
1k views

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 ...
0
votes
2answers
2k views

How to run in background a Linux command in Windows WSL (Ubuntu1804)

In the effort to bring some of the Linux advantages to my customers running Windows 10, I've developed a few bash scripts in order to automate some of their everyday tasks. I use to let them run the ...
1
vote
1answer
719 views

any way to integrate authentication with subsystem for linux?

Looking at windows docs and trying to script this: Invoke-WebRequest -Uri https://aka.ms/wsl-debian-gnulinux -OutFile distro.zip -UseBasicParsing Expand-Archive distro.zip debian cd distro .\debian....
0
votes
1answer
413 views

Windows and WSL docker-machine conflict

I have a windows 10 and I installed the WSL ubuntu 18.04 inside. Since the WSL can't use the docker due to virtualization, i ends up use my DigitalOcean droplet as my docker machine target. I follow ...
-1
votes
1answer
353 views

How to have WSL think it is in the past? [closed]

I am developing PHP/Apache/MySQL based code on my Windows 10 laptop via Windows Subsytem For Linux. I am working on some code that is time related. It has a mix of PHP date commands, and MySQL "NOW()"...
2
votes
1answer
585 views

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 ...
2
votes
1answer
339 views

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 ...
3
votes
3answers
8k views

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 ...