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
1 vote
0 answers
33 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 The partition ...
user avatar
1 vote
1 answer
18 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 ...
user avatar
4 votes
0 answers
85 views

Ubuntu ls doesn't show all the files, but when I "ls filename", it shows up?

I am using PHP 7.3 to move some files around, in a larger app. The PHP 7 is running on Ubuntu 20.04.4 in a wsl2 container in Windows 10. On reading through other questions, it seems this is probably ...
user avatar
  • 41
0 votes
0 answers
24 views

How to burn a distro iso on Windows? [closed]

I use Windows 10 home and I consider to migrate to Ubuntu. I took an empty disk-on-key (DoK) and putted inside it a Ubuntu 22.04 iso file. My Dell Latitude 5580 laptop is "modern" in the ...
user avatar
3 votes
1 answer
214 views

Portable Linux emulator on Windows?

In a Windows computer where you don't have permission to install software, does Windows Linux subsystem, cygwin or any complete or partial Linux shell, utility or API emulator have portable versions? ...
user avatar
  • 89.7k
0 votes
1 answer
70 views

Run Wireguard as a client on Win10 with WSL2

When attempting to run a Wireguard client in a Docker container or on WSL2 itself you will run into issues such as: 2022-04-27 17:15:45,035 DEBG 'start-script' stderr output: [#] ip -4 rule add table ...
user avatar
0 votes
1 answer
152 views

usbip: error: Attach Request for <busid> failed - Device busy (exported)

I have attached and detached my USB webcam to/from Ubuntu 20.04 in WSL2 with usbipd-win using the instructions in Connect USB Devices. From PowerShell: usbipd wsl attach --busid 2-4 Once I'm done, I ...
user avatar
2 votes
1 answer
59 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" (...
user avatar
  • 325
1 vote
0 answers
53 views

why when i run filezilla i get this Error: Unable to initialize GTK+, is DISPLAY set properly? in Ubuntu terminal on windows 10

Am trying to upload some files from desktop into my digitalocean droplet account, but in other to transfer file i needed to install filezilla to make the file transfer, After installed the app on my ...
user avatar
  • 111
0 votes
1 answer
45 views

How to run bash on Cryptomator volume on WSL

My PC's OS is Windows 10, where I am hosting a Cryptomator volume on E: . I want to run bash commands on the contents of that mounted volume, thus, I am trying to access its contents with WSL. It ...
user avatar
  • 103
2 votes
2 answers
54 views

Environment variable with command substitution isn't getting set correctly

I'm using Windows 10 WSL (Ubuntu 20.04) and trying to get a command working but having trouble with setting an environment variable. I need to run: export ADB_SERVER_SOCKET=tcp:<variable ip here>...
user avatar
1 vote
0 answers
60 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 ...
user avatar
0 votes
0 answers
43 views

How can I speed up my lftp uploads when I'm mirroring?

Here's my script: #! /usr/bin/bash set -xe local_path="${1-./}" lftp -u user,pass host << EOF set ftp:ssl-allow yes set ftp:ssl-protect-data yes set ftp:ssl-protect-list yes set ftp:...
user avatar
4 votes
0 answers
67 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 ...
user avatar
  • 749
0 votes
1 answer
47 views

New to WSL, trying to install Debian with GUI

I am a Linux old-timer, less familiar with Windows, although I've been using Windows since it was MS-DOS. I just bought a new Windows 11 computer and am trying to install Debian in the WSL with GUI ...
user avatar
0 votes
0 answers
34 views

WSL sudo apt trying to use windows file paths

I have a few day old install of WSL using Ubuntu 20.04.4 LTS (Focal Fossa). I am trying to fix some package issues I was experiencing (specifically gradle) and I'm not finding that sudo apt --fix-...
user avatar
  • 101
-3 votes
1 answer
77 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 ...
user avatar
  • 4,039
1 vote
1 answer
45 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 ...
user avatar
  • 19
-5 votes
1 answer
55 views

'/mnt/c$: No such file or directory' when running Kali with WSL [closed]

I'm running /mnt/c$ curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall ...
user avatar
0 votes
1 answer
48 views

WSL make multiple copies of a file

I want to make multiple copies of a file. I found a readily available solution and I tried. Surprisingly it did not work. Code: for i in {1,2,3,4}; do cp MainFile.asy 'CopyFile_$i.asy'; done Present ...
user avatar
  • 105
0 votes
1 answer
29 views

In WSL console, how do you read and write to the clipboard?

How do you access the (windows) clipboard in WSL so that you can pipe it into commands, use it as stdin, etc.? There's more than enough answers about how to write to the clipboard. But I couldn't find ...
user avatar
-4 votes
2 answers
339 views

I'm unable to install Firefox in WSL [closed]

$ sudo apt install firefox Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package firefox
user avatar
0 votes
1 answer
29 views

Open Suse only root can use service

Noob Question I am using OpenSuse Tumbleweed in WSL Windows 11. I am unable to use service to start or check the status of applications as a regular user. Only Root. I get the following error: service:...
user avatar
0 votes
1 answer
79 views

WSL Linux doesn't known directories on other partition exist - Help

Title explains it, I got a new installation of Linux on WSL and it doesn't see existing directories on my laptop. I'm not sure what the issue is, I've tried what was on the net to assess the issue to ...
user avatar
0 votes
0 answers
27 views

Gnome in Ubuntu_20.04-WSL on Windows 10 using VcXrsv - Errors when launching XLaunch-Window

I am trying to get Gnome3 running from Ubuntu_20.04-WSL on Windows 10 using VcXrsv. What I did so far: I installed Ubuntu 20.04 from Microsoft Store (both with updating / upgrading) and then Gnome I ...
user avatar
  • 111
0 votes
2 answers
82 views

Why some WSL2 installations allow elf executables, win executables, or both?

I'm trying to figure out what is going on. I observe the following. exe binary compiled on Windows 10 elf binary compiled on CentOS7 with musl User 1 WSL2: elf binary runs, exe binary runs (updated) ...
user avatar
  • 111
2 votes
2 answers
213 views

can't delete file from Ubuntu subsystem on Windows 10 Enterprise

This probably is the wrong forum, but I'll give it a go anyway. I'm running the ubuntu subsystem in Windows 10 Enterprise: root@hostname:/directory/stuff# cat /etc/*release DISTRIB_ID=Ubuntu ...
user avatar
-1 votes
1 answer
31 views

How best to start a background resource intensive task in bash?

I'm running some long running tasks (15 minutes up to a day) in Ubuntu 18.04 under WSL2, itself under Win11. A couple of times my terminal has stopped responding and never came back, but I could see ...
user avatar
0 votes
0 answers
153 views

kali Linux WSL 2 sudo update command is not working

hello, i'm total newbie in linux space, place help me how to update the kali command they used in youtube video is seem like not working for me. what i'm doing wrong pls tell me... i even put s in ...
user avatar
  • 1
1 vote
2 answers
88 views

Arch linux WSL AUR

How can I get AUR builds working in WSL. Essentially I always get Permission denied (os error 13) as I am not running as root But you can't use AUR as root user so catch 22. Example transactions ...
user avatar
  • 189
1 vote
0 answers
26 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 ...
user avatar
0 votes
0 answers
142 views

WSL2 + SSL VPN Problem with Routes

maybe someone had the same problem and could help me: I have a Windows Client with WSL2 Ubuntu. The WSL Host Adapter and the WSL2 Ubuntu Client got everytime a new Address as soon as the Windows Host ...
user avatar
  • 15
0 votes
0 answers
117 views

SSH connection timed out when using a different wifi connection

I am trying to remote access my office pc via ssh but I have met with a connection timed out error. The strange thing is that I encounter the connection timed out when using my home wifi but am able ...
user avatar
0 votes
1 answer
21 views

Define a variable based on the result of the execution of a command in make file

I'm trying to use a makefile to bundle a combination of commands that should be run one after the other. Part of the make file looks like the following; .PHONY: dispersion all: dispersion -include ...
user avatar
  • 1
1 vote
1 answer
209 views

LxQt on WSLg doesn't fit the full screen

I installed LxQt on WSL2 under Windows 11. I have several questions: the LxQt screen doesn't fit the whole monitor screen, as shown in the figure, how could customize it? the toolbar panel is hidden,...
user avatar
0 votes
0 answers
28 views

Crontab echo job sent to a file doesn't work [duplicate]

I have the crontab job here to echo every minute: * * * * * /bin/echo "hello world!" >> /home/mrpennymiser/echos.txt I am using Kali Linux WSL for Windows. I am using full paths but ...
user avatar
0 votes
0 answers
135 views

How to mount a unix directory on windows using WSL or powershell

I have this directory on Unix machine which I am trying to mount on my windows machine using WSL. mkdir ldp sudo mount //IPADDRESS/var/log/Log_Files -o username=root,password='password',domain=rdc-...
user avatar
0 votes
1 answer
784 views

Chromium not opening in WSL2

I am a Linux noob using the ubuntu 20.04 distro. I use Linux via WSL2 and my OS is Windows 10. I managed to install chromium but the app simply fails to open without a warning, when I try to open it ...
user avatar
0 votes
1 answer
50 views

How to create mkfs for LFS? [closed]

I am trying to run following command mkfs -v -t ext4 /dev/sda1 to create file system but I got an output /dev/sda1 is apparently in use by the system; will not make a filesystem here!. How can I ...
user avatar
1 vote
2 answers
119 views

Where is my shiny server

I am new to linux. I try to deploy a shiny server locally on my windows machine with ubuntu WSL. I successfully installed ubuntu WSL on my windows machine and I can start ubuntu. I come here so far: ...
user avatar
  • 113
2 votes
1 answer
139 views

Run existing OS from Dualboot as WSL

I have an existing Dualboot-Setup with Windows 11 and Arch Linux, managed by grub. Is it possible to use my Arch System as WSL in Windows? $ lsblk -f NAME FSTYPE FSVER LABEL UUID ...
user avatar
  • 454
2 votes
2 answers
156 views

Are the binaries in Windows Subsystem for Linux the same as when booting a physical Linux PC?

If we have Windows 10 or 11 and use WSL (Windows Subsystem for Linux) with a distribution such as Ubuntu, would we be using the same binaries as if we created a bootable Linux PC? For instance, when ...
user avatar
  • 2,627
1 vote
1 answer
208 views

WSL2 with Ubuntu and VCXSRV: xeyes and git citool working but can not start ubuntu-desktop

xeyes and git citool are working but I can not start ubuntu-desktop. Tried startx or sudo startx but error message reads: no screens found(EE) Is is possible at all to make the ubuntu-desktop run ...
user avatar
3 votes
3 answers
1k 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/...
user avatar
  • 33
0 votes
0 answers
107 views

"Access is denied" running wslview in Kali under WSL2

When I run the command wslview test.txt to open the file test.txt using Kali under WSL, I get the following error: Start : Access is denied At line:1 char:128 + ... Encoding]::GetEncoding(437); Start &...
user avatar
0 votes
0 answers
406 views

