Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
13 views

Where to start after openSUSE minimal WSL install && zypper error

I've been using Ubuntu minimal as my main WSL distro for quite a bit. I like the idea of a rolling minimal distro and benefits it has. Also I like to try something new. To manage my distribution I ...
0
votes
0answers
26 views

Have asterisks show up for ssh password

I am currently trying to have my terminal show asterisks whenever I type my password for ans ssh connection. I'm using WSL with a Ubuntu 18 distro, but I don't think that should matter much (I may be ...
1
vote
1answer
40 views

Ubuntu for Windows — Can't open PDF files via xdg-open

My default application for opening PDF files is Adobe Acrobat XI Pro. I would like to be able to open PDF files using this program via the Windows Subsystem for Linux. Currently when I run xdg-open ...
0
votes
0answers
23 views

WSL Ubuntu 18.04 shows wrong Cpu_allowed mask

Ubuntu 18.04 running under WSL detects my CPU wrong: $ cat /proc/self/status | grep Cpus_allowed Cpus_allowed: 00000001 The CPU is an i7-4510U (2 cores/4 threads) so I expected: Cpus_allowed: f ...
-1
votes
0answers
43 views

ssh suspend doesn't work on windows

I'm a Windows 10 user with WSL running Debian(WLinux). I cannot suspend a ssh connection using ~^z. Other character sequences like ~. or ~? does work as expected. I have no trouble to use ^z to ...
2
votes
3answers
65 views

Why can't I delete this directory?

What is going on here? dave@dave-desktop:/mnt/w/Source/Sign/dist$ ls -la total 0 drwxrwxrwx 1 dave dave 512 Feb 27 08:55 . drwxrwxrwx 1 dave dave 512 Feb 27 09:09 .. drwxrwxrwx 1 dave dave 512 Feb 27 ...
1
vote
0answers
82 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 ...
0
votes
0answers
32 views

Permission denied when changing user in a windows 10 bash (WSL)..moving bash between machines?

I am in a 'leap42' window as root (windows 10 bash), but I want to do 'su - newuser'..... and I get permission denied. The newuser and newgroup exist, and with 777 type permisions on the /home/...
0
votes
3answers
193 views

Editing text files in WSL with Notepad++

I use WSL (Windows Subsystem for Linux) with Debian, which provides a simple cmd interface. I'd like to open files in Notepad++, which is installed on the Windows side of this PC. is this possible? ...
2
votes
1answer
81 views

Unable To Rename Directory With Open File Handle

On Windows 10 within my Ubuntu Subsystem, when I open a file in a directory and try to rename that directory while that file is open, I am unable to do so. Example: $mkdir demo $touch demo/test.txt $...
1
vote
0answers
34 views

Backup and Sync from Linux to a WSL live (per each change) [duplicate]

I have a Linux (Arch/Debian) with only a CLUI (Bash) and a server environment (LAMP) with the following details: 4 GB RAM 2 vCPU Cores 80 GB SSD 4 TB Transfer 40 Gbps Network In 4000 Mbps Network ...
-6
votes
1answer
75 views

Why I can't switch from super user to regular user with su username? [closed]

I'm trying to switch to normal user but it doesn't work I just want a dollar sign instead of the hash... root@username:~# su username No passwd entry for user 'username' I'm on Windows on Ubuntu ...
0
votes
0answers
45 views

Trouble getting to Desktop directory, with Bash on Microsoft's Windows (WSL)

I'm using the Bash terminal for Windows and currently this is what I get when I type ls -a <username@userPC>:/$ ls -a . bin data home lib64 mnt root srv usr .. boot dev init lost+found opt run ...
0
votes
1answer
55 views

Is it safe to format C: drive in order to deploy Linux on a Windows 10 machine?

I have deployed several distros on Windows, such as Open SUSE Enterprise Server 15, Kali, and Ubuntu, but want to turn my currently Windows 10 machine to a Linux machine. Is Virtual Machine the ...
0
votes
1answer
466 views

Windows Subsystem for Linux: apt update error in Kali [duplicate]

I'm having trouble with the command: sudo apt-get update ,when I run it, I get the following message: Err:1 http://http.kali.org/kali kali-rolling InRelease Connection failed [IP: 192.99.200.113 80] ...
0
votes
1answer
43 views

Developing Mozilla Firefox for Linux on Windows

I would like to make some contribution to Mozilla Firefox (with the little C++ I know). Can I build, run and debug Firefox for Linux using WSL (Windows Subsystem for Linux) ? If yes, should I install ...
0
votes
1answer
196 views

Implications for deleting files using WSL

Are there any downfalls to using WSL to delete files (e.g. rm someFile) on the regular Windows file system (mnt/c)? Likewise, is there a downfall to using Windows to delete (for example by 'right ...
0
votes
1answer
542 views

airmon ng ls: cannot access '/sys/class/ieee80211/': No such file or directory

Im using ubuntu bionic (UBUNTU WSL) I can't use airmon-ng! It throws the following ls: cannot access '/sys/class/ieee80211/': No such file or directory I checked airmon-ng: ls: cannot access '/...
0
votes
1answer
581 views

Does windows subsystem for linux detects usb wifi adapter? [closed]

I am thinking of buying a usb wifi adapter but i'm not sure if it'll be useful when im using wsl
1
vote
2answers
499 views

“dd” an image onto an sd-card from Ubuntu in Windows Subsystem for Linux

I have a bootable disk image file that I'd like to write onto an sd-card. However, I only have a Windows 10 machine available - it has the Windows Subsystem for Linux already installed, Ubuntu runs, ...
0
votes
1answer
292 views

Permission denied: cannot create /dev/null

I've been trying to get the github commit chart hack to work for like a week now. this one https://github.com/mavrk/github-graffiti and this one https://github.com/gelstudios/gitfiti and this one ...
-1
votes
1answer
114 views

Windows Subsystem for Linux home versus Windows Environment home [closed]

I've been trying to get it to connect to my github, but keep getting an error. I think it thinks I'm a different user :( ... (don't ask why i have two similarly named users, i don't even know anymore.....
1
vote
1answer
903 views

SSH In Windows 10 Bash(Ubuntu)

I'm trying to turn my Windows 10 desktop into a secure ssh server. sshd is running but I can't get any of my other computers to connect to it. I'm using passkey authentication with ed25519. I'm using ...
1
vote
1answer
262 views

site-packages directory not found after installing pip3 with apt-get in Ubuntu WSL

I installed python 3 and pip into in Windows System for Linux shell, but it appears I have to find and specify site-packages directory manually if I want to run any python package executables. The ...
0
votes
1answer
929 views

Can't access SSH server running in WSL [closed]

Basically I have enabled a SSH server in Kali WSL Linux. The problem is that when I do ssh root@192.168.0.225 from Windows and provide the password, it works just fine and the connection succeeds. ...
0
votes
1answer
117 views

Colors in Terminal and VIM with Windows Subsystem

I'm running Debian GNU/Linux through the Windows Subsystem, and I thought it was pretty cool. However, I'm having issues setting up colors in my terminal and VIM. I used to use Ubuntu as a thing to ...
1
vote
3answers
4k views

Default password for Kali Linux on Windows 10?

What is the default password for Kali on Windows 10 via Windows Subsystem for Linux?
0
votes
0answers
75 views

WSL: Redirect links to host

As Windows is missing a nice twitter client I'm using WSL, with X11 forwarding to get Corebird running on my Windows 10 host. The question is: Is it possible to redirect the click on a link within ...
5
votes
1answer
264 views

Attempting to run a regular tunnel in Debian version 9.5 Linux

I entered the following line in the modules.conf file under the /etc/modules-load.d/modules.conf path: alias char-major-10-200 tun And then I typed the following command from the Debian 9.5 Linux ...
0
votes
1answer
428 views

Escaping ampersand (&) in URL in Bash under WSL

I'm trying to write a Bash function which will take some arguments from the command line and put them in a URL which contains URL parameters (i.e. contains ? and &). If there is only one ...
1
vote
1answer
331 views

creating alias in bashrc in wsl [duplicate]

I'm trying to create alias for for cd command to AppData and %programdata% folders but I got path not found while if I write manual it works, here is what I'm doing: In .bashrc I do alias client= '...
2
votes
1answer
1k views

`ls` Attemptes to list nonexisting symbolic links on WSL

I have clean installed windows 10 (build 1803). I have installed Ubuntu from the Microsoft Store and enabled Linux subsystem. I have done this several times in the past, and never have I had the ...
0
votes
0answers
124 views

Can't open mintinstall from WSL - mkdirat: Permission denied

I recently installed WSL on Windows 10 (Ubuntu), replaced the repos with Linux Mint's repositories, and installed a few GUI applications. After starting Xming (X11 server) and executing the following ...
4
votes
1answer
690 views

SSH linux subsystem windows 10

I can ssh the linux inside my windows 10, I usually use securecrt and I configured port 9999 , however once close the bash terminal, the SSH terminated and I get The remote system refused the ...
1
vote
3answers
708 views

Bash For loop not working

I am trying to execute this simple bash script but I am getting a syntax error. I followed this simple documentation here https://www.cyberciti.biz/faq/bash-for-loop/ but no luck. I am not sure what ...
0
votes
0answers
77 views

Installing Linux Scripts using Windows 10 Bash Shell

I'm new to Linux and I'm having trouble install this script (https://github.com/rolandoislas/drc-sim) using the Windows 10 Bash Shell. Every time I've tried to install the script, I run into this ...
5
votes
1answer
2k views

Passing command to bash from cmd.exe (WSL) not working

I'm on a Windows 10 machine with Windows Subsystem for Linux enabled/configured (Ubuntu). To explain my problem let me present you with two scenarios: Scenario 1: I start a cmd.exe prompt I run bash ...
1
vote
1answer
1k views

lsmod gives error: “could not get list of modules” on Debian running on WSL

When I run lsmod or sudo lsmod, I get an error that says: libkmod: ERROR ../libkmod/libkmod-module.c:1655 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory Error: ...
0
votes
2answers
3k views

Repositories for apt-get source in WSL

I'm looking to apt-get the source code of packages in WSL. $ apt-get source bash Reading package lists... Done E: You must put some 'source' URIs in your sources.list These are the default sources ...
0
votes
1answer
256 views

How to capture a changing one line program output?

A program outputs various data lines to the same line in a timely order, overwriting the line in each line write. How can I capture all of its output lines and write them to a file separated by ...
0
votes
1answer
401 views

ssh into two different machines on same network [closed]

I have a ssh-enabled machine on my home wifi that I am able to ssh into. I recently got the Linux Subsystem for Windows and I want to remotely ssh into that as well. Both machines have an static ip ...
0
votes
1answer
322 views

Change PS1 in .bashrc so that the following directory path is shown:

A little background: I am running Windows 10, have installed git bash, and created the .bashrc file. Right now in my .bashrc, I have the following line: PS1='\w\> ' So suppose I am on my ...
3
votes
1answer
395 views

Way to bind ALT-F4 to exit in Bash (Bash on Ubuntu on Windows)

Really simple question. I know I can exit bash with "exit", CTRL-D, etc, and yes I know I'm using a Linux (sub)system, but when I'm on windows ALT-F4 is second nature. Naturally, I'm on windows when ...
0
votes
2answers
3k views

not able to open terminator in bash windows 10

When opening terminator from my bash Windows 10, I am getting this error /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk....
2
votes
1answer
467 views

OpenZFS on Windows Subsystem for Linux

Has anybody seen or tried running OpenZFS under Windows Subsystem for Linux? I know that someone is working on a windows port of OpenZFS, but it would seem that using the Linux port would be much ...
2
votes
1answer
248 views

package ia32-lib is not available on Windows Subsystem for Linux

I'm trying to install Red http://www.red-lang.org/p/download.html on WSL (I'm using on Windows 10 Pro). After typing sudo apt-get install ia32-libs libc6-i386 libcurl3 In the end I got the message ...
1
vote
2answers
728 views

Open file behavior using Ranger in Windows Subsystem for Linux

I am using Microsoft Windows ([Version 10.0.15063]) subsystem for Linux and observe an unexpected behavior when opening files using Ranger file manager in bash. For example, I have ~/.config/rifle....
1
vote
2answers
1k views

Issues exporting X11 display while using SSH from Ubuntu for Windows

I am using the native Ubuntu terminal in Windows 10, and am trying to export display while using SSH to connect to a remote server. I have XMing installed on the Windows PC, which works on the local ...
0
votes
1answer
83 views

rm -rf left an undeleteable directory; how can I remove it?

I just rm -rfd some trash (long story short, don't use Unreal and Git, it breaks things). Now I have a file that ls -Al on Bash lists like this: d????????? ? ? ? ? ? old-folder-name ...
1
vote
1answer
797 views

Very slow auto-completion in Linux for Windows

For some reason auto-completion is very slow for me in WSL, it always takes several seconds display the result of, for example ll ~/Te<tab> (which would, after 2-3 seconds, print ll ~/Temp). I'...