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

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
14 views

Where does gdb get installed to when using WSL in VS Code?

I'm using Visual Studio Code to write C and I'm using the WSL terminal. I installed gdb from the VS Code terminal to debug my code, but I have to change miDebuggerPath to gdb installation path. But I ...
3
votes
3answers
2k views

How to access the windows linux subsystems filesystem from windows?

So, from the linux subsystem bash I can access the windows filesystem in /mnt/c but I'd like to access the linux filesystem from something like explorer, is this possible?
0
votes
1answer
544 views

How to access Linux files in WSL (windows 10 fall creators update)?

It seems the old way for Creators Update: C:\Users\USERNAME\AppData\Local\lxss is not working (there is no lxss folder) How can I access Linux files in Fall Creators Update?
43
votes
7answers
38k views

How to access linux/Ubuntu files from Windows 10 WSL?

This question answers how to access Windows files from Ubuntu Bash, but how can I do the opposite? Specifically, I need to access my SSH key from Windows which is located at /home/mark/.ssh/id_rsa ...
0
votes
0answers
9 views

All access right cleared when editing WSL files from Windows

I use Win 10 feature: WSL (Windows Subsystem for Linux). WSL files can be accessed from Windows at the following path C:\Users\%USERNAME%\AppData\Local\Packages\CanonicalGroupLimited....
0
votes
0answers
5 views

Visual studio Code - Debian Installed on Windows Subsystem with Python and virtualenv

So I have Visual Studio Code installed on Windows 10 and I also have Linux Debian installed in the Windows Sub System. I wondering how I can create the code in Windows 10, using VSC, but have it "run" ...
0
votes
2answers
3k views

Permission denied for ls /usr/bin on windows subsystem for linux

ls /usr/bin gives the error message: ls: reading directory '/usr/bin': Permission denied on wbash.exe. For that reason bash-completion and eshell-completion fails or gives incomplete results. I ...
0
votes
1answer
25 views

' Windows Subsystem for Linux' option not showing up in Windows Server 2016

I am using Windows Edition 1607 on Windows Server 2016. I need to enable the ' Windows Subsystem for Linux'. I am unable to find this option in the Add Features option. You can view the screenshot for ...
0
votes
1answer
3k views

How to add fonts to VcXsrv X-Server?

I can't find any documentation on how to add new fonts to VcXsrv. I found this but this is for a different program (Xming) and though I followed all the steps the fonts still doesn't show up in the X-...
16
votes
3answers
5k views

Editing files in a Windows Subsystem for Linux development environment

Windows Subsystem for Linux (WSL) works pretty well for making most commandline Linux tools available and working on Windows without modification. However, it gets a little tricky for development, ...
31
votes
5answers
33k views

Rebooting Ubuntu on Windows without rebooting Windows?

Is it possible to reboot the Ubuntu sub-system without restarting my system? I tried to use the shutdown command after installing some updates, but that doesn't seem to be an option here.
1
vote
0answers
10 views

aws command works in WSL, but not as one-liner from PowerShell

I'm using WSL (Windows Subsystem for Linux) on windows 10, and installed the Amazon AWS cli on it. When I start WSL (C:\\WINDOWS\\System32\\wsl.exe in PowerShell) and then aws it works fine. If I try ...
1
vote
2answers
750 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 ...
8
votes
3answers
5k views

How to use the windows installation of java from BashOnWindows10?

I'm not able to run the windows version of java.exe from BashOnWindows10. It is present in PATH, but the invocation fails silently. My goal is to avoid having to install the JDK/JRE again in WSL. As I'...
29
votes
6answers
45k views

What is the home directory on Windows Subsystem for Linux?

When I start bash on Windows Subsystem for Linux, it drops me in the directory /mnt/c/Users/<username> When I ls this directory, I see the directories Desktop, Documents, etc. that I can see ...
1
vote
1answer
437 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 -...
4
votes
3answers
4k 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! @ @@@@@@@@@@@@@@@@@...
33
votes
4answers
26k views

Is there a way of installing Windows Subsystem for Linux on Win10 (v1709) without using the Store?

