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]

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

-1
votes
0answers
15 views

Error “lxrun is not recognized …”

I try to uninstall Ubuntu subsystem from Windows 10, but when I try to execute command 'lxrun /uninstall' I get error "lxrun is not recognized..." (windows v.10.0.17763.1). Thanks to all
0
votes
0answers
12 views

How do I setup a cross-platform terminal-based automated development workflow on Windows?

So I want to set up a machine for development, as well as personal use and have a few questions as to how I should achieve what I want to achieve. So my system must be windows as I play non-wine-...
24
votes
2answers
4k views

If Windows 7 doesn't support WSL, then what is “Subsystem for UNIX-based Applications”?

Everyone says that the Linux subsystem, or WSL, is only supported in Windows 10. So if this is true, can someone explain what does this, very similar looking, option in Windows 7 mean? What ...
0
votes
1answer
17 views

Is there a way to get administrative access from Windows Subsystem Linux files to Windows files correctly?

Is there a way to access Windows file with administrative rights using WSL? sudo vi /mnt/c/Users/a/admin/file.txt
-1
votes
0answers
27 views

Using WSL to install cuda for deep learning

For some reasons i can't change my os ( problems in my laptop and problems in os parition ) , so i would like to ask : Is it possible to install cuda on WSL (windows subsystem linux ) I mean here ...
0
votes
0answers
16 views

Can't run Ubuntu WSL on Windows Server 2019

I tried running Ubuntu 1804 via WSL on a Windows Server 2019 machine but I am having trouble: PS C:\Users\Administrator\Ubuntu> .\ubuntu1804.exe The system cannot find the path specified. It ...
0
votes
0answers
13 views

AWS CLI on Bash on Ubuntu on Windows (Python path)

I'm trying to share ~/.aws/ credentials with both environments (Bash on Ubuntu on Windows + Windows). To do so, I've created a symlink like: ln -s /mnt/c/Users/<user_name>/.aws ~/.aws From Bash ...
0
votes
0answers
67 views

Postgres in WSL: PANIC: could not flush dirty data

Problem and Solution attempts I'm getting the following error: PANIC: could not flush dirty data: Function not implemented - It's a reported issue with WSL I'm working in development. Production isn'...
0
votes
0answers
36 views

Custom SSH using MobaXterm from WSL

So I really enjoy using MobaXterm as a terminal on Windows 10, and I love how it integrates easily with WSL. That being said I've run into an issue using the SSH functionality of MobaXterm. I ...
0
votes
1answer
33 views

Why do tmux and oh-my-zsh both break color output from git log under WSL?

I recently decided to try out WSL (Ubuntu 18.04), and I installed zsh+oh-my-zsh, as I usually do. Pretty quickly I discovered that color output from git log is broken: Git log output, uncolorized ...
0
votes
1answer
18 views

Wget generating files instead of HTMLs

I am trying to download a whole website for viewing offline using wget --mirror -p --convert-links https://www.example.com but after it finishes, some of the HTML documents have no extension. ...
0
votes
1answer
42 views

Installing Jenkins on WSL failing

I am trying to install Jenkins on WSL (ubuntu on Windows 10) but it is failing somehow and not able to get the running status. here is the command to install and its output: user@machine:~$ sudo apt ...
0
votes
0answers
20 views

How can I run node on port 80 with WSL?

I've seen solutions on StackExchange around how to run node on port 80, but none of the solutions seem to work with Windows Subsystem for Linux (Win10). I can't set iptables port forwarding, even sudo ...
-1
votes
0answers
21 views

Is it a way to tell Windows to stop blocking files while they are used?

Is it a way to tell Windows to stop blocking files while they are used? I can't delete files in any way or change it with git while they are used by webpack-dev-server in WSL.
1
vote
0answers
46 views

Windows 10: Cannot open .ttf-files inside a (former) Git repository

For a java app I'm working we store some Ubuntu fonts in our git repository. Keep in mind, this all works as expected for other devs on other machines with a similar setup. This issue occurs only ...
0
votes
0answers
38 views

Couldn't open a raw socket. Error: Permission denied (13) (nmap) [duplicate]

I'm using nmap in windows Subsystem for Linux. Why isn't nmap scanning anything? I'm using the link scanme.nmap.org to scan. I was testing nmap to see if it works, but it didn't even initialize. It ...
0
votes
0answers
26 views

Windows 10 Ubuntu shell: How to make scoop installs visible?

I installed hugo using scoop, but when I try to run the hugo command, I get: -bash: /usr/bin/hugo: No such file or directory OTOH, running scoop install hugo, I get: WARN 'hugo' (0.54.0) is ...
0
votes
0answers
52 views

