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
17 views

No internet in Windows Subsytem for Linux (Ubuntu 18.04) when running VPN in Windows

Trying to use freshly installed Windows Subsytem for Linux (Ubuntu 18.04) to connect to a server at work. I am using the Cisco Anyconnect VPN to connect to my companies network, this is fine as I can ...
0
votes
0answers
29 views

PowerShell wsl.exe access is denied

I want to update WSL to WSL 2 on windows 10 but when I run any wsl command on powershell, I get access is denied error message. I am running powershell as admin still getting this error. Could not ...
0
votes
0answers
43 views

Why aren't Symlinks to Kali/WSL in another drive from default location working?

This is a question regarding WSL. My Laptop has 256GB SSD and The rest, HDD; i.e. 2 physically separate disks. The SSD acts as the C drive. As one can see, SSD has practically Low space. I added WSL ...
0
votes
2answers
39 views

How to run an in Ubuntu 18.04 on Windows without spawning a terminal?

I've got Ubuntu 18.04 LTS installed on my Windows 10 machine. Looks like this and this just so we're all on the same page. Now, how can I run an app under bash/ubuntu without having it open a ...
0
votes
0answers
29 views

Automatically Add Network Adapters to Bridge

I've been using WSL 2 with a Windows Insider build. I've managed to get around some networking and systemd issues by creating a network bridge with my Wi-Fi adapter and the WSL network adapter and ...
0
votes
0answers
17 views

WSL Ubuntu 18.06 LTS - Deny Read & Execute but not Read?

I'm trying to setup an id_rsa key in WSL Ubuntu 18.06 LTS and I want permissions of 600, so u+r only. And I'm told that the Windows FS ACL's override those of Linux. Of course my .ssh directory is ...
0
votes
1answer
18 views

Can I label each of the Windows10 Ubuntu terminals?

I opened multiple Win10 Ubuntu terminals, each runs very similar programs. To minimise the confusion, can I label each terminal on its title? Of course, I can use pwd to know the different working ...
0
votes
1answer
74 views

How to add second WSL2 Ubuntu distro (fresh install)

I have an existing Ubuntu distro, I want a 2nd one that is a fresh Ubuntu image. I suspect I can: export my existing distribution to tar with wsl.exe --export unregister my existing distro with wsl ...
0
votes
0answers
21 views

How to fix pipenv shell so it activates venv?

I'm running WSL2 Ubuntu 18.04 When I run pipenv shell the venv does not activate and I need to manually activate it (using the command it shows that it is trying to run): davidg@AERC-PCD-088:~/temp$ ...
-1
votes
0answers
60 views

How do I do a clean install of Ubuntu 18.04 in WSL Windows?

I had a failed installation of Windows WSL Ubuntu 18.04, and now when I try installing it from the store, it doesn't work. Even though other Linux distros work fine. (Like OpenSUSE, and Ubuntu 16.04) ...
0
votes
1answer
42 views

How to grant permission to edit files in Windows Subsystem Linux using Visual Code

I want to edit the \etc\apt\sources.list file in my Kali distro. I have the windows insider update and I am running WSL version 2. I have installed the vscode remote extension. When I try to save the ...
0
votes
1answer
42 views

Windows Subsystem for Linux, runs Linux apps on Windows startup?

I recently installed Debian from the Windows store and installed a package I would like to run when Windows starts. Is this possible? I have tried creating a batch file in the Startup folder that ...
-1
votes
1answer
51 views

Can't find Windows Subsystem for Linux in Control Panel

I'm trying to install Windows Subsystem for Linux but I can't find it in my control panel. I tried to search on this Super User site and some more sites they said that I need to enable the Developer ...
0
votes
0answers
32 views

Unable to ssh FROM Ubuntu on Windows 10 linux subsystem

When I attempt to ssh from Ubuntu running on my Surface Go tablet running the linux subsystem to Linux on my desktop PC, I get the error "Resource temporarily unavailable". I am able to ssh from my ...
0
votes
2answers
74 views

Why does “wsl” produce different results when using quotes?

Why does the wsl command produce different results when the linux command is wrapped in quotes? C:\Users\elitebook>wsl "ls /" /bin/bash: ls /: No such file or directory C:\Users\elitebook>wsl ...
0
votes
1answer
70 views

WSLENV maps APPDATA but not HOMEPATH

I have the HOMEPATH and APPDATA environment variables in Windows: I have tried to map these through to my WSL/Debian environment using WSLENV: However, when I try to inspect these variables in ...
0
votes
0answers
28 views

Cannot fix broken WSL Distribution

