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

Docker service not Starting on the new WSL 2

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
39 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
36 views

sudo systemctl cant 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
55 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
19 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?
-3
votes
0answers
53 views

Windows Linux subsystem

How to change the default location of files in windows linux subsystem from /home/mirinaam/'my python files' to /mnt/c/User/USER/Downloads/
0
votes
0answers
27 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
36 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.
1
vote
0answers
62 views

SSH Key authentication on WSL always says 'debug2: we did not send a packet, disable method'

/etc/ssh/sshd_config looks like this: pastebin.ubuntu.com link. It's default except I uncommented authorized keys, pubkey auth and listenaddress. Then I did ssh-copy-id -i ~/.ssh/id_ed25519 user@host,...
0
votes
0answers
62 views

Traceroute does not work, output is * * *

I'm trying to check how many servers are between me and domain server(google etc.). I'm using Linux(Ubuntu) subsystem on windows. Command traceroute wasn't working so I used a command sudo apt-get ...
0
votes
0answers
13 views

Wsl kali startup

i set up sshd on kali,but i'm un able to set it up as an automatic process My server is 70 km far away i can Wake on lan the machine with my mobile,then i can not ssh cause Windows 10 pretend to give ...
0
votes
1answer
51 views

WSL - Different behavior for zombie processes

I'm just playing around with zombie processes on WSL. I wrote a quite simple program: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #define CHILD 0 int main(){ ...
3
votes
1answer
171 views

Why does my date output have “STD” as the time zone?

When I run date on my Ubuntu under WSL, it prints: Wed May 15 19:33:37 STD 2019 Why does this have the string STD in it? I can't find a timezone online with the abbreviation STD (for example here) ...
0
votes
0answers
83 views

Monitor SSH attempts in Windows Subsystem Linux

I am trying to look at failed SSH attempts, which I could do on a regular ubuntu machine by looking at /var/log/auth.log. I've taken a look at Debian - auth.log missing from /var/log and the WSL has ...
0
votes
1answer
28 views

getlogin() not working on Windows Subsystem for Linux (WSL)

It seems, that the getlogin() function is not working when called from the Linux subsystem on Windows (it always returns null). This leads to two questions: Is there a working alternative? Is it ...
1
vote
1answer
45 views

Package manager says I have the latest version but there is a newer one

I'm trying to to install libgsf-1-114 package which according to the packages.ubuntu the latest version is 1.14.45-1. Currently I have version 1.14.36-1: apt list libgsf-1-114 Listing... Done libgsf-...
0
votes
0answers
128 views

Command '“export' not found for ddgr in Ubuntu 18.04 WSL

I wanted to install ddgr -- a command line utility of DuckDuckGo to browse the internet from the terminal. I followed instructions from this webpage https://www.tecmint.com/search-duckduckgo-from-...
0
votes
2answers
35 views

How does one properly call multiple cat commands from a single bash script?

I am trying to collect text files from multiple subdirectories and concatenate them into a single file per subdirectory. There may be a much better way of doing this but my question is, how does one ...
0
votes
1answer
46 views

Fuse not Loaded When Trying to Mount

I'm trying to execute this command in terminal: sudo mount -t cvmfs <repository> /mnt/cvmfs and I keep getting Fuse not loaded returned to me. I'm not quite familiar with what this fuse in ...
0
votes
0answers
41 views

Where to start after openSUSE minimal WSL install && zypper error

I've been using Ubuntu minimal as my main WSL distro for quite a bit. I like the idea of a rolling minimal distro and benefits it has. Also I like to try something new. To manage my distribution I ...
0
votes
0answers
33 views

Have asterisks show up for ssh password