Why are there many zombie process in windows subsystem for linux(WSL)? How to kill them totally?

Recently, I find my WSL (ZSHELL) cost much CPU resource(around 35%) via the Windows resource manager. Then I try to find out and solve this problem as follows: ~ ps -ef UID PID PPID C ...
0
votes
1answer
40 views

how to open an office file from WSL

My computer: Windows 10 running WSL Ubuntu 18.04. I want to open a windows app file (e.g. an Excel file) from within a WSL bash prompt. I have made sure that excel.exe is in the $PATH. But when I ...
0
votes
1answer
46 views

access to .bashrc is denied on WSL ubuntu

After installing WSL Ubuntu, I edited .bashrc using Notepad.exe from Windows 10 Pro to insert a line export DISPLAY=:0.0. Now after starting Ubuntu terminal, a warning message is shown: -bash: /home/...
0
votes
0answers
23 views

How do I set up an external monitor as a screen for Ubuntu in the Windows Subsystem for Linux?

When I launch a graphics application using Ubuntu, installed on my Windows PC C:\Users\User\>bash user@PC:/mnt/c/Users/User$ gedit I get the following error message: Unable to init server: Could ...
1
vote
0answers
73 views

Tiny UI on ubuntu with wsl

I installed ubuntu on windows using WSL (windows subsystem for linux). I was able to install vscode and firefox via app-get install but when I launch them, they have very tiny UI and fonts. I am using ...
0
votes
1answer
40 views

Opening Linux Subsystem for Windows shell from Eclipse Photon (IDE)

Background I am running Eclipse Photon as my primary IDE for writing Java code. Eclipse has a terminal view that opens up a windows command line inside the application I assume this is simply ...
1
vote
1answer
63 views

Open a particular port so WSL can talk to my browser

I'm trying to run Jupyter notebooks from WSL (Windows Subsystem For Linux). The default port it uses is localhost:8888 However if I try to reach that in my browser, nothing happens. If I start ...
3
votes
3answers
59 views

Script run with shebang does not resolve aliases, how to circumvent?

My main shell is zsh. I am using Docker for Windows and therefore docker inside WSL is not found, because the call should be to docker.exe. A quick hack I found online was to alias docker=docker.exe,...
1
vote
0answers
32 views

Sharing folders in VMware similar to VirtualBox Shared Folders

Basically, running into issues related to Docker volumes using WSL to communicate with Docker server in a VMware box. Docker runs fine with this setup until it comes to volumes, then no matter what I ...
3
votes
2answers
161 views

How can I make a Windows shortcut that launches Bash and runs commands?

I've created a windows shortcut with a target that looks like "C:\Windows\System32\bash.exe" php /c/script.php (I know I could just use my windows verison of php cli to run this, but out of ...
0
votes
1answer
35 views

How to open an “Alt+Space” menu of WSL bash terminal using keyboard

Usual Windows applications (e.g.Cygwin terminal) will open an upper-leftmost menu for resizing/moving/closing the window, by typing Alt+Space, which is very convenient because you don't have to leave ...
0
votes
0answers
25 views

How to sign in as “root” in bash on Windows by Windows Subsystem For Linux

I tried using the command -lxrun /setdefaultuser root but I get a error : Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution. Distributions can be ...
0
votes
0answers
80 views

How to run a windows container inside Windows Subsystem for Linux (WSL)

I have managed to install docker on windows and am able to run docker from my ubunto bash prompt of the WSL but when I try to pull or run a windows image from docker hub I get the following error: ...
1
vote
1answer
65 views

How can I get a WSL linux path from cmd.exe?

I often need to know WSL mounted path names from Windows. I have now seen many sketch solutions to the problem so I thought I should share MY WAY. Use cases for this might be running a linux tool ...
0
votes
0answers
49 views

Windows Subsystem for Linux SSH:Permission Denied troubleshooting?

I've encountered an unusual problem with ssh for WSL on my laptop. Running with the '-v' flag gives the following, which doesn't help me much: OpenSSH_7.6p1 Ubuntu-4ubuntu0.2, OpenSSL 1.0.2n 7 Dec ...
0
votes
0answers
116 views

Windows Subsystem for Linux ssh issue

Context I am using Windows subsystem for Linux (WSL) on 2 different computers, and I want to ssh from one to another, and vice-versa. Both computers are on the same network, so they can communicate ...
1
vote
1answer
155 views

How to enable Ctrl + Shift + V in Windows Subsystem for Linux (WSL) / command prompt (cmd)?

