windows-subsystem-for-linux

Copy Files from Windows to the Ubuntu Subsystem [closed]

て烟熏妆下的殇ゞ 提交于 2019-12-02 14:48:20
I have enabled developer mode and installed Bash on Ubuntu on Windows . My home directory can be found under %localappdata%\Lxss\home\<ubuntu.username>\ , i have created a sub-directory called Pictures such that the full path should be on windows: C:\Users\<windows.username>\AppData\Local\lxss\home\<ubuntu.username>\Pictures on bash: /home/<ubuntu.username>/Pictures if i create a file from bash using the command touch hello.txt i can freely see this file in the windows UI and copy it to my Desktop. However, if i create a new text file from the windows UI and save it in C:\Users\<windows

Move WSL (Bash on Windows) root filesystem to another hard drive?

半世苍凉 提交于 2019-12-02 14:12:52
I've just upgraded the Windows 10 in my laptop to Redstone 1. So I had a test of the Linux subsystem (aka. WSL, LXSS or Bash on Windows). Basically, everything is fine, but there is a problem that the RootFS of WSL is located in the %LocalAppData% path (e.g. C:\Users\xyz\AppData\Local ), which is also the place where my Windows OS located. It consumes a lot of the SSD hard drive space in my laptop and I hope I can move it to my external hard drive. There is an another problem. Since the other hard drive partitions are mounted as DriveFS, it does not support some Linux filesystem features like

Disable beep of Linux Bash on Windows 10 [closed]

和自甴很熟 提交于 2019-12-02 13:48:22
Having a Linux Bash on Windows 10 is pretty cool, but as far as I've got to struggle with the not-so-good terminal provided from Microsoft I'm gonna get stuck with Ubuntu for everything. Anyway, is there a way to turn off that beep whenever you do something on the Bash? Since it is not possible to comment out bell-style audible because is not there, nor is it possible to launch sc config beep start= disabled To disable the beep of bash you need to uncomment ( add if not already there), set bell-style none in your /etc/inputrc file. Note: Since it is a protected file you need to be a privileged

Script that detect usb when it is inserted and copy files from usb to computer

我只是一个虾纸丫 提交于 2019-12-02 08:50:00
I am trying to write a windows batch script that will run all the time and when a usb flash drive will be inserted it will copy files from usb to computer. I've found a lot of script that do different parts of it but none of them works as I want. Can sombody help me ? Hackoo I posted before a vbscript here to do what you want just take a look and try it ! Vbscript to copy files with specific extension from usb when plugged in Edit on 19/07/2016 @10:42 : I improved this vbsript to run as admin, and to let executing just one insctance of this script. AutoSave_USB_SDCARD.vbs to copy into My

Remember git passphrase in WSL

允我心安 提交于 2019-12-02 06:03:42
问题 I run Windows 10 with WSL. I have the desired behaviour on one computer, but cannot replicate elsewhere. Here's what I'm after: First time I run a remote git command using my ssh key, git prompts me for the passphrase Subsequent times no prompt, including in new terminal windows (I use ConEmu) When all console windows are closed, back to #1 Things I've tried: using eval $(ssh-agent) , followed by ssh-add ; it will remember the passphrase, but if I put it in my ~/.bash_profile then it prompts

Windows Subsystem for Linux has missing Bash commands after changing directory to google drive file sync (GDFS)

房东的猫 提交于 2019-12-02 02:56:28
In the images below I have changed my directory to the mounted google drive file stream volume but i'm unable to use the ls command. Using Google Drive File Stream Version 28.1.48.2039 来源: https://stackoverflow.com/questions/49944731/windows-subsystem-for-linux-has-missing-bash-commands-after-changing-directory-t

Remember git passphrase in WSL

本秂侑毒 提交于 2019-12-02 00:35:18
I run Windows 10 with WSL. I have the desired behaviour on one computer, but cannot replicate elsewhere. Here's what I'm after: First time I run a remote git command using my ssh key, git prompts me for the passphrase Subsequent times no prompt, including in new terminal windows (I use ConEmu) When all console windows are closed, back to #1 Things I've tried: using eval $(ssh-agent) , followed by ssh-add ; it will remember the passphrase, but if I put it in my ~/.bash_profile then it prompts me for every new console window, and I open a lot - many of which I'm not using git in. setting git

“Non Zero Exit Status” R 3.6.0 “Biobase”

眉间皱痕 提交于 2019-12-01 19:34:16
I need to install different packages on R. The OS is ubuntu for windows. When I try "BiocManager::install("Biobase") I get the following error: ** R ** data ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries mv: cannot move '/home/mark/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-Biobase/00new/Biobase' to '/home/mark/R/x86_64-pc-linux-gnu-library/3.6/Biobase':

Segmentation fault when passing internal function as argument

喜你入骨 提交于 2019-12-01 13:37:53
I have some code that passes an internal function of the main program as an argument to a function: when the function that been passed is eventually called it causes a segmentation fault. This only occurs when I use Windows Subsystem for Linux (I'm using Ubuntu 16 on WSL); running on native Linux or Mac machines this does not occur. A minimal example that crashes: module test1 implicit none contains subroutine x(ff,y) interface real function ff(y) real, intent(in) :: y end function ff end interface real, intent(in) :: y integer z z=ff(y) end subroutine x end module test1 program tester use

Windows Subsystem for Linux DISPLAY variable setup

僤鯓⒐⒋嵵緔 提交于 2019-12-01 11:47:24
问题 I'm experimenting with Windows Subsystem for Linux and am trying to create python plots using Matplotlib. But i get the following error RuntimeError: Invalid DISPLAY variable echo DISPLAY shows nothing. How can I setup the DISPLAY variable? 回答1: The Windows Subsystem for Linux doesn’t officially support graphical GNU/Linux desktop applications, so we have no guarantee that the calls made by our graphical program of choice will be implemented as windows system calls. The main issue you are