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

2
votes
1answer
704 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
299 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: ...
3
votes
1answer
762 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
2k 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
202 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
40 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
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! @ @@@@@@@@@@@@@@@@@...
1
vote
1answer
464 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
43 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, ...
1
vote
1answer
711 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. ...
2
votes
0answers
771 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 ...
5
votes
4answers
6k 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
106 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 ...
4
votes
2answers
2k 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 ...
1
vote
2answers
2k 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
523 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
4k 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 ...
30
votes
4answers
17k 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?
0
votes
1answer
229 views

No longer access to files and folders in mounted containers using WSL/Bash?

Windows 10 Build 16299 GNU Bash Version 4.3.11 VeraCrypt 1.19 Previously, I had an encrypted container mounted on the H: of my machine, which I could access with both the Explorer window and cmd ...
0
votes
1answer
55 views

Clear terminal while active process is outputting content

Let's say I'm running a script that outputs a lot of content. Halfway through I want to clear the output so that if I scroll up, I only see output created after that point. On Mac OS X Terminal, I ...
1
vote
1answer
663 views

How to correctly find out what IP address to use for network sharing directories in WSL and Windows 10?

I came across this question here: Mounting network drive in Windows 10 bash? Where mounting network share directories between Windows 10 and WSL is supported in Windows 10 Creator's Update (1703). ...
1
vote
1answer
2k views

Ubuntu on Windows showing WSL as not enabled, even though Windows showing WSL as enabled

When I launch Ubuntu, I receive the following error: The WSL optional component is not enabled. Please enable it and try again. See https://aka.ms/wslinstall for details. Error: 0x8007007e Press any ...
0
votes
1answer
250 views

Open URL with VIM in Ubuntu WSL (Windows Subsystem for Linux)

You can use the gx command to open a URL in vim. Is this possible when using vim within Ubuntu in WSL?
0
votes
0answers
175 views

How to change the default download folder for Lynx in the Windows Subsystem for Linux?

I have been testing the Windows Subsystem for Linux (Ubuntu) for learning a little on how to use the bash shell as it looks it can be a powerful tool. I have been trying some terminal programs like ...
-1
votes
2answers
584 views

Windows - terminal colors behaving strangely

I have for some time been experiencing weird behavior with the colors my terminal displays. Above is a screenshot of bash (from Windows Linux Subsystem) inside of Hyper terminal. You can see that the ...
6
votes
1answer
1k views

Can you install any other distros in Win10's “Windows Subsystem for Linux”?

In "Install the Linux Subsystem on Windows Server", Microsoft mentions three distributions that are officially provided: Debian, Kali, Ubuntu, OpenSUSE, and SLES. Since we have Debian-based and ...
0
votes
2answers
403 views

Broke Windows Subsystem For Linux systemd with dist upgrade, how can I fix it? [duplicate]

After any update or upgrade operation I get the following: Need to get 0 B/389 MB of archives. After this operation, 416 MB of additional disk space will be used. Do you want to continue? [Y/n] y ...
2
votes
0answers
235 views

Can't install linux-libc-dev on WSL/Bash on Ubuntu on Windows

I'm trying to install linux-libc-dev on Bash on Ubuntu on Windows (the Windows Subsystem for Linux). This is to fix an earlier bash error: The following packages have unmet dependencies: libc6-dev : ...
0
votes
0answers
170 views

ssh on ubuntu subsystem for windows 10

I want to ssh on ubuntu subsystem for windows but get the error: Permissions 0777 for '/mnt/d/mydir/mykey.pem' are too open chmod to 666 seems not to work because it gives the same 777 error.
0
votes
0answers
965 views

Adding XFCE GUI on top of Windows Subsystem for Linux

I want to setup a GUI on top of WSL and chose XFCE4 as this successfully worked with a Kali-rolling deployment with its xfce4 gui on another Windows 10 computer. I however don't want to reuse the ...
1
vote
1answer
219 views

Certain LS results unreadable with Solarized theme on Windows 10 Linux subsystem

After fiddling around for a while, I was able to get Bash on Windows to use the Solarized color scheme via the method discussed in this thread. It even allows me to have vim switch over to the light ...
0
votes
0answers
362 views

windows 10 ubuntu change default window size

I've tried ccsm as in this post, but it crashes immediately with GtkWarning: could not open display...AttributeError: 'NoneType' object has no attribute 'get_default_screen' I've also tried xterm and ...
0
votes
0answers
172 views

Mkdir creates file instead of directory on windows network drive mounted as drvfs using Ubuntu/windows 10 under WSL

