Questions tagged [windows-subsystem-for-linux]

Use this tag for questions about the Windows Subsystem for Linux, including Bash on Ubuntu on Windows and other distributions running under WSL.

Filter by
Sorted by
Tagged with
5 votes
1 answer
667 views

Attempting to run a regular tunnel in Debian version 9.5 Linux

I entered the following line in the modules.conf file under the /etc/modules-load.d/modules.conf path: alias char-major-10-200 tun And then I typed the following command from the Debian 9.5 Linux ...
user avatar
11 votes
1 answer
6k views

I edited a Linux file with a Windows program while using the Windows Subsystem for Linux, and now I can't access it any more

I'm using Bash on Ubuntu on Windows or another Linux distribution within the Windows Subsystem for Linux and I've edited a Linux file inside the lxss directory with a Windows editor. Now whenever I ...
22 votes
6 answers
38k views

WSL 2 does not have /lib/modules/

I have the source code of a hello world kernel module that works in Ubuntu 20 in a laptop. Now I am trying to compile the same code in Ubuntu 20 but inside WSL2. For that I am using this: make -C /sys/...
-1 votes
2 answers
2k views

How to apt update for kali on a manually installed wsl?

I'm using kali wsl(version 1) on Windows 10, and I installed it on non-C drive with this method here. This is the return of uname -r: 4.4.0-19041-Microsoft I got this error while apt update: user@host:...
  • 13
25 votes
8 answers
57k views

WSL - DNS not working when connected to VPN

I've used WSL Bash/Ubuntu for several years, but for some reason this problem recently appeared. DNS is unable to resolve any names, both internal and external. The first time I re-installed WSL I ...
  • 391
13 votes
2 answers
9k views

Passing command to bash from cmd.exe (WSL) not working

I'm on a Windows 10 machine with Windows Subsystem for Linux enabled/configured (Ubuntu). To explain my problem let me present you with two scenarios: Scenario 1: I start a cmd.exe prompt I run bash ...
  • 351
10 votes
4 answers
2k views

How do I make a shortcut to a path using two tilde characters '~~' (or similar) in WSL/Ubuntu/Bash? [duplicate]

I'm a newbie to Ubuntu/Linux world, so don't be hard on me. I'm using Ubuntu on Windows with WSL2 and the bash shell. Sometimes I want to copy files from Windows to Ubuntu or the other way around. I ...
  • 203
6 votes
7 answers
29k views

Not able to initialize GUI for kali linux in wsl 2?

This error message is being displayed: TigerVNC Viewer 32-bit v1.10.80 Built on: 2020-06-15 22:33 Copyright (C) 1999-2020 TigerVNC Team and many others (see README.rst) See https://www.tigervnc.org ...
4 votes
1 answer
5k views

modprobe: FATAL: Module cifs not found in directory /lib/modules/4.4.0-19041-Microsoft

I experienced the following error while running sudo mount -t cifs //xx.xx.x.xx/shares /xxx -o guest in Windows Subsystem for Linux. mount error: cifs filesystem not supported by the system mount ...
  • 149
3 votes
2 answers
10k views

"modprobe fuse" on WSL?

Trying to use veracrypt (console) in WSL. I make a volume, seems to work OK... but when I try to mount it: Done: 100.000% Speed: 5.0 MiB/s Left: 0 s The VeraCrypt volume has been successfully ...
  • 1,072
3 votes
3 answers
5k views

Kali Linux on WSL break after upgrade

so my problem is as follows. I install Kali Linux from the wsl store with $wsl --install -d kali-linux. Following has been installed PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/...
  • 33
2 votes
1 answer
2k views

SSH In Windows 10 Bash(Ubuntu)

I'm trying to turn my Windows 10 desktop into a secure ssh server. sshd is running but I can't get any of my other computers to connect to it. I'm using passkey authentication with ed25519. I'm using ...
  • 165
2 votes
2 answers
2k views

WSL Run Service at Start

I'm honestly not sure if this is an issue with WSL or I'm just doing something wrong for Ubuntu in general, but I cannot get the cron service to run at start on my WSL system. It starts just fine ...
  • 35.1k
1 vote
3 answers
317 views

Linux Subsystem for Windows [closed]

There is Windows subsytem for Linux and... Is there Linux subsystem for Windows? That allows you to access Windows terminal on Linux like on Windows subsytem for Linux. The Windows Subsystem for Linux ...
1 vote
1 answer
1k views

Installing `kali-win-kex` on WSL2 fails

I tried installing kali-win-kex by following the official guide. $ sudo apt install kali-win-kex -y dpkg: error processing archive /var/cache/apt/archives/kali-win-kex_2.7_amd64.deb (--unpack):...
  • 21
1 vote
3 answers
7k views

can't launch kex on wsl2 : error 10061

I recently had to disable-reenable my WSL2 on windows (because i needed to launch a VM) and after restarting, it seems like my kex stopped working. When I simply type "kex", I get the ...
  • 23
1 vote
2 answers
14k views

run a graphical web browser on windows subsystem for linux?

How to Geek says that Windows 10 will only give CLI access to Linux. Is there possibly any way to run, specifically, Firefox from this bash shell?
  • 1,810
0 votes
1 answer
761 views

Specify a home directory path for a user in /etc/passwd with spaces in it?

I have a path I want to use as a home directory in WSL, but it's also path that has spaces in it. I've tried escaping the spaces with slashes, and I've tried using single and double quotes with just ...
  • 4,405
0 votes
1 answer
3k views

Can't access SSH server running in WSL [closed]

Basically I have enabled a SSH server in Kali WSL Linux. The problem is that when I do ssh root@192.168.0.225 from Windows and provide the password, it works just fine and the connection succeeds. ...
  • 29
0 votes
3 answers
2k views

ifconfig netmask ip alternative

What is the ifconfig netmask command ip alternative for this command: ifconfig eth0 netmask 255.255.240.0 I found something like this, but honestly I'm not sure, since the address is missing: ip addr ...
-2 votes
1 answer
2k views

Installing `kali-win-kex` on WSL2 fails

I tried installing Kali-Win-Kex by following the official guide. $ sudo apt install kali-win-kex -y dpkg: error processing archive /var/cache/apt/archives/kali-win-kex_2.7_amd64.deb (--unpack):...
-3 votes
1 answer
358 views

If Microsoft is pushing systemd so hard, then why do I restart my services in Ubuntu 18.04 LTS WSL using System V? [closed]

I had to restart my apache2 server in WSL yesterday, and I was surprised that I couldn't use systemctl like I do on Ubuntu; instead having to revert to sudo /etc/init.d/apache2 restart. But I thought ...
  • 4,405