The Microsoft Store app is disabled by Group Policy by my university. I have administrator rights on my computer and I was wondering if there was a way of installing Windows Subsystem for Linux (WSL) ...
1
vote
0answers
18 views

Sane symlinks to parallelize Windows and Ubuntu homes on WSL?

I'd like to link up, insomuch as is possible, my Windows home folder with my WSL Ubuntu Linux home folder. Up to now I've pretty much just gone into Ubuntu bash on WSL and just created a symlink to ...
5
votes
6answers
1k views

How to get the host user home directory in WSL Bash

I want to get the Windows "host" user home directory from within bash, so my theoretical environment variable (or program) echo $WINHOME would output something like /mnt/c/Users/dualed Would this ...
2
votes
2answers
956 views

Make a shortcut to Ubuntu bash.exe on Windows 10 that doesn't auto-close

I would like to make a shortcut on Windows 10 that opens C:\Windows\System32\bash.exe (Ubuntu on Windows 10), runs a command and doesn't close the terminal. I made a shortcut with target to C:\...
0
votes
1answer
28 views

Setting up Heroku CLI in WSL

Trying to setup Heroku CLI to work with WSL. Starting by following the directions here for Ubuntu 16+: https://devcenter.heroku.com/articles/heroku-cli sudo snap install --classic heroku Produces ...
-1
votes
0answers
46 views

Visual Studio Code Issue on Windows Subsystem for Linux

I am using xming gui to run vscode(Visual Studio Code) But when I run vscode. I can not move the screen. The tabs are movable. However, vscode itself does not move. Window size conversion is also ...
6
votes
2answers
3k views

Is it possible to uninstall Bash on Ubuntu on Windows, since the latest updates provide a different Ubuntu and SUSE app?

If it is, how do I safely remove the Bash on Ubuntu on Windows application while leaving a working Ubuntu and OpenSUSE?
2
votes
1answer
155 views

Docker “waiting for an IP” when starting or creating new machine

Been struggling to get this resolved for several days now. Trying to implement a WSL and VirtualBox setup on Windows 10 Pro. The reasons aren't relevant to the issue, but using Hyper-V isn't an ...
0
votes
0answers
20 views

Failed to start Hadoop services: localhost: nice: cannot set niceness: Permission denied

I'm trying to install Hadoop on Ubuntu as Windows subsystem, the installation is finished, but I'm getting error while starting Hadoop services. $ start-dfs.sh Starting namenodes on [localhost] ...
0
votes
0answers
70 views

Could not install packages due to an EnvironmentError: [Errno 1] Operation not permitted in the virtual envinronment

I tried to make a python virtualenvironment using virtualenv in I type virtuelenv env --python=python3 I get an error PermissionError: [Errno 1] Operation not permitted: '/mnt/d/venv/bin/python3' ...
-1
votes
0answers
27 views

How to enter WSL automatically whenever cmd.exe is lauched?

Is it possible to let cmd.exe run wsl whenever it is lauched? I am asking this because I use a program (Stata) that can run shell script by opening cmd.exe. But, all the shell scripts are written for ...
14
votes
2answers
12k views

difference between x servers in windows

I'm using Windows 10 Insider Preview with Windows subsystem for Linux enabled I'm wondering what's the true differences between VcXsrv and Xming to view windows from Ubuntu in windows I know the ...
0
votes
0answers
33 views

Docker container in Windows Bash ignores non-ASCII characters, work's in PowerShell

I'm running a Python Docker container on my Windows 10 computer. If I add Norwegian specific characters in my Python code, such as print("båt"), and run the container in Windows Bash, the output is bt....
3
votes
1answer
159 views

Uniting Putty with WSL-Ansible under the same private key and passphrase

In my PC I use Windows 10 home with WSL-Ubuntu (16.04 - xenial) and Ansible. I often rent IaaS machines and SSH into them via Putty from Win 10 and all of my IaaS machines are usually orchestrated, ...
2
votes
3answers
14k views

Gnome 3 on bash on Ubuntu on Windows

Is it possible to replace explorer.exe with Gnome3 on Windows10's Linux Subsystem? I've seen tutorials with Cgywin, but I was wondering if some one has gotten it to use WSL? I ran into problems with ...
3
votes
3answers
2k 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 ...
2
votes
1answer
249 views