The command mkdir creates a file rather than a directory on a mounted network drive on a windows 10 system operating under the Windows sub-system for linux, using the Ubuntu app. After installing the ...
1
vote
0answers
163 views

How can reverse-SSH be established with Windows Subsystem for Linux (WSL)?

I need reverse-SSH access to Windows Subsystem for Linux (WSL) Ubuntu. Normally this isn't a problem with Linux machines but with WSL it isn't working. First I establish the reverse SSH connection ...
2
votes
0answers
3k views

Using Gnome Desktop on Windows WSL version of ubuntu

For Windows 10 Pro 64 Bit, is there a way to install the Gnome Desktop in the Windows (WSL downloaded from the MS Store) version of Ubuntu? Or do I need to use a different distro?
0
votes
0answers
279 views

Changing WSL display color for agnoster zsh

I have been breaking my head in using the agnoster theme in zsh. the README says to check echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699" which provides the following output I cant ...
0
votes
1answer
161 views

VS Code Weird Highlight in Terminal

This screenshot shows a weird highlighting in the VS Code terminal running a Bash on Ubuntu on Windows session. It starts part way through the output of the first PS1 prompt and continues on. It stays ...
1
vote
1answer
368 views

How to access Linux subsystem from same local network?

I create a Node server on Linux subsystem, it can access by localhost in windows, and its' local IP is 192.168.0.17. However, it cannot be accessed by other PC in the same local network by typing 192....
0
votes
1answer
1k views

how to install “linux subsystem” in my windows?

i tried everything powershell, enabling developer mode everything and nothing seems to work. Tried with: DISM.exe /Online /Enable-Feature /All /FeatureName:Microsoft-Windows-Subsystem-Linux /...
1
vote
1answer
3k views

Windows error: “'Enable-WindowsOptionalFeature' is not recognized”

I am attempting to install the Windows Subsystem for Linux on my Windows 7 machine, following the instructions shown in this documentation. The first step there says to run the command > Enable-...
1
vote
0answers
2k views

Why do I keep getting “Authentication Failed” on Github when running through the Win10 Linux subsystem?

I'm on a machine running Windows 10, with Developer Mode enabled and the Linux Subsystem installed. When I switch into bash, I am trying to run a simple clone command from git: git clone https://...
1
vote
1answer
1k views

Does Windows Subsystem for Linux consume resources (CPU/memory/HD) when I don't use it?

I need Linux tools to simplify my life as a developer, and to connect effortlessly to remote Linux servers. I would like to install the Windows Subsystem for Linux (with Ubuntu distro) but my laptop ...
1
vote
1answer
67 views

Minimizing Windows Console shifts everything up by one line, solution?

I am a faithful user to WSL, and I've installed quite some of my favorite Linux softwares like Vim and tmux. The problems, whenever I minimize the window and restore it, everything gets shifted up by ...
1
vote
1answer
441 views

How do I un-mount a drive in Windows Subsystem for Linux?

I successfully mounted a network drive in the Windows Subsystem for Linux (Ubuntu). sudo mkdir /mnt/t sudo mount -t drvfs T: /mnt/t After exiting bash, and coming back, I still see the /mnt/t ...
1
vote
0answers
743 views

SSH from a Ubuntu VM on Win 10 Hyper-V to Ubuntu on WSL

I just setup a small lab with an Ubuntu 17.10.1 VM on Hyper-V on a Win 10 host, and was trying to SSH from this VM into the WSL (Windows Subsystem for Linux) Ubuntu Instance in Win 10. I am constantly ...
2
votes
4answers
4k views

Win 10 Linux Subsystem: Auto-mount network drives

I have no problems mounting a network drive W: with the following command: sudo mount -t drvfs W: /mnt/htdocs In /proc/mounts the corresponding line then is: W: /mnt/htdocs drvfs rw,relatime 0 0 ...
1
vote
1answer
1k views

No “ls” command in bash for Windows 10

I have recently installed bash in Windows 10. Everything seems to be working fine, with the exception of the "ls" command. When I type ls from the $ prompt, it returns nothing and goes directly back ...
0
votes
1answer
104 views

wsl-terminal - missing rvm in it's $PATH

Using wsl terminal, which is awesome and a life saver compared to the default Windows WSL terminal emulator. I am not able to get Ruby's rvm environment to initialize. In the default Windows WSL ...
2
votes
4answers
3k views

Windows Subsystem Linux - Make VIM use the clipboard?

To get this off the table now and avoid any confusion ... This is for Linux running in Windows 10(ubunutu), also known as WSL. Its not the same as cygwin and windows or stand alone linux. It is it's ...