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

1
vote
0answers
132 views

WSL ffmpeg BSoD KERNEL_SECURITY_CHECK_FAILURE when killing from Python

My computer is bluescreening (KERNEL_SECURITY_CHECK_FAILURE) when running ffmpeg from bash (from python) and trying to kill the process (This is on WINDOWS with Windows Subsystem for Linux). The ...
2
votes
2answers
158 views

LinuxBash does not open in the current folder

A long time ago I set up Bash on Ubuntu on Windows. Now using Win10 when I'm in Explorer and right click in whitespace I can select Open LinuxBash Window from here. But the bash always opens at ...
2
votes
1answer
113 views

How to reset Windows subsystem for linux bash after modifying it with dotfiles?

I installed 'dotfile' on my windows 'ubuntu' terminal Now I am not able to work with normal commands like 'git'. Want to know how to reset my bash file to regain the original terminal.
1
vote
0answers
483 views

How to enable colors with Win32-OpenSSH and Putty?

Summary There seems to be a bug in Win32-OpenSSH that prevents colors to be shown in certain terminal emulators such as PuTTY and mintty. Win32-OpenSSH seems to replace the color escape sequence "\...
1
vote
0answers
365 views

Using Ubuntu Monospace with terminator on WSL

I am attempting to configure terminator to use Ubuntu Monospace under WSL. What's the proper font = setting the .config/terminator/config to accomplish this? I am running Xming as my X Server. Does ...
3
votes
1answer
173 views

Cannot use WSL anymore

I cannot use WSL(Ubuntu on Windows). When I run bash in CMD, I will get an error Error:0x8007001f But I can use it normally before some days, I don't know which my operation result in this ...
0
votes
0answers
59 views

upgrade maven in linux distribution for windows

I want to update to the newest version of maven in Windows subsystem for Linux. But using apt install gets the version 3.0.5, while in "windows" I already installed the version 3.3.9. Is there any ...
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 ...
1
vote
2answers
1k views

ssh-agent reset in Windows Subsystem for linux (WSL)

I am trying to use ssh-agent under WSL but the SSH params are wiped after the script is run From .bashrc (cut down version) eval $(ssh-agent) ssh-add ssh-add -l echo "SSH_AGENT_PID is" $...
2
votes
1answer
5k views

WSL mounted file permissions

In my testing of WSL as a possible replacement for the git-for-windows bash and quasi-unix work environment, I have set up a symlink within WSL for my /home/me/.ssh/ directory to the corresponding /...
5
votes
0answers
3k views

WSL Bash doesn't start

I have been using Windows 10's Windows Subsystem for Linux bash (Ubuntu via Microsoft Store) in the last few weeks, no problem, awesome feature, couldn't be happier. But today it suddenly stopped ...
2
votes
0answers
372 views

How to paste in windows wsl without using mouse?

Recently I installed Ubuntu WSL in windows, but I can't paste text to the terminal using keyboard(like ctrl+v before). I can use right click to paste, but it's just inconvenient. Is there a way that I ...
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
1answer
1k views

Is the Windows 10 Linux Subsystem useful in a dual-boot PC?

I have just installed Ubuntu 17.10 alongside my Windows 10 installation. Windows 10 is my primary OS and I was wondering: is installing the Linux Subsystem for Windows 10 beneficial to the dual-boot ...
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 ...
4
votes
2answers
816 views

What's causing the file is not executable by user on the windows subsystem for linux?

This seems to have randomly started a few days ago. It used to be fine to run fish shell from Ubuntu bash for Windows. But suddenly when I hit Tab for autocomplete, it barfs with: The file "x86" is ...
4
votes
1answer
5k views

How to install Ubuntu on Windows 10 with PowerShell?

