Questions tagged [windows-subsystem-for-linux]

Use this tag for questions about the Windows Subsystem for Linux, including Bash on Ubuntu on Windows and other distributions running under WSL.

Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

Can we install Oracle Database on Windows Subsystem for Linux

I tried to install Oracle Database on Windows Subsystem for LINUX and when i tried to execute command ./runInstaller following error occured ERROR: Unable to verify the graphical display setup. This ...
0
votes
0answers
22 views

Why my WSL ubuntu 18.04 is showing me black screen [closed]

I was trying to use WSL, so i enabled it & virtualization's setting in control panel>windows feature on/off restarted pc, opened Ubuntu 18.04 in administrative mode. The CLI opened but did't show ...
1
vote
0answers
34 views

Weird '?' characters all over inside vim editor in tmux session

So I am excited to use WSL feature of Windows 10 and I choose Ubuntu distribution. I installed vim version 8.0 and tmux version 2.6. However to my frustration, when I use vim inside tmux session, all ...
0
votes
0answers
25 views

WSL Run Service at Start

I'm honestly not sure if this is an issue with WSL or I'm just doing something wrong for Ubuntu in general, but I cannot get the cron service to run at start on my WSL system. It starts just fine ...
0
votes
1answer
25 views

Use shift-Insert to paste in WSL

# When I do just Shift-Insert, I get ~$ 2~ # When I do Ctrl-V, then Shift-Insert, I get ~$ ^[[2;2~ Shift-insert works well in other situations, like Windows CMD or Git-Bash In wsl, I can use Ctrl-...
0
votes
0answers
19 views

WSL Debian - Clear Command messing up my terminal

I just installed WSL Debian and when I use the clear command it clears everything - I'm not even able to see the input line anymore or my cursor. When I scroll up, I do find my input line w/ ...
0
votes
1answer
34 views

SSH server for WSL openSUSE

I can't seem to find instructions to set up SSH access for my WSL openSUSE. There are plenty of instructions for openSUSE, but those don't work (no systemctl, and no sshd). There are plenty of ...
1
vote
0answers
66 views

Unable to use X11 Forwarding between Windows (WSL) and Linux

I am having issues with X11 forwarding between a Windows 10 system using WSL and a Ubuntu 19 system. To clarify, I am wanting to connect to the Ubuntu server (LNX) from the Windows 10 system (WIN). ...
0
votes
1answer
21 views

Work in a remote terminal with Terminator

I have Windows Subsystem for Linux and I would like to be able to keep some commands running even if my computer is sleeping. I have been told that one way is to work in a remote terminal. I have been ...
0
votes
1answer
85 views

Launching Electron on Ubuntu WSL

I am running a WSL2 Ubuntu system. I'm attempting to follow this tutorial to launch an Electron boilerplate: https://github.com/electron-react-boilerplate/electron-react-boilerplate When running yarn ...
0
votes
0answers
21 views

Encode/Decode by certutils.exe on windows

How to decode file on Linux, which was encoded on Windows by certutil? certutil.exe -encode orig.zip orig.zip.txt
0
votes
1answer
41 views

Using bind breaks shell

(WSL with Ubuntu 18.04) I have some configuration settings that I have used before and that can be seen recommended in various places across the internet (not to mention on SO). I hav placed them in ...
3
votes
2answers
218 views

Match Exec failing to execute anything

Testing out the SSH Match Exec feature. I have this minimal ~/.ssh/config: Match Exec echo ServerAliveInterval 60 and I am running ssh localhost I get Unable to execute 'echo': No such file ...
0
votes
1answer
51 views

How to dynamically pass values in awk

I'm trying to split a csv file with too many rows into chunks of user defined no. of rows, using the following script using awk but its not generating any output, the file is created but its blank. ...
0
votes
1answer
51 views

“ ex.sh: line 11: syntax error near unexpected token `done' 'x.sh: line 11: `done <$1 ” error