I am currently trying to have my terminal show asterisks whenever I type my password for ans ssh connection. I'm using WSL with a Ubuntu 18 distro, but I don't think that should matter much (I may be ...
2
votes
1answer
259 views

Ubuntu for Windows — Can't open PDF files via xdg-open

My default application for opening PDF files is Adobe Acrobat XI Pro. I would like to be able to open PDF files using this program via the Windows Subsystem for Linux. Currently when I run xdg-open ...
0
votes
0answers
32 views

WSL Ubuntu 18.04 shows wrong Cpu_allowed mask

Ubuntu 18.04 running under WSL detects my CPU wrong: $ cat /proc/self/status | grep Cpus_allowed Cpus_allowed: 00000001 The CPU is an i7-4510U (2 cores/4 threads) so I expected: Cpus_allowed: f ...
2
votes
3answers
67 views

Why can't I delete this directory?

What is going on here? dave@dave-desktop:/mnt/w/Source/Sign/dist$ ls -la total 0 drwxrwxrwx 1 dave dave 512 Feb 27 08:55 . drwxrwxrwx 1 dave dave 512 Feb 27 09:09 .. drwxrwxrwx 1 dave dave 512 Feb 27 ...
1
vote
0answers
196 views

multi-core CPU usage

I am using the Windows Subsystem for Linux (WSL). Recently, I've been wanting to get better insight in the CPU usage of processes, but I am getting well confused. I am on a computer with 2 cores and ...
0
votes
0answers
74 views

Permission denied when changing user in a windows 10 bash (WSL)..moving bash between machines?

I am in a 'leap42' window as root (windows 10 bash), but I want to do 'su - newuser'..... and I get permission denied. The newuser and newgroup exist, and with 777 type permisions on the /home/...
0
votes
3answers
542 views

Editing text files in WSL with Notepad++

I use WSL (Windows Subsystem for Linux) with Debian, which provides a simple cmd interface. I'd like to open files in Notepad++, which is installed on the Windows side of this PC. is this possible? ...
2
votes
1answer
172 views

Unable To Rename Directory With Open File Handle

On Windows 10 within my Ubuntu Subsystem, when I open a file in a directory and try to rename that directory while that file is open, I am unable to do so. Example: $mkdir demo $touch demo/test.txt $...
1
vote
0answers
37 views

Backup and Sync from Linux to a WSL live (per each change) [duplicate]

I have a Linux (Arch/Debian) with only a CLUI (Bash) and a server environment (LAMP) with the following details: 4 GB RAM 2 vCPU Cores 80 GB SSD 4 TB Transfer 40 Gbps Network In 4000 Mbps Network ...
-6
votes
1answer
122 views

Why I can't switch from super user to regular user with su username? [closed]

I'm trying to switch to normal user but it doesn't work I just want a dollar sign instead of the hash... root@username:~# su username No passwd entry for user 'username' I'm on Windows on Ubuntu ...
0
votes
0answers
48 views

Trouble getting to Desktop directory, with Bash on Microsoft's Windows (WSL)

I'm using the Bash terminal for Windows and currently this is what I get when I type ls -a <username@userPC>:/$ ls -a . bin data home lib64 mnt root srv usr .. boot dev init lost+found opt run ...
0
votes
1answer
60 views

Is it safe to format C: drive in order to deploy Linux on a Windows 10 machine?

I have deployed several distros on Windows, such as Open SUSE Enterprise Server 15, Kali, and Ubuntu, but want to turn my currently Windows 10 machine to a Linux machine. Is Virtual Machine the ...
0
votes
1answer
789 views

Windows Subsystem for Linux: apt update error in Kali [duplicate]

I'm having trouble with the command: sudo apt-get update ,when I run it, I get the following message: Err:1 http://http.kali.org/kali kali-rolling InRelease Connection failed [IP: 192.99.200.113 80] ...
0
votes
1answer
43 views

Developing Mozilla Firefox for Linux on Windows

I would like to make some contribution to Mozilla Firefox (with the little C++ I know). Can I build, run and debug Firefox for Linux using WSL (Windows Subsystem for Linux) ? If yes, should I install ...
0
votes
1answer
369 views

Implications for deleting files using WSL

Are there any downfalls to using WSL to delete files (e.g. rm someFile) on the regular Windows file system (mnt/c)? Likewise, is there a downfall to using Windows to delete (for example by 'right ...
0
votes
1answer
812 views

airmon ng ls: cannot access '/sys/class/ieee80211/': No such file or directory

Im using ubuntu bionic (UBUNTU WSL) I can't use airmon-ng! It throws the following ls: cannot access '/sys/class/ieee80211/': No such file or directory I checked airmon-ng: ls: cannot access '/...
0
votes
1answer
1k views

Does windows subsystem for linux detects usb wifi adapter? [closed]

I am thinking of buying a usb wifi adapter but i'm not sure if it'll be useful when im using wsl
2
votes
2answers
944 views

“dd” an image onto an sd-card from Ubuntu in Windows Subsystem for Linux

I have a bootable disk image file that I'd like to write onto an sd-card. However, I only have a Windows 10 machine available - it has the Windows Subsystem for Linux already installed, Ubuntu runs, ...
0
votes
1answer
359 views

Permission denied: cannot create /dev/null

I've been trying to get the github commit chart hack to work for like a week now. this one https://github.com/mavrk/github-graffiti and this one https://github.com/gelstudios/gitfiti and this one ...
-1
votes
1answer
130 views

Windows Subsystem for Linux home versus Windows Environment home [closed]

I've been trying to get it to connect to my github, but keep getting an error. I think it thinks I'm a different user :( ... (don't ask why i have two similarly named users, i don't even know anymore.....
1
vote
1answer
1k views

SSH In Windows 10 Bash(Ubuntu)

I'm trying to turn my Windows 10 desktop into a secure ssh server. sshd is running but I can't get any of my other computers to connect to it. I'm using passkey authentication with ed25519. I'm using ...
2
votes
1answer
460 views

site-packages directory not found after installing pip3 with apt-get in Ubuntu WSL

I installed python 3 and pip into in Windows System for Linux shell, but it appears I have to find and specify site-packages directory manually if I want to run any python package executables. The ...
0
votes
1answer
1k views

Can't access SSH server running in WSL [closed]

Basically I have enabled a SSH server in Kali WSL Linux. The problem is that when I do ssh root@192.168.0.225 from Windows and provide the password, it works just fine and the connection succeeds. ...
0
votes
1answer
163 views

Colors in Terminal and VIM with Windows Subsystem

I'm running Debian GNU/Linux through the Windows Subsystem, and I thought it was pretty cool. However, I'm having issues setting up colors in my terminal and VIM. I used to use Ubuntu as a thing to ...
1
vote
3answers
6k views

Default password for Kali Linux on Windows 10?

What is the default password for Kali on Windows 10 via Windows Subsystem for Linux?
0
votes
0answers
96 views

WSL: Redirect links to host

As Windows is missing a nice twitter client I'm using WSL, with X11 forwarding to get Corebird running on my Windows 10 host. The question is: Is it possible to redirect the click on a link within ...
5
votes
1answer
319 views

Attempting to run a regular tunnel in Debian version 9.5 Linux

I entered the following line in the modules.conf file under the /etc/modules-load.d/modules.conf path: alias char-major-10-200 tun And then I typed the following command from the Debian 9.5 Linux ...
0
votes
1answer
596 views

Escaping ampersand (&) in URL in Bash under WSL

I'm trying to write a Bash function which will take some arguments from the command line and put them in a URL which contains URL parameters (i.e. contains ? and &). If there is only one ...
1
vote
1answer
643 views

creating alias in bashrc in wsl [duplicate]

I'm trying to create alias for for cd command to AppData and %programdata% folders but I got path not found while if I write manual it works, here is what I'm doing: In .bashrc I do alias client= '...