How can I enable Ctrl+Shift+V in Windows 10 Pro (Version 1803, OS build 17134.619)? Reading how-to guides online it states to: Open a command line window Right-click an empty part of the title bar ...
0
votes
1answer
27 views

How to read the .log output of ConEmu console in Windows

I am using ConEmu to run Ubuntu consoles in Windows 10. I have specified that ConEmu exports .log files automatically at the end of each session. The log files look like this in Sublime Text: There ...
1
vote
1answer
63 views

Git Bash not clear history

I use window 10. I want to use fc to compare file, but it shows error: bash: fc: history specification out of range I went to clear git history using history -c It did clear history but when ...
0
votes
0answers
33 views

Windows Shortcut for bash command: what does {12345678 …} ~ mean?

I have the Windows Subsystem for Linux and this shortcut for Ubuntu Bash Desktop: C:\Windows\System32\bash.exe {12345678 ...} ~ What does {12345678 ...} ~ mean after bash.exe ?
0
votes
2answers
110 views

Windows Subsystem Linux terminal scrolling using keyboard

I'm currently using WSL for some shared development and one thing is bothering me: how to scroll terminal up/down in classical UNIX termianl fashion (i.e. using Shift + PgUp or Shift + PgDn)? It does ...
0
votes
0answers
127 views

In Arch Linux WSL (Windows Subsystem for Linux) what is the workaround for

==> Starting pkgver()... ==> Entering fakeroot environment... fakeroot, while creating message channels: Function not implemented This may be due to a lack of SYSV IPC support. fakeroot: error while ...
0
votes
0answers
47 views

USE Jest and Node for debugging JS Apps with WSL

I want to use NodeJS from WSL, on Windows 10. I read this Microsoft blog post, about adding configurations in launch.json, so, I used this config in launch.json { // Use IntelliSense to learn about ...
0
votes
1answer
375 views

Run 32-bit application on Ubuntu on Windows subsystem for Linux

I have a pretty simple application that was compiled with g++ -m32 flags. Unfortunately, when I try to run it I am getting error: bash: ./a.out: cannot execute binary file: Exec format error If ...
1
vote
1answer
38 views

I want to start windows 10 ubuntu environment automatically after the computer logs in

I am using windows 10, and the ubuntu environment that can be downloaded from the windows start or by installing it visa the CMD typing bash to get started. How could I start this ubuntu environment ...
2
votes
1answer
28 views

Renaming bash script's source directory from the script

I have the following section in my bash script: # Move to script's source directory (in case it's being called from somewhere else) cd $(dirname "${BASH_SOURCE[0]}") # Save script's source directory ...
0
votes
0answers
31 views

Map X: via sshfs command from Windows 10 BASH command line

I am interested in having a remote user mapping a drive to a remote sshfs server from a BASH running on Windows 10. sshfs username@server:/home/UsersHomeFolderAtServer X: or sshfs username@server:/...
0
votes
0answers
36 views

how to use rsync in Ubuntu app for Windows to copy only changed parts of files in Windows?

I have tried: rsync -a --delete source destination with no success. Is it doable in Ubuntu app for Windows? Win 10 1809 build 17763.316 *** Ubuntu **** Distributor ID: Ubuntu Description: ...
0
votes
0answers
48 views

Windows Subsytem Linux Inconsistent File I/O Errors

I've been having some pretty hard to diagnose issues working with WSL, Ubuntu 18.04 The problem: Random File I/O failures Environment: Windows 10 WSL: Ubuntu 18.04 Steps already taken apt-get ...
0
votes
1answer
29 views

VS2017 not downloading headers from WSL

I'm trying to remote build a C++ helloworld in VisualStudio2017 on WSL Ubuntu. I followed the instructions as outlined by Goodner on MSDN here: https://blogs.msdn.microsoft.com/vcblog/2016/03/30/...
8
votes
1answer
1k views

While trying to see the content of a zipped file, I only get information about the zipping process

In Ubuntu, installed on Windows Subsystem for Linux, I want to see the content of a zip file, using gzip --list. I expected to see a list of included files like this: FileName ratio File1 ...
0
votes
1answer
195 views

Complete SSL Ubuntu failure on Windows Subsystem

I am using ubuntu 18.04 on a windows subsystem and SSL has completely stopped working. When running curl -v https://google.com, I get OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to google.com:...
1
vote
3answers
197 views

How to access the Ubuntu filesystem in Windows 10?

I am running Ubuntu 18.04 as a Windows app in Windows 10. As far as I understand, this uses Windows Subsystem for Linux to run linux processes. From the Ubuntu terminal I am able to access the ...