I am trying to read a csv file using the following script But I am constantly encountering the error ex.sh: line 11: syntax error near unexpected token \`done' 'x.sh: line 11: \`done <$1 Please ...
0
votes
1answer
85 views

Why can I not change window title with mintty/wsl

I started mintty of cygwin, and run following commands : ~$ # here, we are in cygwin/bash ~$ printf "\e]0;cygwin\7" ~$ # Now I see "cygwin" on mintty's title ~$ wsl ~$ # now, we are in wsl/bash/...
3
votes
1answer
552 views

Windows Subsystem Kali Linux 13: Permission denied

I have installed Kali linux version Linux DESKTOP-0667P5P 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 GNU/Linux as a subsystem on my machine that is running Windows 10, I'...
0
votes
1answer
37 views

Working gnu-screen alternative for WSL-minecraftserver

I want to launch my minecraft server on SSH on WSL (Ubuntu 18.04) on Windows. The way I plan to do it with a phone or something: Connect to vpn, then ssh into windows, then type wsl (works fine), and ...
0
votes
1answer
17 views

how to configure current directory when starting WSL distro via Windows Start Menu or pinned on Task Bar?

When installing a WSL (Linux) distro via the Microsoft Market Place, we get a default icon in the Windows Start Menu, with which to start it (e.g. "Ubuntu"). We can also pin that icon to the Task Bar. ...
0
votes
0answers
93 views

Bash completion not working in subshell

If I open a terminal window, or open a terminal in tmux, tab completion works as expected, but if I type bash to open a subshell, it doesn't. Below is my .bash_profile and .bashrc # .bash_profile [[ ...
1
vote
1answer
164 views

Windows Subsystem for Linux (WSL) not actually saving $DOCKER_HOST

The situation: I develop on a windows VDI that uses the WSL to run docker, and I'm actually using a remote docker daemon running on a Red Hat server. Locally, I have the DOCKER_HOST variable set to ...
0
votes
1answer
136 views

Using cu in WSL

I'd like to connect a serial device in WSL. The device is named Silicon Labs CP210x USB to UART Bridge and connected via COM3 port. In Windows it is able to access the device through serial monitor, ...
0
votes
1answer
479 views

I am trying to use wifite on kali linux windows subsystem

I am using modified wifite for linux:https://github.com/derv82/wifite2 But i can't get it to work. I have instaled all necessary apps for wifite to work. Every time when i run it it give out: "Error: ...
1
vote
0answers
164 views

Can't setup isc-dhcp-server in Windows 10 subsytem running Debian

I am trying to setup a DHCP server in Windows subsystem for Linux running Debian. I have followed this guide as I am still quite new to the Linux scene. Although I did change some values in the dhcpd....
2
votes
0answers
56 views

Why is the GNU find command telling me that any valid path is an “invalid argument”?

This is a possible duplicate of Find not working, but since I am a new member I thought I'd ask a new question instead of commenting on that question's answer. Please forgive me and LMK if I should do ...
2
votes
1answer
102 views

rename 'y/A-Z/a-z/' * doesn't work on windows subsystem for linux (wsl)

When you do it it says file already exists. example output: rename 'y/A-Z/a-z/' * Totemic-1.12.2-0.11.6.jar not renamed: totemic-1.12.2-0.11.6.jar already exists TreeChoppin-1.12.2-1.0.0.jar not ...
0
votes
0answers
218 views

Error when trying to install packages via pacman on Arch Linux WSL

I am using Arch for Windows Subsystem for Linux build. Whenever I try to install a specific package (e.g. python) it displays a Y/n prompt: :: Import PGP key [KEY], "[Name]", created: [date]? [Y/n] ...
0
votes
1answer
45 views

Is there a cross-platform “time units separation” standard?

When I create backups with date I usually put the current date as part of a backup file in the format of: year-month-day-hour:minute:second so I get a file like: database-username_database-name---...
0
votes
0answers
99 views

Why does changing my home directory in WSL break my PATH but only in the second window in tmux?

A bit ago, I found it necessary to set my home directory to my One Drive in WSL. Thanks to this post I was even able to get my permissions working correctly within WSL (Ubuntu 16.04 LTS). However, ...
0
votes
1answer
257 views

.bashrc not read on WSL if $HOME contains spaces

I recently: Specified a home directory path for a user in /etc/passwd with spaces in it? but now my .bashrc doesn't source properly when I open a Ubuntu 16.04 LTS WSL window, so I have to source it ...
0
votes
1answer
100 views

Specify a home directory path for a user in /etc/passwd with spaces in it?

I have a path I want to use as a home directory in WSL, but it's also path that has spaces in it. I've tried escaping the spaces with slashes, and I've tried using single and double quotes with just ...
1
vote
1answer
579 views

VirtualBox isn't working correctly on Windows 10 bash/linux subsytem

I've using/on Windows10 v1903. WSL: GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu). Ubuntu 18.04.3 Inside windows10, I ran bash (ran command prompt as an Admin, then > bash). Inside Bash, I'...
0
votes
1answer
70 views

Permission denied in fish shell on Debian when I edited the oh-my-fish “theme” file

I edited the "theme" file to display "bobthefish" instead of "default" using Windows. <W> fish: An error occurred while redirecting file “/home/purplesci/.config/omf/theme” open: Permission ...
0
votes
0answers
46 views

Symbols showing on blue background in Debian with oh-my-fish on WSL

I am using fish-shell on Debian with oh-my-fish installed. When I run the shell, it shows the prompt not on the black bckground, but on the light blue instead. This is running in Windows Terminal ...
0
votes
0answers
116 views

Mounting a share read-only from fstab on a Windows Domain with Ubuntu Windows Linux Subsystem?

There are windows machines out on the network and I want to mount for instance \\Some-Box\c$\Program Files (x86)\calc I went into the man page for mount.cifs and found the following: sec= ...
0
votes
0answers
178 views

SSH into WSL from Raspbery Pi

I have a windows 10 machine running WSL (ubuntu) and a raspberry pi. I'm able to ssh into the rpi from WSL without a problem, and I'm able to use Putty to ssh into WSL while all the Windows machine (...
0
votes
2answers
55 views

Must shell scripts be executable?

Looking at the files in my /etc/profile.d directory: cwellsx@DESKTOP-R6KRF36:/etc/profile.d$ ls -l total 32 -rw-r--r-- 1 root root 96 Aug 20 2018 01-locale-fix.sh -rw-r--r-- 1 root root 1557 Dec ...
1
vote
3answers
288 views

How to create bash alias on Ubunth WSL when username has space and apostrophe

I'm trying to create the following alias in Ubuntu WSL: alias windocs='cd /mnt/c/Users/Firstname L'astname/Documents/' My username is unfortunately Firstname L'astname, including the space and ...
1
vote
1answer
331 views

How do I repair Windows Subsystem for Linux (WSL) after accidentally running `history | script`?

I have a Windows Subsystem Linux installation (the distro is Ubuntu). I use it to build a Rails project and deploy branches to the server. Things worked OK for the last year. Today I accidentally run ...
1
vote
1answer
197 views

How to use zsh-theme file with pure Z shell on WSL

I'm using WSL (Legacy (Default) which actually is Ubuntu 16.04) and I use Z shell (with no framework or plugin manager) as my shell in the terminal. My current theme is Geometry which contains a .zsh ...
1
vote
0answers
40 views

Utility “dar” tries to read files and directories not specified (using only --include-from-file)

The PC of my colleague died a few days ago, and so I decided it was time for me to setup a "backup strategy". We are on Windows PCs, but with WSL, I get most of the Linux commands as well, so I ...
0
votes
2answers
2k views

How do I access my Windows Desktop directory from inside Windows Subsystem for Linux? [closed]

I am using Ubuntu for my terminal. I am unable to access my Desktop and when I type "ls" nothing shows up. How do I log in via desktop environment in order to access my desktop files? huque@RNB:~$ ...
2
votes
1answer
2k views

Docker service not starting on new WSL2

Im trying to start docker in the brand new WSL2 with the following command : sudo service docker start then: sudo service docker status result : * Docker is running BUT on running the test ...
2
votes
0answers
103 views

Using cp to copy ~/.config to an external drive but getting “cannot create regular file…File exists” errors

The command is simple enough, executed while in a subdirectory of /mnt/e, an external drive: cp -r ~/.config .. Every time, every time I run it, the same set of files refuse to copy properly: cp: ...
0
votes
0answers
3k views

sudo systemctl can't operate (PID 1)

I am creating a server node red for Ubuntu. I used command sudo systemctl daemon-reload but then I get the following error "System has not been booted with systemd as init system (PID 1). Can't ...
1
vote
0answers
40 views

cp - Does not recognizning accent characters [duplicate]

I have written a simple script, to copy some files, and change there name: #!/bin/bash for directory in ./../old_files/*; do DIR_NAME=$(basename $directory) for file in $directory/*; do ...
0
votes
1answer
90 views

Shell Script cannot find python3.6 interpreter

I have a file called update.sh which looks like this: #!/bin/sh python3.6 When this file is located in /bin directory it works and python3.6 starts like this: Python 3.6.7 (default, Oct 22 2018, ...
0
votes
0answers
22 views

How to use NuGets in linux?

I have to port an application from Windows to Linux. It has some un-managed C++ code and C# sharp code. On windows its making use of NuGets. Can somebody help me with Linux?
0
votes
0answers
165 views

Permission issue inside docker on WSL

When I try to start jenkins inside docker inside WSL I get a permission issue. ⇒ sudo docker run --name jenkins_3 -p 8081:8080 -p 50001:50000 -e JAVA_OPTS="-Djava.io.tmpdir=/mnt/c/exemple_dir" ...
2
votes
0answers
46 views

stop ding notification in ubuntu - windows 10 app

I am using Ubuntu Windows 10 app, but when ever I press Tab or miss spell anything ding notification sound is coming, I am trying to find an option to stop it.