Questions tagged [windows-subsystem-for-linux]

Windows Subsystem for Linux (WSL) is a Windows feature that allows multiple Linux distributions and tools to run natively on Windows 10 and later.

Filter by
Sorted by
Tagged with
1 vote
1 answer
948 views

Cannot use apt on WSL2 but ping works

I'm trying to use a WSL2 installation of Ubuntu. apt-get does not work. For example if I want to install net-tools I obtain daniele@IOS-PC:~$ sudo apt-get install net-tools Reading package lists... ...
Jepessen's user avatar
  • 619
0 votes
2 answers
453 views

Create a new /dev/sd{b,c,d} on WSL for Ceph

I'm trying to run Ceph on (micro)K8s which running on my Ubuntu WSL distory. OSD pods are not being created because there is no supported device is available (see logs below). Ceph is configured to ...
a11hard's user avatar
  • 131
0 votes
2 answers
15k views

Does the Windows subsystem for Linux creates a virtual network?

I realize that a process running in my Ubuntu Terminal running in Windows 10 that opens a port was accessible from the host PC but not from the rest of my local network. I did some checks in the ...
Domingo's user avatar
  • 1,233
1 vote
1 answer
2k views

Mounted VeraCrypt drive does not show up in WSL

I found this thread. But it isn't working for me. I mount a VC volume as I: (for example), and /mnt/i is "No such file or directory". According to one claim in that thread, closing down all ...
mike rodent's user avatar
0 votes
1 answer
200 views

WSL translate W10 CLI switches into Linux?

I'm trying to install Veracrypt and run it (mount volumes, etc.) from a script run in WSL (Python but can call a BASH script obviously). As documented here, I've encountered a problem trying to use ...
mike rodent's user avatar
0 votes
0 answers
442 views

Ubuntu 20.04 WSL2 not detecting ext4

So, I had installed Ubuntu 20.04 with WSL2, and I've tried to follow some suggested approach to move it (just moving the ext4 hard disk image and creating symlink to the folder, containing it). This ...
Valeria's user avatar
  • 101
21 votes
3 answers
10k views

How do I add a keyboard shortcut to clear scrollback buffer in Windows Terminal?

I'd like to be able to clear my scrollback buffer in Windows Terminal using a keyboard shortcut. In WSL I can hit Ctrl+L and it does a form-feed (equivalent of clear -x command), which clears the ...
Charles Roper's user avatar
1 vote
1 answer
2k views

WSL2 run xrdp service from Windows

I am trying to start xrdp from Windows with the method described here, but when I run the command wsl sudo service xrdp start, xrdp doesn't start up properly. Running service xrdp status as my linux ...
The Bic Pen's user avatar
3 votes
2 answers
3k views

Check WSL version (1 or 2) *inside the Linux installation*

You can check which version is each installed distribution with the command, wsl -l -v as this superuser question states. But is it possible to know the WSL version (1 or 2) from inside the Linux ...
lucasvc's user avatar
  • 212
1 vote
2 answers
3k views

WSL (Ubuntu 20.04) - unstable permissions

I'm new to WSL and trying to use rsync for snapshot backups. Everything seems to be working as intended... except that rsync refuses to copy some files, citing a permission error with send_files. So I ...
mike rodent's user avatar
0 votes
1 answer
2k views

Why is my mount point busy or being used? Windows to WSL file transfer

I am trying to transfer files from my Windows system to my WSL (which is running Ubuntu). I can access the files through /mnt/c, and move them to a directory in Ubuntu. But I don't have permission to ...
Eli Rees's user avatar
1 vote
0 answers
1k views

Can't see any files inside /mnt/d in linux ubuntu 18.04 LTS terminal in my Windows using WSL 2

I was new on WSL, I know how to change directory from C: to D: in Linux Ubuntu 18.04, when I change the directory from C: to D: (which is in /mnt/d) I can't see any of files that already exist in D: ...
M Faris Alkodri's user avatar
1 vote
0 answers
779 views

