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
0
votes
1answer
33 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
0answers
36 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' ... ...
0
votes
0answers
25 views

How to concatenate values of one variable and other string without missing information? Is the a bug at ubuntu wsl?

What is my linux? I use ubuntu on WINDOWS 10 PRO - windows subsystem for linux. Context the problem: I have two files. The first file is the name 'paths-linux.sh'. Your content is: CAMINHO_UM="/...
-1
votes
1answer
53 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 ...
1
vote
1answer
101 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 ...
0
votes
0answers
13 views

Open display linux with VcXsrv Windows X Server in windows

I've have been trouble with the instalation of my linux subsystem on windowns 10. I prepared my wsl2 environment and downloaded ubuntu 20.04 and VcXsrv Windows X Server in windows, but when I tried ...
0
votes
0answers
24 views

how to allow wsl2 access to network interface

Please is there a way i can use ettercap on my WiFi (without external adapter), i was thinking maybe if it is possible creating a vlan that will just act as a connection between my real adapter and ...
0
votes
1answer
18 views

Copying files from Ubuntu Server to WSL Bash Directory

Can't find any other solutions hence this question. I am running Ubuntu Server (20) on my Raspberry Pi which I SSH'd into via WSL Bash on Windows 10. How do I copy a text file from Raspberry Pi to my ...
3
votes
6answers
235 views

How to run windows executables from terminal without the explicitly specifying the .exe extension?

As the title says most of the question, how can we run windows executables without specifying the explicit .exe suffix at the end. For example reducing the call like explorer.exe . to explorer ., or ...
0
votes
2answers
48 views

add single binary to PATH

Maybe this is a WSL question, in which case I'm not sure where to ask. I have a single binary that I want to add to path ~/.scry/bin/scry. So I went to ~/.bashrc and added export PATH="$HOME/....
0
votes
1answer
53 views

How to use Airodump in kali wsl

i am trying to use this tutorial, but i am stuck in step 1(airmon-ng start wlan0) which returns Requested device "wlan0" does not exist. Run /usr/sbin/airmon-ng without any arguments to see ...
1
vote
0answers
23 views

kali.exe returns WslRegisterDistribution failed with error: 0x80070005

Sorry about the long explanation, i just want to know where i went wrong i wanted to download kali on windows but microsoft store had some major bugs and after so many times of running different ...
2
votes
1answer
20 views

Bash in Ubuntu WSL requires restart to initialize pyenv

I have a small but very strange issue with pyenv in Ubuntu 20.04 on WSL. When I start a shell then try to activate a virtual environment, I get the same issue as described here: https://stackoverflow....
0
votes
1answer
37 views

How to install apt-get or yum for cmder?

I have cmder installed, because I want to use the unix command line on a windows machine. I would like to install apt-get so that I can install more things using cmder. I could also use yum Currently ...
0
votes
0answers
15 views

ssh_exhance_identification, with no log information

So I am getting the error ssh_exchange_identification: read: Connection reset by peer When trying to ssh into my WSL 2 Distribution (Ubuntu 16.04). I have made sure that all the firewalls/routing is ...
0
votes
1answer
88 views

Error! Your kernel headers for kernel 5.8.0-rc3-microsoft-standard cannot be found while trying to install usb_network_gate on WSL2

I'm trying to install usb network gate on ubuntu 20.04 on WSL2 with this kernel version installed on : root@DESKTOP-N9UN2H3:~/Desktop# uname -a Linux DESKTOP-N9UN2H3 5.8.0-rc3-microsoft-standard #2 ...
0
votes
1answer
89 views

Ubuntu20.04 + WLS1, APT broken after downgrading libc

I'm using Ubuntu20.04+WSL1. I noticed that the sleep command doesn't work. After searching for the error, I found this issue https://github.com/microsoft/WSL/issues/4898 Then following one of the ...
2
votes
1answer
16 views

How to introduce a new header to a CSV file based on condition using gawk

I have a csv file from I wish to extract only column number 7 and 11. Depending on the value of column 7 which has either value OK or KO I wish to insert a column next to it called value where the ...
0
votes
1answer
983 views

