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
0answers
29 views

Start WSL2 with a specific user and distro?

What arguments do I need to pass to WSL2 to start it with a specific distro logging in as a specific user? In Linux you login to the TTY or you have a login screen, but in WSL it just throws you in ...
-1
votes
0answers
37 views

Which is the most similar alternative to WSL in Linux?

Something that completely fascinates me is the ability of having a VM that virtually loads in almost 2 seconds with a fully featured Linux install under another OS, like in this case, Windows. I've ...
0
votes
1answer
22 views

Change Ubuntu Entry Point in WSL2

I would like to change the home directory when launching UBUNTU via Windows Terminal but I don't seem to find where the /home/userdirectory is located in windows in order to change it. In the ...
-1
votes
0answers
35 views

Why after I run a command the symbol “%” is added to the output? [duplicate]

Everytime I run a command in my system the % is added to the output. How can I fix that? I am running an Ubuntu 20.04 on WSL with zsh + powerlevel10k in a Windows Terminal > vim .bash_history vim% &...
-7
votes
1answer
53 views

Problem creating a service on kali

I am using WSL2. When I run the code : systemctl start ssh or any command with systemctl in it, it shows System has not been booted with systemd as init system (PID 1). Can't operate. Failed to ...
0
votes
1answer
42 views

Creating a file with Cron

Just for the sake of practicing I am trying to create a file with Cron every minute in every hour, in every day of the month, in every week, in every day of the week. In WSL (latest) with Bash 4.4.20, ...
1
vote
0answers
26 views

tmux ctrl-p now scroll now 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 ...
0
votes
0answers
33 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
0answers
39 views

Internet is not available in Win-Kex on WSL

I was installed Kali Linux's Win-KeX desktop environment on WSL 2. I followed the steps mention in Kali Documentation. But after install, when I open the Kali Linux GUI, internet was not connected but ...
0
votes
1answer
68 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
1answer
35 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
2answers
2k 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
1answer
528 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 ...
2
votes
2answers
116 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
1answer
60 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
votes
2answers
48 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.
0
votes
0answers
109 views

How to update gdb 9.2 to gdb 10.1

This is my first day with linux, and I downloaded and installed GDB, but noticed that it installed version 9.2, which in not the current version. So i typed something to download GDB version 10.1, ...
1
vote
2answers
49 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 ...
2
votes
2answers
402 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
0answers
46 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
0answers
53 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
1answer
60 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
1answer
77 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
0answers
40 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
1answer
54 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
1answer
307 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
1answer
650 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
1answer
17 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 ...
0
votes
1answer
69 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
1answer
44 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 ...
0
votes
1answer
37 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 ...
1
vote
0answers
126 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
1answer
93 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
0answers
116 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... ...
4
votes
1answer
140 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 ...
0
votes
1answer
42 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
0answers
47 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
1answer
615 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
1answer
28 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
votes
3answers
84 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
0answers
212 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
2answers
480 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 '...
0
votes
1answer
905 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
1answer
136 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
1answer
370 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
1answer
78 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
1answer
640 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
1answer
113 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
1answer
104 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
1answer
217 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 ...

1
2 3 4 5