Questions tagged [windows-subsystem-for-linux]

Windows Subsystem for Linux (WSL) is a compatibility layer that allows Linux ELF64 binaries to run natively on Windows 10

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

How to enable systemd on WSL2: Ubuntu 20 and CentOS 8

I'm on WSL2 (Windows Subsystem for Linux, v2) and got the CentOS 8 WSL from: https://github.com/yuk7/CentWSL And the Ubuntu 20 WSL downloaded from Windows Store has no systemd enabled too. Got it ...
0
votes
1answer
50 views

“Virtual Machine Platform” in Win 10 (2004) is Hyper-V?

To use Windows Subsystem for Linux 2 in Windows 10 May 2020 update, the documentation says that I must turn on the "Virtual Machine Platform" Windows feature. Is it some sort of Hyper-V? Doesn't it ...
0
votes
1answer
35 views

network problems after upgrade from wsl1 to wsl2

Today I upgraded windows 10 and switched from wsl1 to wsl2. Most features seem to be running fine, but for some operation, I get "cannot resolve host" errors for public servers. For instance, when I ...
0
votes
1answer
26 views

Windows Subsystem for Linux (wsl) - Get Default Version

WSL allows you to set the default version used by running wsl --set-default-version x (where x is the version to set the default to). Is there any option to see what the current default version is? ...
-1
votes
0answers
9 views

File permission issues on WSL

I am using WSL on Windows 10 with Ubuntu 20.04 installed. I am trying to run the following command... sudo -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/libz.so And it says that permission is ...
0
votes
0answers
29 views

How to map a Windows user to root in WLS 2?

I just upgraded Windows 10 to version 2004 which has WLS 2. It works great. I do not understand however the relationship between users on Windows (say, john, the user I am logged to in Windows) and ...
-2
votes
0answers
21 views

How can I SSH to host machine from WSL

Is there a possible way by which I can ssh into my host machine from WSL ? I tried ssh to my host IP then figured that WSL in on a completely different IP range I have SSH server installed and ...
1
vote
1answer
42 views

Unable to access WSL after installing Docker for Windows

The Problem I'm running Ubuntu 20.04 under Windows through WSL. I installed Docker for Windows so as to be able to run an old MySQL, because I was told I need docker in WSL to talk to Windows Docker ...
0
votes
1answer
18 views

Redirecting URL to access web server with NGINX in WSL does not work

We have a C# .Net Core 3.1 application that hosts a web site (all configured in Program.cs and Startup.cs) which works wonderfully on Windows. It is setup so the welcome page is shown on https://ip/...
3
votes
0answers
79 views

How can I fix the error “Access Denied” in WSL?

I am trying to set up Windows Subsystem for Linux on my Surface Laptop running Windows 10 Version 1909 (Build 18363.836). I am encountering an issue when attempting to create a user account. I have ...
0
votes
0answers
23 views

Powershell won't send notification if shell script called from a powershell script

I was following the tip here to send notification in Desktop, it works if I send the command `toast from the powershell terminal itself. However if I send it from bash script, no notification is ...
0
votes
0answers
5 views

Is there a way to mount a folder from a host specified in $HOME\.ssh\config and using pubkey auth?

Does Windows (10; either through PowerShell or somehow via WSL[2]) have a way whereby a folder sitting on a host specified in $HOME\.ssh\config, and using Public Key Authentication, can be mounted in ...
1
vote
1answer
34 views

Run the third party shell commands through a batch file

Let's say I have WSL Ubuntu installed. Now I want to finish the following tasks by a batch file: run Ubuntu in cmd run Python in Ubuntu run Python commands under interactive mode I've tried batch ...
0
votes
1answer
27 views

Starting a .service under WSL Ubuntu-20.04 fails with some tags not found even though they are present

We have a product that is built with .Net Core so it can be ran/deployed on an appliance that can be running either Windows or Linux (a custom build of Linux). In Windows, it runs as a Windows ...
0
votes
0answers
26 views

Run GUI-based apps with Windows Subsystem for Linux (WSL) 2

I installed WLS 2 based on this guide and was able to update WSL version 1 to version 2: PS C:\Users\quarks> wsl --list --verbose NAME STATE VERSION * Ubuntu-20.04 ...
0
votes
0answers
17 views

Permissions Denied Error in WSL

I require Linux to run my phd analysis, and I know that I'm a beginner, so I'll try my best to describe my issue and everything I've tried. I am getting a permission denied error when running FSL (...
-1
votes
1answer
29 views

WSL2 can not access windows ip (retreived by `ip route | grep default | awk '{print $3}` )