WSL2: Why am I unable to sudo?

[username@MACHINE bin]$ sudo sudo: Files/Microsoft: command not found I can sudo just fine as root. I thought this might be due to spaces introduced into PATH by WSL, but for both the root and non-...
user avatar
  • 101
2 votes
2 answers
2k views

sudo not working on Kali running under WSL

I've installed WSL 2 and used Kali (previously had version 1.0). In both versions I have an issue - I cannot use sudo. As soon as I execute it, I get: Sorry, try again. Sorry, try again. sudo: 3 ...
user avatar
1 vote
1 answer
81 views

WSL: Getting broken vertical pipe (U+00A6) instead of pipe (U+007C) character in shell

When writing a command with pipe character for output/input redirect I get the broken-vertical-line (or broken-verical-pipe) character instead of the solid-vertical-line character (the typical pipe). ...
user avatar
1 vote
0 answers
42 views

Can't move or rename folder in git repo, permission denied, despite being 'drwxrwxrwx', and bareword [duplicate]

I'm using Windows Subsystem for Linux 1 (WSL1), I want to rename the folder my code downloads files to from 'resources' to 'downloads' so I can group my files that do the downloading under a '...
user avatar
0 votes
0 answers
41 views

wsl ubuntu windows terminal git

I use windows 10 and I just installed the wsl terminal, I used ubuntu distro before. And I use openwrt firmware on my router, I make my own compilation build, usually everything works perfectly but I ...
user avatar
  • 65

1
2 3 4 5
7