How can I import Windows Subsystem for Linux (WSL) on an external SSD?

I encountered a few error messages, namely a Server execution failed message when trying to import the Windows Subsystem for Linux version of Ubuntu to an external SSD. After re-enabling the optional ...
Alvin's user avatar
  • 11
10 votes
2 answers
10k views

How do I change the windows error sound for windows terminal to something different?

Okay, so you know when you press backspace on an empty line in windows terminal, it makes that annoying error sound? How do I change the sound the something else? Thanks.
Bottish's user avatar
  • 317
0 votes
0 answers
124 views

"=" is invisible in nano editor (wsl)

The problem is simple: = is invisible in WSL's nano and I don't think this should be happening: #! /usr/bin/bash STRING="e" echo "$STRING" Is there some way to turn this off?
Crabby Fish's user avatar
1 vote
2 answers
5k views

Can I use WSL's ufw as a firewall for Windows 10?

I recently found out Linux is shipped with ufw as a firewall, so I thought if I can use WSL, it will be constantly running as a firewall; I know Windows already has a firewall, but having two wouldn't ...
toothsy's user avatar
  • 13
1 vote
1 answer
1k views

WSL reset after Windows 10 username change?

I had to change my Windows 10 username (local account) to remove white space from the user folder("User Name" to "User-Name". I followed the advice in this Q&A. I had a running ...
Max J's user avatar
  • 133
-1 votes
1 answer
282 views

Changing home directory on WSL gets rid of all color schemes in cmder

I'm quite used to competitive programming on linux so I was trying to set up bash in WSL. To run the executable I found out I need to type out the whole path like /mnt/e/... So I thought by changing ...
Laksh Chauhan's user avatar
1 vote
1 answer
544 views

'open linux shell here' starts in home directory

I have one specific directory (they key is the directory name, see below) on my filesystem where starting the wsl shell will always start me out in the home directory instead. Like so: PS C:\Source\...
JKJ's user avatar
  • 121
2 votes
1 answer
4k views

Win-Kex Kali WSL2 doesn't launch at all

I tried installing Win-Kex on my WSL2 Kali, but it doesn't work. What I tried: kex kex --sl kex --esm kex -s I tried reinstalling Kex 3 times. I tried installing dbus-x11. I tried removing the files ...
The Shwarma's user avatar
5 votes
1 answer
729 views

Detect Linux NTFS symlinks under Windows/WSL

Symlinks created in Linux on NTFS drives (ln -s) appear in Windows as short files with contents IntxLNK + 0x01 + (UTF-16 encoded target path) -- probably Interix. I want to write a script to convert ...
usretc's user avatar
  • 227
1 vote
2 answers
647 views

docker wsl2 context missing

I installed docker desktop and wsl2 on my windows machine At some point, i added a remote docker context and set it as default context. Now I can't see my local wsl2 context anymore. Here is my ...
Regis Portalez's user avatar
4 votes
2 answers
5k views

Mouse scrolling in MobaXterm tmux

On my Linux computer I have the following .tmux.conf file: # Enable mouse mode (tmux 2.1 and above) set -g mouse on This allows me to scroll up and down using the mouse wheel while in a tmux session. ...
Mate de Vita's user avatar
1 vote
0 answers
164 views

Task Manager crashes after enabling SVM

I have Windows 10 Pro, build 19042.746; AMD Ryzen 5 2600; MSI B450M-A PRO MAX. I installed WSL2 (Ubuntu) and enabled virtualization (SVM) in BIOS, and the WSL works fine. But then I noticed that Task ...
Maneren's user avatar
  • 13
2 votes
3 answers
5k views

WSL2 172.XXX.XXX.XXX ip address thing

Got a WSL2 Kali-linux machine on my windows. For some reason WSL2 has issues with network adapters. It only shows a specific network adapter with an address of 172.xxx.xxx.xxx. The problem is I can't ...
Trigosin Darom's user avatar
12 votes
3 answers
30k views

SSH into WSL from another machine on the network

I'm trying to deploy a distributed systems using Windows machines. However, the code I want to compile and run on this system should get complied in a Linux-based environment. Thus, I downloaded and ...
Marjan's user avatar
  • 123
4 votes
1 answer
4k views

WSL: This user isn't allowed to sign in to this computer

My Windows computer crashed (blue screen), and when it came back up, none of the WSL VMs is working anymore. They're all in the "Stopped" state, and starting them gives the error This user ...
Tri Nguyen's user avatar
1 vote
1 answer
2k views

How to open an URL through wsl2?

I'm connecting to a VPN using openvpn through wsl2 (kali linux). The issue I have is the following: I can't access sites in the network through the browser as wsl2 follows the URLs using the windows ...
Jasson C's user avatar
2 votes
1 answer
3k views

How to troubleshoot timeouts when trying to ssh into Ubuntu 20.04 on WSL 2?

I'm trying to ssh into Ubuntu 20.04 running on a Windows 10 machine via Windows Subsystem for Linux 2 (WSL 2). I've followed this guide on medium, and have additionally looked at this, this, and a ...
jaib1's user avatar
  • 123
2 votes
1 answer
4k views

Setting up TigerVNC viewer in WSL

I am trying to connect to a remote ubuntu server running TigerVNC servers. I can login through PuTTy to the machine fine and CLI is working great. However, I do run some applications that require a ...
NoseKnowsAll's user avatar
0 votes
1 answer
793 views

Error after installing CUDA on WSL 2 - RuntimeError: No CUDA GPUs are available

I am trying to install CUDA on WSL 2 for running a project that uses TorchAudio and PyTorch. I have done the steps exactly according to the documentation here. However, when I run my required code, I ...
Arka Mukherjee's user avatar
2 votes
1 answer
2k views

How do I log into Ubuntu WSL Server after I've already set it up?

I've setup WSL on windows 10. After the setup was complete it asked me to log into the server for the first time and set a password. But now it's day 2, and I've rebooted my computer. How do I log ...
Tim Dunphy's user avatar
3 votes
2 answers
5k views

How to run shell script without sh or bash in Windows Subsystem for Linux?

I am running ubuntu using WSL (Windows Subsystem for Linux). I have written a simple shell script below. When I run it gives the below error. #! /bin/sh # "test script" echo "hello ...
Vivek Nuna's user avatar
1 vote
0 answers
331 views

How may one reduce the impact of a WSL2 session on the performance of its Windows host?

I have been running some computationally-intensive processes (compiling and linking large programs) in WSL2 on Windows 10 Pro (build 19041.746), and doing so noticably slows down graphical Windows ...
sdenham's user avatar
  • 111
5 votes
1 answer
5k views

WSL 'Open Linux shell here' doesn't open in the current directory

If I right-click on a folder holding shift it does show open Linux shell here. But if I am in say D: drive no matter which folder I am in it will always open the Linux shell starting at /mnt/d. What ...
Amit wadhwa's user avatar
0 votes
1 answer
352 views

`wsl env` gives different result to `wsl` followed by `env`

Inside WSL (i.e. by opening a cmd and then running wsl, or just running wsl straight from the start menu) I have this line at the end of ~/.bashrc: LANG=en_US.UTF-8 While still inside WSL, if I do ...
Clonkex's user avatar
  • 1,097
2 votes
2 answers
4k views

Why ls -l total is 0 even even there are files in the directory?

I have a directory, inside that, I have created 2 files and have written some content in these files when I run ls -l. It still displays the total as 0. Why? It should return some positive integer. I ...
Vivek Nuna's user avatar
35 votes
2 answers
165k views

Completely reinstall WSL

I installed WSL 1, enjoyed having Linux on my PC, then discovered the limitations of the scarce interoperability over files between the two operating systems. So I installed WSL 2 following the specs (...
yodabar's user avatar
  • 545
11 votes
1 answer
8k views

Use clipboard through WSL?

I'm trying to get WSL to utilize my clipboard so I can update files from the output via xsel -b > my-umatrix-rules.txt. However, I'm getting the following error: xsel: Can't open display: (null) : ...
Guitarmony's user avatar
6 votes
1 answer
20k views

localhost and 127.0.0.1 working but not ip address in wsl windows 10

I recently switched from Linux to WSL2 (Ubuntu 20.04) on Windows 10. When I run any NodeJs application or a server like Apache or Nginx everything works fine on localhost or 127.0.0.1 but doesn't work ...
Aabhas Dhaubanja's user avatar
2 votes
1 answer
507 views

can't start docker via wsl powershell command but can start it in Ubuntu

I'm running WSL2 / Ubuntu 20.04 / Windows 10. When I type sudo bash -c 'dockerd &' in Ubuntu 20.04 / bash dockerd starts. When I type wsl sudo bash -c "dockerd &" in PowerShell ...
neubert's user avatar
  • 7,122
1 vote
1 answer
67 views

unable to make it so docker starts up automatically

Per https://docs.docker.com/engine/install/linux-postinstall/#configure-docker-to-start-on-boot I tried sudo systemctl enable docker. I then restarted and typed in sudo docker ps and... nothing. When ...
neubert's user avatar
  • 7,122
4 votes
2 answers
548 views

On wsl1, getting clipboard contents using powerhshell changes terminal appearance…?

I posted this on stack (now deleted), but was told that this might be a more appropriate forum. I'm on windows-subsystem-linux 1 with Ubuntu with the Windows Ubuntu terminal. Using advice from this ...
cmuyehara's user avatar
1 vote
0 answers
42 views

In WSL, I have a Ubuntu 18.04 installation and a Ubuntu installation. Can I safely get rid of the one that's just called "Ubuntu"?

I'm using Ubuntu 18.04 in WSL. In Windows Terminal, when I open a new tab, I can choose between "Ubuntu" and "Ubuntu 18.04". I'm wondering what the first one is and if I can get ...
Chris B's user avatar
  • 648
5 votes
6 answers
28k views

WSL 2 running Ubuntu - X server "Can't open display"

I have been setting up Ubuntu on Windows 10 WSL 2 so that I can start to ssh into a workstation at my school. I haven't had issues with ssh-ing into the remote computer, but haven't been able to open ...
Paul's user avatar
  • 111
0 votes
1 answer
2k views

How to install fonts for all users using WSL?

Using WSL Bash, I followed both sets of the steps from this question's answer (only the first set of steps worked) but I get strange behaviour for the font. The font does show up in my text editors ...
Daniel's user avatar
  • 150
2 votes
2 answers
2k views

Are there any downsides to switching off Hyper-V?

I like to be able to use VirtualBox as I am doing a couple of courses that require it, but I also want to use WSL2 (and I'd quite like to use Docker, too). I don't think VBox works with Hyper-V ...
fffrost's user avatar
  • 205
4 votes
1 answer
1k views

DNS responses are not used by the system but nslookup works

I am setting up a Windows computer. It is a rather strange setup, but it is necessary my company's workflows developed on Linux will also work here. I will add background information to the end. But ...
TheCommoner282's user avatar
0 votes
1 answer
3k views

Will I lose WSL data if I disable HyperV?

Will I lose WSL data if I disable HyperV? I need to use VMware, but I have some data on WSL. Also I Have Win 10 Home
PugzAreCute's user avatar
2 votes
1 answer
686 views

How can I create a PowerShell function with a dynamic number of parameters, each of which will be passed to another command?

Title is pretty much self-explanatory. Here's what I've tried so far: function Git { $cmd = $args[0] for ($i = 1; $i -lt $args.count; $i++) { $cmd = $cmd + " " + $args[$i] ...
Kenny83's user avatar
  • 250

1
14 15
16
17 18
34