windows-subsystem-for-linux

How to install and run Tacotron2 on Ubuntu WSL?

我是研究僧i 提交于 2020-08-25 07:06:47
问题 I am running Ubuntu 20.04 on WSL Windows 10 Pro 2004 (19041.388) , and I am very much wanting to run Tacotron2 and try out the functionality. I have installed Tacotron2 from git via command-line, but I'm uncertain whether it built successfully. Please be patient with me because I am noobish with linux and docker, and the install instructions from above-linked Tacotron2 seems confusing. If someone could help, I think a simplified and comprehensive set of steps could help a lot of people. So

Connect MySQL Workbench on WSL MySQL?

亡梦爱人 提交于 2020-08-10 22:09:07
问题 I have installed MySQL on WSL2 with the following $ sudo apt remove --purge *mysql* $ sudo rm -rf /var/lib/mysql $ sudo apt install -y mysql-server mysql-client invoke-rc.d: could not determine current runlevel ... * Stopping MySQL database server mysqld [ OK ] update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode Renaming removed key_buffer and myisam-recover options (if present) Created symlink /etc/systemd/system/multi-user.target.wants/mysql

Connect MySQL Workbench on WSL MySQL?

青春壹個敷衍的年華 提交于 2020-08-10 22:08:07
问题 I have installed MySQL on WSL2 with the following $ sudo apt remove --purge *mysql* $ sudo rm -rf /var/lib/mysql $ sudo apt install -y mysql-server mysql-client invoke-rc.d: could not determine current runlevel ... * Stopping MySQL database server mysqld [ OK ] update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode Renaming removed key_buffer and myisam-recover options (if present) Created symlink /etc/systemd/system/multi-user.target.wants/mysql

could not select device driver “” with capabilities: [[gpu]]

蹲街弑〆低调 提交于 2020-08-08 05:31:06
问题 I am trying install Cuda on WSL 2. I am following instructions such as this. After executing every step, I try to check if gpu is available in the Linux environment by executing docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark (as suggested by the aforementioned instructions). But I get the following error: docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. ERRO[0000] error waiting for container: context canceled .

GPU Acceleration with WSL 2

只愿长相守 提交于 2020-08-07 07:34:05
问题 I'm trying to setup tensorflow to use GPU acceleration with WSL 2 running Ubuntu 20.04. I'm following this tutorial and am running into the error seen here. However, when I follow the solution there and try to start docker with sudo service docker start I get told docker is an unrecognized service. However, considering I can access the help menu and whatnot, I know docker is installed. While I can get docker to work with the desktop tool, since it doesn't support Cuda as mentioned in the SO

GPU Acceleration with WSL 2

烈酒焚心 提交于 2020-08-07 07:32:09
问题 I'm trying to setup tensorflow to use GPU acceleration with WSL 2 running Ubuntu 20.04. I'm following this tutorial and am running into the error seen here. However, when I follow the solution there and try to start docker with sudo service docker start I get told docker is an unrecognized service. However, considering I can access the help menu and whatnot, I know docker is installed. While I can get docker to work with the desktop tool, since it doesn't support Cuda as mentioned in the SO

Is there a reliable way to avoid permission denied errors when installing Ruby gems with native extensions on Windows Subsystem for Linux?

久未见 提交于 2020-08-06 11:41:16
问题 I'm hoping that WSL2 solves these problems and makes this question obsolete in the next 6 months or so, but in the meantime, I don't feel comfortable running bleeding edge or other preview releases of Windows on my primary laptop. Sometimes, when I'm installing Ruby gems ( bundle install or bundle install --path=vendor/bundle ) inside of WSL, I get Permission denied errors when installing a gem with a native extension. The most recent incarnation of this error was this: Permission denied @ rb

Execute Batch file in Windows Subsystem for Linux

十年热恋 提交于 2020-07-29 10:04:19
问题 Is it possible to execute a .bat file from a Windows Subsystem for Linux (eg. Ubuntu)? It is trivial to run an .exe file from a WSL, but I haven't found a trivial way to run a .bat . The only way I found is to open cmd.exe , but that is a bit cumbersome to do every time I need to execute a .bat file. 回答1: Unfortunately at the moment you cannot do so without either using: cmd.exe /c foo.bat …or the following hack using binfmt: sudo sh -c "echo :WindowsBatch:E::bat::/init: > /proc/sys/fs/binfmt

Using subprocess() in with variable containing the DOS-cmd

久未见 提交于 2020-07-22 08:02:12
问题 I not that good in programming and have a problem using the subprocess() command in Python. My program creates the following string: wsl ocrmypdf -sr -l deu "\mnt\z\dms\_inbox\Scan 2019-11-27 13.12.33.pdf" "z:\dms\_inbox\OCR_Scan 2019-11-27 13.12.33.pdf" If I use this command in my Windows 10 DOSbox it is working without issues. Now I want to start it with the following Python command: subprocess.run(cmd, shell=True, check=True, stdout=subprocess.PIPE, universal_newlines=True).decode() While