Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [windows-subsystem-for-linux]

Windows Subsystem for Linux (WSL) is a compatibility layer that allows Linux ELF64 binaries to run natively on Windows 10

0
votes
0answers
13 views

How can I recursively change permissions for files and directories on Windows Subsystem for Linux?

Every time I use sudo chmod -R +755 * or sudo chmod -R +755 ., it resets all of the file permissions to 000 in the directories and subdirectories. If I run sudo chmod +755 *, it will properly add ...
1
vote
1answer
13 views

How to make nginx pages running on wsl visible on the local area network(lan)?

ah my last piece of the puzzle in creating a great dev environment... Nginx runs fine on wsl ubuntu 16.04. On the windows machine I can see pages with url localhost or url of any ip address in ...
0
votes
1answer
48 views

Arch on WSL: libQt5Core.so.5 not found, despite being installed

I was hit by some hardcore power-tripping forum mods on the Arch Linux forum, so here I am. I'm trying to run GUI apps on WSL, such as dolphin or kate. However, none of them can find libQt5Core.so.5, ...
0
votes
0answers
17 views

spawn php ENOENT when using XDebug in VSCode

VSCode 1.25 version, XDebug 2.6, php-fpm 72, Windows 10 (1803). I have installed xdebug itself and vscode xdebug extension using this info: https://marketplace.visualstudio.com/items?itemName=...
3
votes
1answer
72 views

Linux Subsystem for Windows: Atom and Visual Studio Code close immediately

There is a couple of guides out there on how to get GUI applications running in Linux Subsystem for Windows (WSL). I tried to follow a handful of them, but each of them had something in common: Both ...
0
votes
1answer
71 views

Get a Linux Distro for WSL on Windows 1703

I am using Windows 10 on my company Laptop. I do have the privileges to install the Windows Subsystem for Linux on my System and I successfully did so. However, the currently available Linux Distros ...
0
votes
0answers
18 views

while on WSL bash, can you invoke window's gitk on current directory?

Suppose you're working on WSL cli bash, then you want to use gitk of the Windows on that current working dir, can you do this? Regards,
1
vote
0answers
47 views

Docker on WSL won't bind mount $HOME

I originally asked this on Stack Overflow, but I thought Super User might be more appropriate. I have the strangest situation using Docker on WSL (Windows Subsystem for Linux, Ubuntu 16.04). I'm ...
0
votes
0answers
139 views

Is WSL now available on LTSB?

As documented here and elsewhere, the windows subsystem for Linux is currently in beta and therefore not available on Windows 10 Long-term Service Branch. My experience on LTSB is that you could ...
0
votes
1answer
130 views

How to make WSL run services at startup

After searching this site and various Q, it is clear that services and systemd is not available for WSL. I need to run a program in WSL every time I start my PC so I read this page on how to use ...
0
votes
2answers
142 views

Anyway I could change my OS Build?

My windows 10 computer has os build 10240, and I need higher for Windows Subsystem for Linux but I have used it before but I performed a factory reset. Please help.
-1
votes
1answer
71 views

Windows Linux Subsystem - Accessing restricted Files outside of WSL

I want to run rsync from within WSL and backup my windows copy. (Because the windows tool does not work. If you use it, check your backups! Anyway, so...) I am mounting my backup drive with sudo mount ...
1
vote
0answers
36 views

Alias file not working in Bash on WSL (Opensuse Leap 42.3)

I have my alias file set up like so in Bash in WSL: alias gvim='/mnt/d/Vim/vim81/gvim.exe' alias vim='/mnt/d/Vim/vim81/vim.exe' alias pngcrush='/mnt/c/Users/nathan/Downloads/pngcrush_1_8_11_w64.exe -...
1
vote
1answer
30 views

Weird file not found in WSL

I can open files with Vim, but i can't compile them with cc every time it says: cc: error trying to exec 'cc1plus': execvp: No such file or directory files are also listed in ll
1
vote
2answers
97 views

How to open windows explorer from current working directory of WSL shell?

When I type "bash" to the windows explorer address bar and hit Enter, it opens the shell in that directory. Often I find myself wanting to work on files with windows programs in the working directory ...
0
votes
0answers
42 views

Cannot activate/turn on Windows Subsystem for Linux feature on Windows 10

I'm having a really strange issue with turning on the Linux subsystem on Windows 10 and I've scoured the internet to see if anyone has had this issue -- to no avail. Basically, I click the checkmark ...
0
votes
0answers
52 views

Letting Windows Subsystem for Linux through the Windows Firewall

