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.
362
questions
0
votes
0
answers
699
views
I can't connect to xRDP by enter 127.0.0.1, but I can connect to it by enter "localhost"
I was installed GUI of Kali Linux on WSL. Now when I tried connect it through Remote Desktop Connection, I can’t connect to it by type 127.0.0.1:3390, but I can connect by type localhost:3390. 127.0.0....
0
votes
1
answer
348
views
What exactly these tr commnads do?
I am rewriting some commands that were run using WSL on a Windows machine and need to accomplish the same thing in Python. I am having a really hard time figuring out what exactly these commands are ...
1
vote
1
answer
132
views
Interactive Fortran Program
I have an old fortran executable foo.exe that requires interactive input.
If I call foo.exe from Cywin I am prompted for the interactive input and the program works fine.
If I call foo.exe from WSL I ...
11
votes
2
answers
3k
views
/dev/random EXTREMELY slow in Ubuntu for Windows 10 (WSL)
I am using Ubuntu 20.04 for Windows 10 (WSL2) on a Haswell laptop and I am getting about 0.6 bytes per second. As in 6 bytes total after 10 seconds of waiting. This is unacceptable. What is the ...
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 ...
3
votes
3
answers
2k
views
How to start a service in a WSL-based Fedora?
I have a Fedora 33 under Windows Subsystem for Linux 2.
I want to run sshd. For that I tried
$ sudo systemctl start sshd
but I got the error message
System has not been booted with systemd as init ...
1
vote
1
answer
294
views
Installing Couchbase on Ubuntu 18.04 WSL 2
I'm trying to install couchbase-server-community on my Ubuntu 18.04 WSL 2 using the basic instructions from the Couchbase official website.
When running sudo apt install couchbase-server-community, I ...
1
vote
2
answers
738
views
WSL equivalent for Linux
It was a mere wsl command to import a Fedora cloud image to my Windows 10.
What is the equivalent of this when I use Linux as the base OS? VirtualBox is more difficult.
1
vote
2
answers
312
views
Kali Linux on Windows 10 WSL
I am running Kali Linux for penetration testing on my websites and apis.
I am an asp.net developer. I am running Windows 10 with the Windows Subsystem for Linux ("WSL") installed and I have ...
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 ...
0
votes
0
answers
858
views
GPU acceleration on WSL2
I'm running a cinnamon-session on Ubuntu on Windows Subsystem for Linux using VcXsrv, but I'm not able to get it to use my graphics card. (My Windows and Linux are running on the same computer.)
When ...
0
votes
0
answers
1k
views
How to set correct permissions for .pem file under Ubuntu on WSL?
I'm running Ubuntu 20.04 LTS under WSL and would like to use an existing .pem file to connect via ssh to a remote system using Windows Terminal. Initially, the access rights for the file weren't ...
1
vote
1
answer
990
views
Why doesn't /var/run/libvirt exist?
I'm trying to use a tool called SecGen that creates a virtual machine with a random vulnerability for hacking. I'm not using the newer repo because I've been having unrelated issues that I won't state ...
0
votes
1
answer
414
views
WSL2 GUI Apps without X Server
This post indicated back in September that WSL2 would soon support GUI apps without needing a third-party xserver.
However, I've not been able to find any more up-to-date references to this or whether ...
1
vote
1
answer
488
views
set shadowsocks proxy on wsl2
I have followed these two links to set up apt-get proxy. https://github.com/microsoft/WSL/issues/6143 and https://askubuntu.com/questions/7470/how-to-run-sudo-apt-get-update-through-proxy-in-...
-2
votes
1
answer
936
views
Cannot set permissions to 600 on SSH key file [closed]
I tried to delete all permissions on my private key file in order to make only me the owner have access to it but it brought this error
chmod: prac1: new permissions are ----w--w-, not ---------
...
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):...
-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):...
0
votes
1
answer
37
views
Dock/Taskbar Shortcuts to switch between OS
I'd like to try to figure out a way to create a single click icon to go on my Pop OS dock and Windows 10 taskbar that, when clicked, immediately restarts into the opposite OS. I'm trying to slim down ...
1
vote
1
answer
518
views
Moving file system from WSL1 to WSL2
I just installed WSL2 on my Windows 10 computer running Ubuntu 20.04. I already have WSL1 with Ubuntu 18.04 with a plethora of files and functions that I'd now like to use with my system in WSL2. I ...
1
vote
1
answer
398
views
Unexpected access rights of a file
I'm using linux as a subsystem in windows .
I do have a problem when creating a file via bash terminal .
If I run the command touch foo.txt then ls -l foo.txt. All the access rights will be activated ...
1
vote
1
answer
408
views
How can I use WSL Ubuntu without be logged?
I have been experimenting with WSL Ubuntu terminal and I notice that w and who commands don't display any user, apparently I'm not logged but if I assure typing whoami and id actually display my user ...
3
votes
0
answers
2k
views
ssh-keyscan returns no key
Here's an example of what my console looks like. I expect to see a fingerprint somewhere in there, like I do with other hosts. Currently using Ubuntu through Windows Subsystem for Linux. I have a list ...
1
vote
1
answer
374
views
Kali Linux OVA stuck on booting
I'm trying to use Kali Linux OVA (version 2020.4) in the Virtual Box (version 6.1). However, my Kali OVA stuck on the dragon logo for an hour:
I found this post and the solution. However, im using ...
0
votes
0
answers
512
views
I can't install python3-pip?
I'm trying to install pip3 and this happend with me
┌──(root💀DESKTOP-LUEK8HJ)-[/tmp]
└─# apt install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... ...
5
votes
1
answer
785
views
Is it possible to mount associated path to WSL?
I used subst R: . for a faster way to access a folder.
Is it possible to mount the R: "drive" to WSL? When I try running sudo mkdir /mnt/r then sudo mount -t ntfs R: /mnt/r, I am met with ...
1
vote
1
answer
220
views
WSL2 dynamic File Paths based on the username for linux and windows
I've created a bash script and would like to have a dynamic file path for windows and linux part of WSL2.
#!/bin/bash
# Create the workspace
mkdir /mnt/c/Users/FINIX/Documents/Workspace/test/
# Go ...
1
vote
0
answers
97
views
Error running outguess on Linux terminal in windows
So far I was able to get outguess installed on my Ubuntu distribution running under WSL by running
sudo apt-get update
and then
sudo apt-install -y outguess
Both commands worked fine. After, I tried ...
3
votes
1
answer
4k
views
WSL VPN Connection Problem
If possible, I'd like to be able to connect to my university's HPC from within WSL via the windows terminal or VSCode integrated terminal. I've only tried to connect via the windows terminal. I am ...
1
vote
1
answer
229
views
Bright colors do not display in watch --color
Given the following python script to print colored text:
for i in range(30, 100):
print(f'\033[{i}m{i}\033[0m', end=' ')
print()
Running on bash displays bright ...
1
vote
3
answers
313
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 ...
2
votes
0
answers
787
views
BTRFS critical (device sda): corrupt leaf after mounting on Windows with WSL2
My question is as to the correct steps to attempt a fix of my BTRFS system, the possible cause and the place to report the problem.
The Story
I was playing around with the new Windows Insider Build ...
3
votes
2
answers
4k
views
How to run vagrant up in debian wsl in windows terminal
I want to run vagrant up in Debian WSL from a Windows terminal.
I have installed vagrant:
/mnt/c/HS_DEV/Homestead$ vagrant --version
I get
Vagrant 2.2.6
When I run vagrant up, I get:
The executable '...
1
vote
2
answers
13k
views
Are USB Wi-Fi adapters compatible with Kali in WSL2
Will WSL automatically recognize a USB Wi-Fi adapter and will I be able to use it. If not how can I direct it to WSL?
I want to use an external USB wifi adapter because you can't use the same adapter ...
0
votes
1
answer
1k
views
How do I change the Vim font and color scheme for WSL?
I surprisingly couldn't find a proper answer for this online. I've already tried the normal route of creating a .vimrc file but it doesn't work.
I found this blog post and although it's in Korean, it'...
4
votes
1
answer
2k
views
hostnamectl command causes Failed to create bus connection: No such file or directory
I'm following this guide and I'm running into issues.
https://www.tecmint.com/initial-ubuntu-server-setup-guide/
I am trying to create a linux machine in Ubuntu in wsl2 and then rename it using ...
1
vote
1
answer
806
views
rsync not copying files (just folder structure)
I am using rsync on mounted volumes from a NAS box onto my Windows 10 laptop with WSL (Debian). In the Debian shell, I mount the shared drive volumes and run rsync to make sure all of the source ...
0
votes
2
answers
12k
views
WSL 2 Input/Output Error
Background
I was downloading cuda-toolkit-10-1, following the guideline in https://docs.nvidia.com/cuda/wsl-user-guide/index.html, including updating my WSL from version 1 to 2. Near the end of my ...
-1
votes
1
answer
449
views
grep takes forever to execute on Ubuntu for Windows [closed]
I have installed Ubuntu on WSL. What ever grep command I fire takes forever to execute and not return anything. Even if I am in a small folder and I grep something obvious it does not return.
Any info ...
-1
votes
1
answer
432
views
i need to display Number of RX packets and the number of TX packets for the loopback interface [closed]
im new to linux and i need to display Number of RX packets and the number of TX packets for the loopback interface. i have tried using ipcongif but for reason i get an error, im using ubuntu for ...
2
votes
1
answer
615
views
Ubuntu (WSL2) instance can't run GUI Application
I have enabled the feature "Windows Subsystem for Linux" in MS-Windows 10, and installed Ubuntu-20.04. One with WSL1 and one with WSL2. Also, installed the VcXsrv tool, and it's running on ...
2
votes
1
answer
2k
views
python3.9 installation missing files latest kali@win10
└─# cat /etc/issue
Kali GNU/Linux Rolling \n \l
┌──(root💀DESKTOP-NF4O0MG)-[~]
└─# uname -a
Linux DESKTOP-NF4O0MG 4.4.0-19041-Microsoft #488-Microsoft Mon Sep 01 13:43:00 PST 2020 x86_64 GNU/Linux
┌──...
1
vote
1
answer
2k
views
Ubuntu on Windows Powershell "Can't open display"
I'm running Ubuntu 18.04 on Windows Powershell on Windows 10. I installed XMing and PuTTY and configured them so that X11 forwarding is turned on. After all this, and installing x11-apps and running ...
0
votes
1
answer
43
views
Slowness in cygwin
I have cygwin and wsl installed on Windows 10.
Commands in cygwin run much slower than in wsl :
~$ uname; time date
CYGWIN_NT-10.0
Sat Nov 21 12:12:37 2020
real 0m0.825s
user 0m0.203s
sys ...
0
votes
1
answer
2k
views
How to get aarch64 version of musl on Debian for qemu user mode
I'm running Kali Linux on a Windows Subsystem for Linux v1 (WSL). This failed on WSL v2 as well if that means anything. I have an ARM aarch64 binary I want to run. I have qemu user mode and I try ...
0
votes
0
answers
57
views
tmux: small rendered view when opening buffers
I am running WSL-2 on windows with Ubuntu. I am running wsl from Powershell. After some update or another, any tmux session I open in the powershell renders with a very tiny screen size.
tmux a -dt ...
0
votes
1
answer
279
views
Within WSL session, ssh to external Linux box
I am attempting to ssh without password to Linux server from WSL in Win10. I setup private and public keys as usual, copy over public key to Linux server, and add it to authorized keys.
ssh still ...
0
votes
0
answers
274
views
Ubuntu: User 'uname' is not allowed to use [tool]
I found this cool tool called "incron." I think it will be a great productivity booster, but I am having issues getting it to run.
sudo apt-get install incron
...
Adding group `incron'
...
...
1
vote
1
answer
9k
views
how to access wifi network interface in wsl2 an use ettercp to sniff the wifi network
I want to be able to use ettercap on my wlan0 to sniff for packets in my wsl2.This was the tutorial I used to install my WSL.
Don't get me wrong, I can use internet on kali through eth0 but if I scan ...
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 ...