I'm using WSL on Windows 10 v1909. The distribution is Pengwin and everything was fine until today. Now I cannot install anything nor fix the broken distribution due to being unable to delete /usr/...
0
votes
1answer
102 views

Resolve “permission denied” when executing .sh files on WSL 2 via windows explorer

I'm using this method to have .sh files in Windows Explorer execute using bash.exe: "C:\Windows\System32\bash.exe" -c " \"./$(grep -oE '[^\\]+$' <<< '%L')\"; cd ~; bash;" This works fine ...
0
votes
1answer
57 views

Change directory depending on start directory zsh

I am using the new Windows 10 terminal with the WSL ubuntu and zsh (oh-my-zsh) shell as the standard terminal inside. It is configured that the context menu (right-click) has the option "open terminal ...
1
vote
1answer
60 views

How to access Linux partition from Windows 10 WSL?

I have Windows 10 and Fedora installed on my computer in a dual boot configuration. In Windows 10 Windows Subsystem for Linux (WSL), I can access my files in the Windows partition(s). However, I can'...
0
votes
0answers
13 views

Ubuntu WSL does not start default distro

I switched computers and exported my Ubuntu WSL to use on the new one. I followed the process here and set my imported distribution as default. However, when I start my Ubuntu app (by clicking on ...
0
votes
0answers
49 views

WSL is doing something resource heavy every 15 minutes

I have some WSL processes running on the system and, every 15th minute of an hour (i.e 00, 15, 30, 45), my system is hanging for a moment, with the freeze time being relative to how many wslhost.exe ...
0
votes
0answers
112 views

Permanently Disable Virtualization-Based Security (VBS) in Windows 10 Pro

I'm trying to disable Virtualization-based Security (VBS) so I can run Ryzen Master and still use WSL 2. I've found this Microsoft script which disables it fine but it doesn't persist between reboots....
0
votes
0answers
41 views

How to open ubuntu 18.04 subsytem w/ python subprocess from windows?

Essentially I want to run linux scripts in my ubuntu subsystem by passing arguments through python on my windows os. I know where my ubuntu.exe is in program files. Normally subprocess.call(program....
0
votes
0answers
64 views

How to get WSL to show the path /mnt/c/Users/$User on load like hyper.is and windows terminal

I am open to a different approach if what I want to do is not recommended. When I open up ubuntu bash from wsl on windows. I am in the path /home/linuxUserName now when I use a different terminal like ...
0
votes
1answer
95 views

Can I use bash commands on Windows 10 for example by using VBA macros?

Is there possibility to use Linux command line tools in Windows 10? Namely, I mostly work on Ubuntu with bash and I have done some useful script to compute things on CSV-files, for example by awk. And ...
0
votes
0answers
23 views

gedit looks strange (“ugly”) on Ubuntu/WSL

I used gedit in the past and know it like this: On my freshly installed Ubuntu 18 (WSL) it looks like this (when I just call /usr/bin/gedit on the command line with an xserver running): It drives me ...
0
votes
0answers
89 views

Can you recover deleted files on Windows Subsystem for Linux?

I have Kali Linux installed on WSL. In its bash I have accidentally overwritten a file in its file system (i.e., not under /mnt/) by a mv command. Is there any way to recover it? I have tried to ...
0
votes
0answers
196 views

Is WSL2 default enabled for insiders (after 1909 update)

I have downloaded the latest Windows update version 1909 available to me with the new Windows Terminal (Preview) and opted in for the Insiders program, Slow ring which apparently now has the WSL2 ...
0
votes
0answers
70 views

Connection reset by peer on systemctl as root

I've setup WSL 2 (Ubuntu) and I installed systemd (and systemd-sysv) there. After that, I ran: sudo mkdir -p /run/dbus sudo dbus-daemon --system sudo daemonize /usr/bin/unshare --fork --pid --mount-...
0
votes
0answers
38 views

Recover WSL files from another machine

I have a laptop with windows 10 that will no longer boot correctly. It had a WSL distribution of Ubuntu installed. Assuming I remove the drive and attach it to a new windows laptop; how can I back up ...
1
vote
1answer
305 views

Windows defender just removed sudo on my debian WSL, can I restore this?

So basically, i restarted my laptop and got the latest security updates. When i logged into my debian WSL i tried to do a sudo command and got a pop up from windows defender. Windows defender found a ...
0
votes
1answer
32 views

How to setup local network repository on Windows using Apache24 (Win environment) with WSL

I'm using Apache24 to host a local network repository (APT Url: http://192.XXX.XXX.XXX:8080), and by generating the Packages.bz2 using dpkg-scanpackages on WSL (Ubuntu). However, generated Packages ...
0
votes
1answer
48 views

How to list all public RSA .pem file on any machine

Sorry for changing completely my question but I cannot delete it. I hope that reformulating my question will shape a better question. I'm trying to find all public RSA .pem files on Windows/Linux. ...
0
votes
0answers
16 views

On Windows, how can I create an SSH tunnel using local windows virtual IP to remote server for all ports?

I am on windows, in WSL I can use ssh to create a tunnel from my localhost to several specific ports on a remote server. What I want to do is create a fake/virtual local IP and route all traffic ...
0
votes
0answers
62 views

How to change the name of a WSL distro to reflect the actual distro?

I have WSL 2 installed on my Windows 10 machine. I switched over to version 1 and upgraded from Ubuntu 18.04 to 19.04 using the do-release-upgrade command. I then tried to switch over to WSL 2, but I ...
1
vote
1answer
74 views

Multiple terminal tabs or windows in WLS Centos

Is it possible to open multiple tabs or multiple linux-terminal windows of WSL Centos (7.6) on Windows 10? I can run two linux instances at once, by opening another one, but I'd like to just have one ...
0
votes
1answer
52 views

Setting default user in Linux/WSL in sideloaded distro

With WSL Distros from the Microsoft store they are bundled with a utility to set the default user ubuntu config --default-user new_user_name. If i sideload a distro image that option doesn't exist. ...
0
votes
1answer
176 views

How to setup fonts in Linux subsystem?

I'm trying to use the Linux subsystem for windows (a bit of an adventure for me not knowing Linux). I've installed starship.rs and noticed I've got a number of badly rendering symbols. I've read that ...
0
votes
0answers
37 views

Cannot SSH from WSL1 (but from PS it works)

Does anyone know what could be the reason behind WSL not being able to SSH to a remote host, even though when using PUTTY, MobaXterm, XShell or even just Windows Powershell, the connection is clearly ...
0
votes
0answers
46 views

WSL OpenSSH will not open tunnels

I am using WSL with Ubuntu installed. I am trying to SSH to a "jump host" to get to computers behind this host. When I try running the command to create the tunnel, I am getting the following error ...
0
votes
0answers
62 views

'chmod' doesn't change permissions correctly

I'm trying to learn Linux essentials on WSL. I tried to change permission for a test file and it didn't work as I expected. $ stat test.sh File: test.sh Size: 1616 Blocks: 8 ...
0
votes
0answers
47 views

Invoking a new CMD window from WSL without waiting

Is it possible (without using a terminal emulator) to invoke a new CMD (or bash) instance in a new Window from within WSL, without having the calling command wait on the new CMD? The usual way to ...
1
vote
0answers
63 views

Installed fonts not appearing for WSL/Powershell

I've installed a number of fonts with powershell via the powershell script in the following repository: https://github.com/powerline/fonts Unfortunately, only a handful of my newly installed fonts ...
0
votes
0answers
381 views

Is there a way to unite WSL2 Ubuntu, Tensorflow-GPU, CUDA, and Pycharm[windows]?

I have a WSL 2 Ubuntu with Anaconda 3 installed in Ubuntu WSL 2. Then I installed PyCharm in Windows 10. Then I created an environment for tensorflow-gpu in WSL2. I installed CUDA and cuDNN in Windows ...
1
vote
1answer
69 views

WSL: “tab” character takes up an entire line

The "Bash for windows" app is behaving really weirdly whenever any WSL program outputs "\t" to stdout. The first character after the tab is drawn on the very last position of the current line. If ...
0
votes
2answers
37 views

Ubuntu terminal not taking keyboard input while asking for user password

I am using Ubuntu on Windows 10. I have the Windows subsystem for Linux flag turned on (evidenced by the following image). Recently, I tried to change my Unix password. At this point, the terminal ...
1
vote
2answers
170 views

WSL: QT application fails to start

I have compiled a simple QT Quick application (using Ruby-Qml, but I don't think this matters) on Ubuntu (18.04) via WSL on Windows 10 v1903 and get the following error when launching with Xming. ...
0
votes
1answer
72 views

Access Windows files stored on the computer via the WSL? [duplicate]

On a Windows running computer, can we access files stored on the computer via the WSL (Windows Subsystem for Linux) ? For example I'm using the Ubuntu WSL version on my Windows 10 computer. Using ...
1
vote
2answers
86 views

What does WSL's `--exec` option do?

With WSL 1, the output of wsl.exe --help includes: Usage: wsl.exe [Argument] [Options...] [CommandLine] Arguments to run Linux binaries: If no command line is provided, wsl.exe launches the ...