With the last update of Windows 10 (Fall Creator's Update), we can install Ubuntu on Windows, which is a Windows Store application. We can enable Windows Subsystem for Linux (WSL) via PowerShell with ...
1
vote
0answers
94 views

WLS, backup process and Windows Update - disk space lost

I was running Restic within WLS when my PC restarted due to an update. The backup process was writing to my external HDD on /mnt/j. After the update, the computer restarted and I noticed that I was ...
0
votes
1answer
541 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?
0
votes
0answers
1k views

Connection to localhost refused in Ubuntu subsystem on Windows

I have made a server-client model in python on Linux. When I run the server on Ubuntu Subsystem on Windows, it works just fine. But when I run the client(which tries to connect to the server) I get ...
4
votes
1answer
3k views

How to change the default user name in WSL?

Many websites says I should use lxrun /setdefaultuser, but this command is deprecated: C:\WINDOWS\system32>lxrun /setdefaultuser foo Warning: lyrun.exe is only used to configure the legacy ...
0
votes
1answer
201 views

Use libraries installed in Windows from WSL - Ubuntu

I am using WSL - Ubuntu 16.04 in a Windows 10 computer. I already got R and Rstudio installed on the main Windows 10 system. Therefore, I was wondering if a) it is possible to tell Ubuntu to use ...
2
votes
1answer
2k views

Can I drag and drop files to an .sh script using Bash on Ubuntu on Windows or Windows Subsystem for Linux (WSL)?

I want to pass multiple files as parameters of an .sh script in Windows 10 by simply dragging them over the script file; is this possible?
0
votes
2answers
789 views

Can I use software installed in WSL directly from Windows?

Recently I installed WSL and started using it. In WSL, I installed NVM in order to have Node.js 6.11.5 and 8.9.0 at the same, I can install NPM packages and run my apps developed in Windows without ...
4
votes
0answers
301 views

-keyhook parameter is not working with VcXsrv on Windows 10

I am running Xfce in Full-Screen mode using Windows Subsystem for Linux and VcXsrv. I'd like to use Alt + Tab to alternate between open Xfce programs. However when I press Alt + Tab it triggers ...
3
votes
2answers
3k views

Fixing 'Input/output error' from .bashrc in Windows Subsystem for Linux

I mistakenly edited the .bashrc file for my WSL (Windows Subsystem for Linux) Bash using a Windows text editor (Notepad++). Now whenever I run Bash I get the following error: bash: /root/.bashrc: ...
4
votes
0answers
2k views

How do I get mDNS (avahi) to work on Windows Subsystem for Linux?

I've followed the last example in this thread: https://github.com/Microsoft/WSL/issues/384 In other words: ~$ sudo service dbus start * Starting system message bus dbus ...
2
votes
4answers
4k views

Open browser in host system from Windows Subsystem for Linux?

I have a ruby script that does contains this line: system("open '#{html_path}'") html_path is the path to a local .html file. So the script opens a browser where I can normally inspect and view this ...
0
votes
0answers
257 views

How to understand or “debug” hanging / not starting `bash` from WSL?

I installed WSL and was using bash via PowerShell in the last few days without any problems. Super nice. But now it doesn't start anymore, after typing bash it just hangs and does nothing. bash....
1
vote
0answers
618 views

24 bit color themes in vim/neovim in linux subsystem for windows

Right now colors in vim are all wrong. As you can see I've tried wsl-terminal con-emu and settings colors in default terminal application to match solarized theme. All terminals (except conemu) use ...
5
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?
1
vote
1answer
6k views

Associating linux shell (.sh) scripts on Windows 10 to Bash or WSL [duplicate]

If you ever tried to run an .sh linux script on Windows 10 by double-clicking it, after assigning it to bash.exe (Ubuntu Bash for Windows 10) by default, you most likely noticed it wouldn't open. Why ...
0
votes
1answer
439 views

Find the link of Ubuntu userspace file for WSL

From Windows 10 Anniversary update , Microsoft added Windows Subsystem for Linux. Microsoft articles provide Lxrun.exe /install /y or bash.exe commands to install Ubuntu WSL. Then Lxrun.exe downloads ...
2
votes
2answers
802 views

Windows Linux Subsystem: How can I bypass the normal shell and use Terminator (Xming X Server installed)?

