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.
122
questions with no upvoted or accepted answers
4
votes
1
answer
656
views
execvp: /bin/bash: Argument list too long on Ubuntu 20.04 but OK on Ubuntu 18.04 (all using Windows 10 subsysem)
I bought a new windows 10 PC and installed WSL 2 using (as admin)
wsl --install
This installed WSL 2 with Ubuntu 20.04 LTS. I then copied my files from the old PC which was using same windows 10 pro ...
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 ...
3
votes
1
answer
4k
views
Windows Subsystem Kali Linux 13: Permission denied
I have installed Kali linux version Linux DESKTOP-0667P5P 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 GNU/Linux as a subsystem on my machine that is running Windows 10, I'...
2
votes
0
answers
118
views
Tmux display problems on WSL: panes bleed into each other on newlines
I'm trying to use tmux version 3.1c on my Windows Subsystem for Linux version 2 (WSL2) based Debian 11 container running in Docker (version 20.10.12). I build a new tmux session, but when I attach to ...
2
votes
0
answers
74
views
WSL2 Ubuntu won't let me grep recursively?
I can't seem to recursively search with grep for some reason in WSL2.
me@SOMEHOST:~$ grep -r -e "DATASTORE_BAKs" --exclude=SOMEHOST-2\.viminfo *
grep: SOMEHOST-2.viminfo: invalid context ...
2
votes
0
answers
299
views
Why is my user manager not starting up correctly?
I am running Ubuntu 22.04 on WSL2 with systemd support enabled. My configuration worked fine until two days ago. I use TMUX and its plugins tmux-resurrect and tmux-continuum, the later one already ...
2
votes
0
answers
271
views
WSL service logging like journald
I am running a WSL instance on my machine which starts a bunch of services like atd. What I would like to have is to have an ability to lookup the logs of a specific service like I would do using ...
2
votes
1
answer
198
views
How to avoid Bash printf error when printing certain hexa values: Input/output error
I'm using the command printf of bash on Ubuntu under WSL.
I'm trying to use this documented syntax
\xHH byte with hexadecimal value HH (1 to 2 digits)
This works for printf "\x0A" (...
2
votes
0
answers
1k
views
When I run FileZilla in Ubuntu terminal on Windows 10 I get this Error: Unable to initialize GTK+, is DISPLAY set properly?
I am trying to upload some files from my desktop to my DigitalOcean droplet account, but in order to transfer the files I needed to install FileZilla to make the file transfer. After I installed the ...
2
votes
0
answers
466
views
WSL2 not recognizing commands
Using WSL2 on Windows 10, the Linux shell does not recognize commands which are supposed to function. Also, Docker Desktop fails to launch, saying WSL integration stopped and exited with code 1. When ...
2
votes
0
answers
784
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 ...
2
votes
1
answer
614
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
2
answers
675
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....
2
votes
0
answers
239
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 ...
2
votes
0
answers
2k
views
Can't setup isc-dhcp-server in Windows 10 subsytem running Debian
I am trying to setup a DHCP server in Windows subsystem for Linux running Debian. I have followed this guide as I am still quite new to the Linux scene. Although I did change some values in the dhcpd....
2
votes
0
answers
383
views
Why is the GNU find command telling me that any valid path is an "invalid argument"?
This is a possible duplicate of Find not working, but since I am a new member I thought I'd ask a new question instead of commenting on that question's answer. Please forgive me and LMK if I should do ...
2
votes
0
answers
923
views
Using cp to copy ~/.config to an external drive but getting "cannot create regular file...File exists" errors
The command is simple enough, executed while in a subdirectory of /mnt/e, an external drive: cp -r ~/.config .. Every time, every time I run it, the same set of files refuse to copy properly:
cp: ...
2
votes
0
answers
226
views
Script won't execute
I'm having this issue on Bash for Windows, but so far as I know it works by essentially making a Ubuntu VM.
I have a program which I'm trying to run, as one does with programs. It's called minion. ...
2
votes
0
answers
1k
views
arm-linux-androideabi-gcc is unable to create an executable file on Windows 10
I am trying to configure ffmpeg for android on windows 10 through bash Ubuntu terminal. I am follow this tutorial But getting error.
Error is
C:/Users/BIP042.BIPADBBSR/AppData/Local/Android/Sdk/ndk-...
1
vote
1
answer
534
views
How do I install custom fonts like xfonts on WSL/WSLg for use in GUI apps?
I try to use GUI Apps on Windows 11 via WSL and WSLg. Unfortunately my GUI app needs some custom fonts (specifically xfonts-100dpi and xfonts-75dpi). Since WSLg does not include those fonts, my GUI ...
1
vote
0
answers
106
views
-bash: .: filename argument required and .: usage: . filename [arguments] whenever opening new shell window (Kali Linux Rolling @ WSL)
Version
Microsoft Windows [Version 10.0.22621.382]
WSL Version
[X] WSL 2
[ ] WSL 1
Kernel Version
5.15.57.1
Distro Version
Kali Linux Rolling
Other Software
No response
Repro Steps
On Windows ...
1
vote
1
answer
1k
views
WSL2: Issue installing new kernel
I will preface this by saying: I don't have a lot of experience in a Linux environment.
I am trying to install ROCm on WSL2 running Ubuntu. I will be using PyTorch for a class and I want to use my GPU ...
1
vote
0
answers
93
views
How to install GEMMA2 (gemma2lib) on GNU Guix over Ubuntu 22.04 running via WSL2?
I'm running Windows subsystem for Linux 2 (Ubuntu 22.04).
I'd like to run GEMMA2 (gemma2lib): in the link it is said:
~/opt/guix/bin/guix package -i python python-toolz -p ~/opt/gemmalib
. ~/opt/...
1
vote
0
answers
184
views
TAB completion not working for mounted partition
I'm used to mount a Windows partition (G) into my Windows Subsystem for Linux (running Ubuntu 20.04) by giving the following commands:
sudo mkdir /mnt/g
sudo mount -t drvfs G: /mnt/g
Unfortunately, ...
1
vote
1
answer
345
views
Finding the 'tools' filesystem mounted on /init in WSL2
I have been using linux for a couple of years now, and thought I'd give WSL2 a try.
Something that surprised me was how I could run Windows PE binaries (*.exe files) 'just so'. A bit of research led ...
1
vote
0
answers
207
views
Why does cat command only read from stdin?
I'm trying to figure out why my cat command refuses to acknowledge the file I provide.
I know that cat ignores filenames when they are absent or a - is provided, but I am not doing either of those ...
1
vote
1
answer
79
views
Videos and Images with proper extension
I recently imported my pictures (and videos) from iPhone to Windows 10. For some strange reason, a lot of the images and videos had their file extensions switched. i.e. 2022_001.mov is actually an ...
1
vote
0
answers
297
views
Lightweight VM For GNU/Linux to Host Windows Similar To Windows Subsystem For Linux
WSL2 is a stripped down VM for GNU/Linux and as such it has a very low overhead (comparatively at least... and when Vmmem RAM usage is under control). I have been wondering if a similar, headless ...
1
vote
0
answers
315
views
How do I change the sudo's invoking user's home directory?
I have two Ubuntu VM's where one is running on VirtualBox (Ubuntu 18.04) and the other is on WSL 1 (Ubuntu 20.04).
#!/bin/bash
dir=~
echo $dir
When I run the above shell script without the sudo, ...
1
vote
0
answers
3k
views
I have a problem with DNS after upgrading from WSL1 to WSL2
I have a DNS issue after updating from WSL1 to WSL2. I can't ping even google.com. The only address that I am able to reach is the loopback address.
Here is what I've tried:
I created the /etc/wsl....
1
vote
0
answers
213
views
tmux ctrl-p now scroll not working
I am using ubuntu in WSL2 and Windows terminal preview, with tmux in daily usage. The ctrl-p key in copy-mode works normally for months, but today after a sudden windows hangs, I restart the Windows ...
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 ...
1
vote
1
answer
988
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 ...
1
vote
1
answer
487
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-...
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 ...
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 ...
1
vote
1
answer
38
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 ...
1
vote
2
answers
1k
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
0
answers
736
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
...
1
vote
0
answers
177
views
Weird '?' characters all over inside vim editor in tmux session
So I am excited to use WSL feature of Windows 10 and I choose Ubuntu distribution.
I installed vim version 8.0 and tmux version 2.6. However to my frustration, when I use vim inside tmux session, all ...
1
vote
0
answers
2k
views
Unable to use X11 Forwarding between Windows (WSL) and Linux
I am having issues with X11 forwarding between a Windows 10 system using WSL and a Ubuntu 19 system. To clarify, I am wanting to connect to the Ubuntu server (LNX) from the Windows 10 system (WIN). ...
1
vote
0
answers
115
views
Utility "dar" tries to read files and directories not specified (using only --include-from-file)
The PC of my colleague died a few days ago, and so I decided it was time for me to setup a "backup strategy". We are on Windows PCs, but with WSL, I get most of the Linux commands as well, so I ...
1
vote
0
answers
93
views
stop ding notification in ubuntu - windows 10 app
I am using Ubuntu Windows 10 app, but when ever I press Tab or miss spell anything ding notification sound is coming, I am trying to find an option to stop it.
1
vote
0
answers
2k
views
SSH Key authentication on WSL always says 'debug2: we did not send a packet, disable method'
/etc/ssh/sshd_config looks like this: pastebin.ubuntu.com link. It's default except I uncommented authorized keys, pubkey auth and listenaddress.
Then I did ssh-copy-id -i ~/.ssh/id_ed25519 user@host,...
1
vote
1
answer
765
views
Fuse not Loaded When Trying to Mount
I'm trying to execute this command in terminal: sudo mount -t cvmfs <repository> /mnt/cvmfs and I keep getting Fuse not loaded returned to me. I'm not quite familiar with what this fuse in ...
1
vote
0
answers
663
views
multi-core CPU usage
I am using the Windows Subsystem for Linux (WSL).
Recently, I've been wanting to get better insight in the CPU usage of processes, but I am getting well confused. I am on a computer with 2 cores and ...
1
vote
0
answers
1k
views
CentOS on WSL--typing too fast?
I am using zsh with WSL/CentOS. I am somewhat of a fast typist, and WSL can be slow. I am facing a weird issue where if I am running a command and begin typing the next command before the first ...
0
votes
1
answer
15
views
WSL2 Ubuntu: How to start ssh-agent and add ssh key automatically on each terminal start up
I'm using WSL2, on Terminal, with Ubuntu installed. I have added the following to my .bashrc:
# Start ssh-agent
# check if ssh-agent is already running
if [ -z "$SSH_AUTH_SOCK" ]; then
#...
0
votes
0
answers
29
views
Recovering deleted data from Debian WSL2 after rm -r ~
I have accidentally deleted all my data from WSL2 using rm -r ~ is there any way I can recover it? Any help would be very appreciated!
0
votes
0
answers
46
views
Cant ping WSL network interface gw from one container through another one acting as router
I'll try to keep simple for the sake of demostrating the issue.
Scenario
Docker compose (2 services) + WSL2 Ubuntu 20.04
Service A wants to act like "Router". Has an internal network & ...