Not able to start a new kex session in kali linux for wsl2

When I try to run kex in kali-linux for WSL2, following error message is thrown. There's no missing dependencies. I have tried all solutions listed in this thread, but none of it works for me. Any ...
0
votes
1answer
1k views

Errors were encountered while processing libc6:amd64

I installed WSL Kali Linux, then I typed apt-get update so when I type apt-get dist-upgrade for upgrade then I saw this $ sudo apt-get dist-upgrade Reading package lists... Done Building dependency ...
0
votes
1answer
63 views

How to fix it wsl ubuntu on widows 10? Operation not permitted

I am using a WSL, ubuntu on windows 10 and I want to set permissions like below but I am receiving an error. Why? How do I fix it? ubuntu-user@LAPTOP:~$ chmod 400 .ssh/MyKey.pem chmod: changing ...
2
votes
1answer
103 views

How to iterate URLs to the curl command?

I'm new to web scraping (and programming in general) and I'm using both python and bash scripts to get the information I need. I'm running with WSL( windows subsystem for Linux) and for some reason, ...
2
votes
7answers
7k 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 ...
-1
votes
3answers
201 views

What is the default shell in the Windows Subsystem for Linux (WSL)?

I don't use Windows and I don't have a copy available. I'm wanting to know what is the default shell for WSL2? Does it ship with sh, Bash, or ZSH? Or, does it use PowerShell -- which I know runs on ...
0
votes
1answer
57 views

Can a normal Linux kernel be replaced by the WSL2 kernel?

I was trying my hand at upgrading/changing the kernel manually. I have tried many kernels and wanna know if the WSL2 kernel can be installed in a normal distro before I mess up my installation.
-3
votes
1answer
68 views

Should i install Kali linux OS as a virtual in a vitual machine, use a live USB stick or should I Dual boot my PC [closed]

Recently, I have started performing penetration test lessons. My PC(HP PROBOOK) has a pre-installed windows 10 enterprise. A friend advised me to use Kali Linux. However, I need to run both OS in my ...
0
votes
0answers
42 views

Trying to retrieve lost data from 1990s disk drive

I am trying to obtain text data from the disk drive of a mid-90s Packard Bell Multimedia which ran Windows 95. I’ve been using a cheap adapter to transfer data via USB to my current ASUS laptop, which ...
0
votes
2answers
139 views

Using X11 on OpenSUSE with WSL2

I installed WSL2 on my computer, and with it I grabbed OpenSUSE so I could get some experience with a distro besides Ubuntu. I sideloaded OpenSUSE 15.1, and it installed fine and loads into the ...
1
vote
0answers
25 views

Thin grey strip inside border when using WSL + GUI App + Vcxsrv

I've been using emacs inside WSL and vcxsrv to display the interface. One small issue I found with this approach is that there's a very thin grey area between the border and emacs's text area. Please ...
1
vote
1answer
35 views

create file name based on CSV column data using gawk

I have a very messed up CSV file where the header looks the following: maindata.csv time;area;measurement1;measurement2;measurement3;.....measurement12 I was able to split the single large file based ...
1
vote
1answer
152 views

Error starting the fish_config web ui in WSL

I want to customize my fish shell using the Web UI mode, but when running fish_config colors, the following error is shown. surface@Surface ~> fish_config starting-colors Web config started at file:...
0
votes
1answer
28 views

Need help with windows WSL

I'm completely new to this windows WSL for Linux so please don't mind the silly questions. I'm using WSL and I'm not able to use the Wi-Fi card of my laptop through Ubuntu or Kali terminal. How can I ...
1
vote
2answers
1k 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
vote
0answers
121 views

installing WSL Ubuntu: Add-AppxPackage fails, “The Visual Elements extension failed while processing the Notification element”

I want to install WSL 1 in my Win 10 OS, and have followed the instructions at https://docs.microsoft.com/en-us/windows/wsl/install-win10 from PowerShell as Admin: dism.exe ... - no problem ...
0
votes
0answers
13 views