Test code: winip=$(ip route | grep default | awk '{print $3}') ping $winip result: Actually I want to use a proxy service host on windows . I saw many people success with above command, why I ...
2
votes
1answer
24 views

Cannot find `.exe` files (in PATH) from CMD after installing WSL

After installing Ubuntu 20.04 using WSL, I cannot run .exe files from CMD without providing the suffix .exe.
0
votes
1answer
19 views

I can't open files using command via WSL

I'm using windows 10 and I've installed ubuntu 18.04 via wsl. Now I created a blank html file. I can't open the file using default application (chrome in my case) within the directory using ubuntu ...
0
votes
0answers
14 views

Microsoft Defender Firewall is … unsafe : WSL access?

I would like to access my X server from WSL 2 so I disabled the interface alias with : Set-NetFirewallProfile -DisabledInterfaceAliases 'vEthernet (WSL)' but now, I have a message from my security ...
0
votes
2answers
51 views

Why is WSL not ignoring blank lines in bash script?

I recently switched from using Ubuntu on dual-boot to using it on WSL. I had a bash script that worked perfectly fine on Ubuntu, which I then cloned from a GitHub repo to windows. When I attempt to ...
0
votes
1answer
45 views

How do you make .sh files open with Windows Terminal Ubuntu?

I really like coding in bash, but there used to be many limitations of bash functionality in Windows. Though now there are many benefits to the bash windows users now rather than how it was pre ...
0
votes
1answer
63 views

Git perminant cache password

Is there a way to use git config --global credential.helper without a timeout? i.e. have it never ask for my password again?
0
votes
0answers
31 views

How to configure WSL sessions.json to source my .bash_profile

I'm a regular WSL on Windows 10, and I open an Ubuntu terminal every day and do some startup processes. I'd like to create some aliases in my .bash_profile, however, when I open the terminal, the ....
1
vote
1answer
75 views

How to verify that WSL 2 is used?

It seems the api has changed and the command that one can find online are mostly outdated. How can I change which version of Windows Subsystem for Linux is used? Formerly: wsl -l -v Update After, ...
0
votes
1answer
93 views

git-lfs on WSL blocked by Avast Free Antivirus

The following problem suddenly turned up on my Windows 10 Laptop: I have been using the Windows Subsystem for Linux for years, and I've used git-lfs (git large file storage) on the WSL for several ...
0
votes
1answer
53 views

Move WSL2 file system to another drive

As opposed to in WSL1, official docs for WSL2 state clearly that I should place files I access frequently from Linux under the Linux file system. However, I have not found any docs on settings for ...
0
votes
0answers
20 views

How to connect a qemu / kvm mac os x guest os to internet inside WSL2

I've installed ubuntu 20.04 on WSL2 and I started a VM with qemu and kvm,running mac os x as guest os. It works great,except for the configuration of the net. Infact it is not able to connect to ...
0
votes
1answer
17 views

Use https with WSL and local Symfony web server

How do I get my Edge web browser to trust my local development Symfony website running in WSL? I am coding a website on Windows 10 using WSL 1 (Windows Subsystem for Linux) with Ubuntu 18.04 LTS. I ...
14
votes
2answers
1k views

Where are config files located in WSL?

According to this answer global/system config files are generally stored under /etc in linux. Is this also the case for WSL? If so where is the /etc equivalent directory located, as I was unable to ...
1
vote
0answers
70 views

How to run Windows program without sudo?

I'm using Windows subsystem for Linux. When I try to run any Windows program from bash, it seems to have no effect : For example, the following does NOT launch notepad.exe (and silently fails) $ /...
0
votes
0answers
104 views

Ubuntu Subsystem for Linux doesn't work with autohotkey

I have Ubuntu Subsystem for Linux installed and have a problem with autohotkey. In the following example X isn't displayed when Ctrl+Alt+b keys are pressed. ^!*SC030:: Send {x} return ^!*+SC030::...
0
votes
0answers
65 views

How to remove file with hard link 0

I've tried to remove linux files from windows but they hadn't been deleted. I tried to remove from Ubuntu terminal but get "permission denied" I set chown $USER:$USER and chmod 777 for parent ...
0
votes
0answers
74 views

Does all WSL data/memory fall under the same parent directory?

I would like to know whether all WSL memory/data is located under the same parent directory. This data would include all deb package installations in addition to the main WSL installation. For example,...
2
votes
1answer
51 views

WSL breaks my internet connection

would really love some advice. This is a super annoying one! Basically the issue is this. Turning on, my Windows 10 laptop works OK. Several minutes later, websites stop loading. Antivirus checks ...
0
votes
1answer
10 views