I'm using Windows Subsystem for Linux with Debian on Windows 10. I'm using the Windows Firewall. I am using the setting "Outbound connections that do not match a rule are blocked" because I value ...
0
votes
0answers
77 views

Font not in Windows 10 console properties list

I've been trying to customize my WSL lately (Windows 10 Pro N version 1709). However, the font I'm trying to use (the Windows compatible nerd-fonts version of FiraCode Regular) does not show up in the ...
0
votes
1answer
132 views

Change home of WSL to /mnt/c/Users/YourWindowsUser

What I'm trying to do I tried to edit the home dir of the windows subsystem (in my case Ubuntu) to my default User in Windows. Why? Because I want to replace Cygwin or at least check if it's viable ...
0
votes
1answer
48 views

How can I force quit bash?

I'm running the Windows Subsystem for Linux, and for some reason the bash window is not closing. I started Task Manager in order to force quit it, but it's not showing up as a process. How can I ...
3
votes
1answer
394 views

Setting up X11 forwarding over SSH on Windows 10 Subsystem for Linux?

I have a Raspberry Pi 3 Model B+ connected to my local network and I can SSH into it with no problems. This does cause some problems though as everything is done on the command line. What I would ...
1
vote
1answer
115 views

How do I recover my legacy WSL without data loss?

I have had the Windows Subsystem for Linux installed for a long time. Today, after a clean boot of my Windows 10, it fails to start, with the regular error message: Windows Subsystem for Linux has ...
0
votes
0answers
282 views

sftp from Windows-10-v-1803 into WSL Ubuntu-18.04 ssh-server… won't connect

Though there are interesting suggestions in: How can I SSH into "Bash on Ubuntu on Windows 10"? They may be obsolete in Windows-10-v-1803 with the new implementation of WSL. I Installed WSL ...
1
vote
2answers
85 views

How do I stop the Linux terminal in Windows from making the error sound?

If I'm in an empty Linux terminal in Windows (using the Windows Subsystem for Linux), and I hit backspace, I hear this annoying error-like sound. My Windows computer used to do this, but then I turned ...
0
votes
1answer
102 views

ssh-agent rendered unusable after single use

I'm using Ubuntu 18.04 on WSL (Windows 10 1803, Build 17134.112), and lately I've noticed an issue with ssh-agent. When I start up a shell, before connecting to anything over SSH, I first call ssh-...
0
votes
2answers
417 views

How to reset kali linux password in windows subsystem for linux

I have installed Kali Linux subsystem on windows. And now I have forgotten the root password in Kali, there is just the terminal of Kali Linux and nothing else. How can I reset my password safely? ...
0
votes
1answer
67 views

Can I run cool-retro-term (or other visual shell programs) on WSL using Xming without requiring the original terminal to continue?

I open up the WSL Ubuntu Bash, export DISPLAY=:0, and then fire up ./cool-retro-term; this works perfectly, but it by necessity crashes the CRT if I close the bash. Any tips on avoiding this?
0
votes
1answer
30 views

Can't change owner or group of copied files. Strange permissions listing

I copied a bunch of files from a Mac onto a USB SSD drive. Now I'm trying to look at them in Windows, or in Windows Subsystem for Linux Ubuntu. I'm getting permission errors for everything. What is ...
0
votes
0answers
45 views

Spin Docker Containers to allow multiple user for code development

I would like to know if it is possible to spin multiple docker containers in a single windows 10 pro host machine to allow multiple users to ssh in and work at the same time in isolated environment in ...
0
votes
1answer
162 views

A conflict between Cygwin bash and Ubuntu bash

I am working on Windows 10. I usually use bash from Cygwin but I decided to give a try to the Ubuntu bash available as the windows subsystem for Linux in Windows 10. The problem I have is that now ...
1
vote
1answer
213 views

How to run init.d scripts on Windows WSL?

Windows Subsystem for Linux, as of May 2018 still doesn't support init.d or systemd service management, and I ran into issues with services and several options online, with non working optimally for ...
1
vote
1answer
118 views

Accessing Ubuntu data (like “/etc”) from Windows

I'm using Ubuntu from the Windows Store. When I use a terminal command like "find", I see that it also lists files from my Windows drive. So Ubuntu can access the Windows file system which is ...
0
votes
0answers
216 views

Can't install wireless drivers in Kali Linux

I am using Kali as subsystem on windows 10 I am trying to install wireless drivers on my Kali but when I type make unload I get this error /sbin/modprobe: invalid option -- 'l' /sbin/modprobe: ...
1
vote
1answer
234 views

Why are WSL GUI apps rendered with blurry fonts with Xming?