How can I edit vnc viewer on linux to stop the infinite desktops that appear after i connect to my windows desktop?

When I connect to my MS-windows desktop that runs ultravnc server using vncviewer from Gnu/Linux (kali), when I authenticate and connect I see too many images or instances of vncviewer. I tried tight ...
0
votes
1answer
65 views

Why does this perl script give different results from git-for-windows vs. windows subsystem for linux?

I'm getting different results when executing the same perl script via git-for-windows vs. via Windows Scripting Host (from a VBA module). The perl command is: perl -pi -e 's/\bxlYes\b([^(\n|\r|\x27]*)/...
0
votes
1answer
137 views

Cannot cross-compile SDL2 with Mingw-w64 on Ubuntu

SDL downloads I am on Ubuntu using WSL2 and I want to create an executable that will run on Windows. Currently I can build executables for linux just fine. I downloaded the SDL MinGw windows ...
0
votes
1answer
73 views

WSL 2 (Debian) main user is not a sudoer: how to reset it?

For some reason my main and only user in Debian (Windows Subsystem For Linux v2) is not a sudoer any more. sudo apt-get install <whatever> myuser is not in the sudoers file I know I can add ...
0
votes
0answers
51 views

Unable to move or rename directories on WSL

I work on Windows, with WSL Ubuntu install. I followed these instructions to set up unix file permissions. All is well, except I seem to be unable to move directories. $ mkdir foo $ mv foo bar # no ...
0
votes
1answer
29 views

sort seems to crash without indication

Correct me if I'm wrong, but I think this applies more to Unix generally than to Apache Jena or to the Windows Subsystem for Linux - after all, it's the sort utility that seems to vanish without a log....
0
votes
1answer
524 views

how to update Linux Kernel on “Ubuntu LTS 20.04” Windows Subsystem for Linux 2

is it possible to update Linux kernel on WSL2 ukuu isn't possible and dpkg --install *.deb gives me an error (Reading database ... 68035 files and directories currently installed.) Preparing to ...
4
votes
3answers
2k 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 ...
0
votes
0answers
23 views

Startup shell doen't work on Unbuntu WS2(Windows)

I recently used Ubuntu18 running on WSL2 windows. I am going to write a shell to start all services rapitally, But the error always present: ERROR: Cannot connect to the Docker daemon at unix:///var/...
0
votes
0answers
91 views

How to disable gssapi-with-mic for passwordless ssh?

I'm trying to set-up passwordless ssh into localhost. Following is the output of ssh -v localhost. OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017 debug1: Reading configuration data /...
0
votes
0answers
18 views

How Do I Create a Windows Services for Gnu shell and Execute a Command on Opening without it Closing after completion?

I was following along with this blog here - https://devblogs.microsoft.com/commandline/a-guide-to-invoking-wsl/ - and it seems to get at what I'm trying to do ALMOST. Specifically, I'd like to create ...
-3
votes
1answer
261 views

Missing man pages under Debian WSL

I have installed the WSL version of Debian and changed the default shell to zsh. Now I cant find the man pages. the ZSH shell doesn't recognize any command related to the man pages. I've tried man-...
0
votes
1answer
112 views

How do I remove newline from the last argument in bash?

I'm working on wsl bash and I have the following function defined in my ~/.bashrc file: function clip { /mnt/c/Windows/System32/clip.exe "${@%\n}"; } However this does not remove the trailing \n ...
0
votes
0answers
85 views

How do I make my pc speaker beep in WSL?

How can I make ring the bell from command line using WSL (2)? I tried: beep echo -ne '\007' echo -e "\a" I have set bellstyle none in /etc/inputrc. Using Ubuntu 18.04 image.
0
votes
0answers
41 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
0answers
18 views

Mosquitto MQTT on ubuntu for windows

I'm trying to setup a mosquitto MQTT server on Windows using bash from Ubuntu on Windows because the code I'm try to run is that of Linux, but I've been getting this error. I've surfed through the ...