Wrong string concatenation using Bash Windows Subsystem

I'm having headaches to know why my script doesn't work as expected under windows subsystem linux. My version from the store : Debian GNU/Linux 9.6 (stretch) (I tried ubuntu too, with the same ...
0
votes
0answers
24 views

Is mounting C drive owned by the default user and not root is possible under WSL without updating to windows insider?

I know it is possible to config the mounting points and options on /etc/wsl.conf and /etc/fstab after windows insider build 17093. However, I am using the university machine and it is advised to not ...
2
votes
1answer
1k views

Getting `sshfs` working on WSL or finding an alternative

My university's CS department has its own server used for development (from here on out, dev.univ.edu). I have SSH and SFTP access to this server, and I was hoping to do some heavy work on my Windows ...
49
votes
6answers
35k views

Windows 10 build 14316: Ctrl + v doesn't work on Bash on Ubuntu on Windows

On the new Windows 10 insider build 14316, I haven't been able to use Ctrl + V (shortcut for paste) on the new Bash on Ubunbu on Windows app. Has anybody else had this issue? Any solutions? I have ...
5
votes
2answers
110 views

Does Microsoft WSL have full support for network and devices?

I have been testing Microsoft's Windows Subsystem for Linux (WSL) which is available on the Windows Store. Does WSL have full support for networking and devices? For instance, can I expect commands ...
2
votes
1answer
83 views

How to change the dark blue in wsl to something brighter?

How to change the dark blue in wsl (Windows Subsystem for Linux) to something brighter? Here is a picture of a config file opened with vim. I basically see a black screen. I cannot read it. And the ...
34
votes
3answers
29k views

How to access network mounted drive on Windows Linux Subsystem?

I have a samba drive which is mounted on my local windows computer. I have a "/mnt/c" drive in WLS ("Windows 10 bash"), but no "/mnt/z". Is there a way to access it somehow? Can I remount it in WLS?
1
vote
1answer
113 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
1answer
75 views

How to mount windows 10 drive on WSL home directory?

I would like to mount drive D on /home directory in WSL while letting C drive to be mounted on /mnt or not mounting it at all. How can I do that?
5
votes
3answers
8k views

Windows 10 Linux Subsystem How to Change User Name and PC Name for Bash Console

When I first installed and ran Windows Linux Subsystem, console askded me to enter a new user name for bash. I input User. Now when I start bash in my console my username and PC name appeared at the ...
29
votes
3answers
16k views

UTF8 characters in windows 10 bash terminal

I have installed the new bash shell on windows 10. I'm using it together with ZSH. However, none of the utf8 characters work, they appear as square blocks. How do I enable utf8 character encoding in ...
0
votes
2answers
83 views

Opening a wsl shell from another windows application

I'm trying to configure Tower (git client) to launch a wsl bash shell. I've tried a whole bunch of things, but it seems this isn't intended. What I tried: command: c:\windows\system32\wsl.exe ...
-1
votes
2answers
91 views

Would upgrading to Windows 10 Pro and enabling WSL affect my laptop's performance?

I just got a new laptop, which I chose mainly for its long battery life. It has an i5 8th gen processor and 8GB of RAM. It came with Windows 10 Home. Now I am intrigued by the idea of having a Linux ...
1
vote
3answers
473 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 ...
1
vote
2answers
339 views

WMIC in Windows Bash

When I try to use WMIC in Windows Bash, it says command not found. Though, in git-bash and Cygwin I am able to use WMIC, so how can I achieve this in Windows Bash?
0
votes
1answer
20 views

Error launching Ubuntu shell on Windows

When trying to launch Ubuntu 18.04 on Windows 10 via WSL, I get the error: WslRegisterDistribution failed with error: 0x800703fa Press any key to continue...
0
votes
2answers
123 views

How to set up SSH key for git on Windows 10 Ubuntu subsystem

I'm using the ubuntu bash (subsystem) on windows 10 as my shell. I have a gitlab git repository that I cloned. When I use the git from this shell it is separate from my windows git and I'm unable to ...