When I try to use Xming with WSL to run GUI programs, I see fonts with grayscale anti-aliasing, like with Firefox as you can see here: This happens with every distro I've tried (Arch and Ubuntu), and ...
0
votes
0answers
181 views

How to copy a file from Windows Subsystem for Linux to Windows drive C?

So I wrote a small program that calculates the Fibonacci sequence in the C programming language and wanted to move the fibo.c file to my regular C drive. The thing is I wrote it using Nano in Ubuntu ...
0
votes
0answers
79 views

WSL-bash-launched Windows apps exclusively lock files

I'm using WSL (Windows Subsystem for Linux) bash to handle git commands on my Visual Studio projects. I have my difftool command configured to launch Beyond Compare (Windows program). What I see is ...
-1
votes
1answer
33 views

How can I programmatically open a new CMD window that starts a subsytem linux shell and execute a script?

What I would like to achieve is something like this: cmd /K /IN-NEW-WINDOW C:\Windows\System32\bash.exe -- /bin/script.sh open a new CMD window, that starts a WSL shell, and executes a command
2
votes
2answers
490 views

Unable to change file permissions on Ubuntu Bash for Windows 10

I was trying to use an ssh instance and I recieved this error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@...
1
vote
1answer
252 views

In Ubuntu Bash WSL in Windows 10, how can I have my redis-server service start?

I have Ubuntu Bash installed on Windows 10. How do I have redis-server start up in the background without having to run sudo service redis-server restart each time I initially open a terminal? I ...
4
votes
3answers
1k views

Can Ubuntu bash affect Windows files? [duplicate]

Can Ubuntu Bash installed from Windows Store destroy or change Windows files? I want to use Ubuntu Bash freely and not be afraid if I break something. I want to know if Ubuntu Bash has the ...
0
votes
0answers
24 views

More than one beep using echo in WSL terminal?

On my Mac, if I am on the terminal and have it output the following: echo -e '\a\a\a' I will hear three separate, short beeps. However, if I run the same command in the WSL terminal on Windows 10, ...
0
votes
1answer
318 views

Windows Subsystem for Linux without Windows Store [duplicate]

I'm trying to set up the Bash on Ubuntu prompt on my new Windows laptop. I've enabled developer mode and the Windows Subsystem for Linux is enabled, but I don't see a Bash on Ubuntu prompt. ...
1
vote
0answers
160 views

How to use Windows WSL to configure routing? Is this possible?

I noticed that IP forwarding appears to be enabled in WSL (Windows 10pro 1709), according to sysctl. I'm hoping I can use this to make a software router on WSL -- to play with Hyper-V VM traffic on ...
2
votes
4answers
1k views

Ubuntu on Windows 10 - SSH “Permissions xxxx for private key are too open

I have .pem file located on local disk C "c/private-key.pem" And I have a soft link to it on Ubuntu subsystem "~/.ssh/private-key.pem -> /mnt/c/private-key.pem" And when I'm trying to shh some remote ...
0
votes
0answers
52 views

WSL - ssh shortcuts like in putty

In Putty, we can store "Saved Sessions" which are essentially shortcuts for ssh connections. I typically use mtPutty which provides a quick drop down where i can quickly click on an item to connect ...
3
votes
2answers
854 views

Rebooting WSL in Windows 1803

In past versions of Windows 10, WSL could be exited by closing all active terminals but with the introduction of background tasks in WSL this no longer works. Is there a way to exit WSL without ...
0
votes
1answer
354 views

Bash on Ubuntu on Windows gives error “-bash: /home/user/.bashrc: Permission denied” on startup

So I was working with Bash on Unbuntu on Windows in order to learn Linux, so I attempted to edit the .bashrc file as a way of learning. To do this I went into the root folder in my C: drive and opened ...
1
vote
1answer
130 views

How can I install the sound modules

I am running Ubuntu 16.04 LTS bash on Windows 10. When I have installed a command line music player, it couldn't play any track - Error: unable to play audio. The command aplay -l shows aplay: ...
1
vote
2answers
968 views

Completely uninstall the subsystem for Linux on Win10?

I was fooling around a bit with the Linux/Bash subsystem for Win10. But then I decided to stay with Cygwin for now. So I uninstalled it - or thought I did. Now I've installed Cygwin and put its bin ...
20
votes
3answers
10k views

Can I upgrade my existing Ubuntu installation in WSL from 16.04 to 18.04?

I'm currently running Ubuntu 16.04 in WSL (Windows 10 v1709 or later), installed using lxrun. Can I upgrade it to 18.04? If so, how? If not, when?