I've been playing with the Windows Linux Subsystem and having Ubuntu so quickly and readily available through Windows in a non-clunky way has been very impressive. I've got most of it set up the way ...
0
votes
1answer
34 views

Console settings not applied when running program via shortcut

I have already configured my Windows Subsystem for Linux (bash.exe) to use a color table and a font like this: And it looks OK when I type bash.exe in "Run" dialog (Win+R) or manually navigate to %...
1
vote
1answer
136 views

Cmder opens in Windows mode half the time and xterm mode the other half

I'm using Cmder with WSL and half the time, arrow keys don't work. I noticed that this is because Cmder tabs open in Windows mode half the time. Arrow keys work when it's in xterm mode, but not when ...
0
votes
1answer
228 views

How to add batch commands to cmd.exe's PATH

I've installed Ubuntu on Windows and in the bash I've installed g++. How do I make it available to normal Windows programs? How do I add it into the Windows PATH? Since it's possible to execute bash ...
0
votes
1answer
63 views

Tell dpkg that a dependency is installed when it is not

I am using Windows Subsystem for Linux and it is impossible to install linux-libc-dev but all of the functionality is actually there. In practice its dependency is met. I need to convince DPKG of this ...
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, ...
5
votes
1answer
2k views

`netstat` command in WSL return empty list

I install python and start python -m SimpleHTTPServer in windows WSL. But the command netstat -an return an empty list. And of course i can't visit the url http://127.0.0.1:8000 in windows browser. ...
1
vote
1answer
683 views

WIndows subsystem for Linux 'Get' button is disabled

I am trying to install Ubuntu on windows using Windows subsystem for linux, but on store the button is grey, how can I enable it?
3
votes
1answer
6k views

Using rsync on WSL (Bash for Windows 10) for incremental backups

I was an avid user of Linux for many years but switched to Windows. One thing that I have always missed is using rsync to make incremental snapshots for the purposes of backup. You use a command like ...
0
votes
0answers
502 views

Windows Subsystem for Linux swap space too large, Windows 10

I noticed my disk space has shrunk considerably. So I checked my bash on windows, running free -h command: total used free shared buff/cache available Mem: 7.9G ...
5
votes
0answers
644 views

How can I preserve the WSL linux environment while doing a Windows 10 system “reset?”

This post mentions simply restoring the WSL directory partially restored WSL, but with some functionality issues. This post gives generic information for how to back up and recover a linux ...
0
votes
0answers
257 views

Xfce4 on WSL with VcXsrv doesn't update properly

I got Xfce4 installed on WSL. It's working except for the part where the graphics doesn't update properly: I have to keep moving things around to trigger an update. Is there any way to fix that? PS: ...
1
vote
1answer
219 views

Running dangerous linux commands in bash enviroment on Windows

What would happen if I ran sudo -rm -rf /* --no-preserve-root in the bash shell that you can enable on windows proof of shell:
1
vote
0answers
181 views

Unable to use dashes in referential filenames, Why?

I recently setup Windows Subsystem Linux and created a symbolic link to a Windows folder in the Apache2 default server folder like so... ln -s /mnt/c/Users/user/Desktop/folder /var/www/html ...so ...
0
votes
0answers
408 views

WSL - Linux files don't update when Windows files are modified

I have installed Windows Subsystem for Linux and created a symbolic link to a folder with web development files in it.  Let's say I had a file C:\Users\Anthony\Desktop\foo\bar.css that said background:...
0
votes
1answer
697 views

Windows 10 Linux Subsystem Redis not auto-starting

I have installed Redis on Windows 10 Linux Subsystem. I followed the instructions available at https://redis.io/topics/quickstart and I have taken care that I followed all the steps mentioned in ...
2
votes
1answer
4k views

Use accelerated graphics on Windows 10 Linux subsystem with Xming?

I've got Ubuntu 16.04 running in Windows 10 16251.0 as a Linux subsystem, and I've got Xming-mesa 6.9.0.31 installed. I launch Xming using Xming :0 -multiwindow -clipboard Then in my Ubuntu bash ...