Trouble updating G++ to version >5 using apt-get in Windows Subsystem for Linux

Context: I'm trying to run CMake as described here (under Linux-installing dependencies > Building OpenVDB). I'm in WSL. When I do so I get this error: CMake Deprecation Warning at CMakeLists.txt:...
0
votes
0answers
18 views

autocompletion in cmd.exe in Windows Subsystem Linux

To save some traffic and improve on latencies, I installed windows subsystem linux, enabled SSH on it, logged into through SSH, and started CMD.exe. Things run smoothly, but I do not get auto ...
0
votes
0answers
24 views

Is the shred utility effective when run in WSL2 for securely deleting files in windows NTFS partitions?

I want to securely delete a file in a Windows NTFS partition from WSL2 The file can be accessed in WSL from /mnt/c/path_to_file will using shred /mnt/c/path_to_file actually perform a secure erase ...
2
votes
0answers
113 views

Trying to get WSL working on a Windows Server 2019 VM. Getting 'Access denied' error

I am trying to enable WSL with Ubuntu on a VM with Windows Server 2019. I am using the Powershell, running as Admin and following instructions here : https://docs.microsoft.com/en-us/windows/wsl/...
0
votes
1answer
55 views

Windows 10 OS build not updating after general update

I am trying to instal WSL2 for windows 10, however, the installation instructions indicate the OS build needs to be 18917 or higher. My Windows specs are: Edition: Windows 10 Home Version: 1909 ...
0
votes
1answer
44 views

Cmake 3.17 can't run bootstrap because **fatal error: config.h: No such file or directory**

Please note: I'm using the WSL Ubuntu app on Win10. I downloaded the CMake 3.17.1 Linux/Unix Source from CMake.org | Downloads and followed the instructions on CMake.org | Install. I ran the ./...
0
votes
1answer
32 views

How to identify the device interval ID of my XBOX / KINECT

Actually I'm enjoying myself by playing with WSL. I would like to use my XBOX / KINECT inside the WSL. To do that,I need to enable the USB ports inside it,because as u probably know,they are disabled. ...
0
votes
0answers
181 views

“sudo apt-get upgrade” not working on Ubuntu 18.04 WSL

I tried to upgrade Ubuntu 18.04 LTS to 20.04 LTS in WSL (maybe before it was available for WSL) and it failed to upgrade. After that attempt, I am not able to upgrade any packages using sudo apt-get ...
1
vote
0answers
93 views

Running pulseaudio in Windows 10 to get audio output in Windows subsystem for Linux Ubuntu

I have installed Ubuntu for Windows subsystem for linux. I would like to get some audio to work in Ubuntu. I have read the following tutorials: https://research.wmz.ninja/articles/2017/11/setting-...
0
votes
2answers
30 views

WSL2 no longer starting with bash colors

Until today when I started WSL2 with Ubuntu on Windows, I would get the pretty colors of the bash terminal. I think with today's update that no longer happens. Instead, the shell starts uncolored. If ...
0
votes
1answer
25 views

The “default” version of bash for windows is Ubuntu 14 for me. I'm unable to use Ubuntu 18 in apps like ConEmu/Cmder as a result

=== Issue === I'm attempting to run Ubuntu 18 in ConEmu/Cmder in Windows 10. However, the setup for Cmder says to use this path: %windir%\system32\bash.exe ~ -cur_console:p which runs Ubuntu 14. I ...
0
votes
0answers
86 views

Cannot find vmlinux when I try to enable KVM on WSL2 on Windows 10

I would like to enable the KVM support on my WSL2 on Windows 10 64 bit. I'm trying to do that by following this tutorial : https://gist.github.com/offlinehacker/b1d96515f87a47bd0b0bea574eab5583 When ...
0
votes
0answers
64 views

Update/Upgrade Debian in Windows Linux Subsystem: Temporary failure resolving 'deb.debian.org'

Linux Subsystems does not resolve names, so it is impossible to install or update anything, why does it happen and how can it be fixed? ecker@Lame_Slug:~$ cat /etc/apt/sources.list deb http://deb....
0
votes
0answers
16 views

How I can move a WSL to a virtual machine?

I installed WSL on my windows 10 pro and installing a lot of libraries and executing commands. I created a virtual machine and I want to move the WSL to that blank hard. Can I really do that? and How?
0
votes
0answers
90 views

Unable to Locate Package in Kali Linux

//using root account and after 20 hours of surfing about it. apt-get update doesn't work and gives o/p as "Unable to Locate Package in Kali Linux". Tried: 1.( from kali.org) deb http://http....

1
2 3 4 5
16