windows-subsystem-for-linux

chmod WSL (Bash) doesn't work

不羁岁月 提交于 2019-12-21 06:56:27
问题 Running bash on windows 10, the simple syntax below works when I SSH to my webserver, but not when I exit out and am on my local machine. It doesn't give me an error, but I can see permissions are unchanged. I have to checked that I am set up as an administrator on my computer. Is this an error or is this just a consequence of the local operating system being windows? IF the later, it makes me question the value of using bash on windows if common operations such as this won't work. $chmod 644

Unable to connect to server: postgresql on ubuntu in windows subsystem for linux

孤人 提交于 2019-12-21 05:38:07
问题 I'm using WSL with an ubuntu 18.04 distribution, in the bash I hit sudo -u postgres psql I get the following error: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5433"? Then I tried other postgres operations like: sudo -u createdb mydb only to get the same error. Please advise. 回答1: When running PostgreSQL on Ubuntu in Windows Subsystem for Linux, you may have to manually

SDL2 Can't create window since it couldn't find matching GLX visual

感情迁移 提交于 2019-12-21 04:08:08
问题 I have a problem as i am currently running Ubuntu Terminal on Windows 10. I also have XMing installed as my X-server(I use XMing for qemu,etc...). And i am trying to run this SDL2 Program. So i have this for main.cpp: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <SDL2/SDL.h> #include <GL/gl.h> int main(int argc, char *argv[]) { int final_status = 1; SDL_Window *window; SDL_GLContext openGL_context; if (SDL_Init(SDL_INIT_VIDEO)) { fprintf(stderr, "Unable to initialize

Intermittent, random 'file not found' errors under Windows Subsystem for Linux (WSL)

强颜欢笑 提交于 2019-12-21 03:30:24
问题 I'm getting intermitting 'fatal error: ... file not found' errors building C++ application using either gcc 4.8 or clang 3.8 under Ubuntu 16.04.2 running in Windows Subsystem for Linux (WSL), when including C++ header files, but only since installing the Windows 10 April update (Version 1803, OS Build 17134.1) a few days ago. Example error message from clang compiler: fatal error: 'boost/preprocessor/list/fold_left.hpp' file not found Example error message from gcc compiler: fatal error:

Intermittent, random 'file not found' errors under Windows Subsystem for Linux (WSL)

一笑奈何 提交于 2019-12-21 03:30:20
问题 I'm getting intermitting 'fatal error: ... file not found' errors building C++ application using either gcc 4.8 or clang 3.8 under Ubuntu 16.04.2 running in Windows Subsystem for Linux (WSL), when including C++ header files, but only since installing the Windows 10 April update (Version 1803, OS Build 17134.1) a few days ago. Example error message from clang compiler: fatal error: 'boost/preprocessor/list/fold_left.hpp' file not found Example error message from gcc compiler: fatal error:

open ai gym Nameerror

巧了我就是萌 提交于 2019-12-20 19:39:30
问题 I am trying to use the famous 'Gym' module from OpenAI on WSL and executing code on python 3.5.2. When I try to run an environment as explained here, using the code: import gym env = gym.make('CartPole-v0') for i_episode in range(20): observation = env.reset() for t in range(100): env.render() print(observation) action = env.action_space.sample() observation, reward, done, info = env.step(action) if done: print("Episode finished after {} timesteps".format(t+1)) break this happens : Traceback

Copy Files from Windows to the Ubuntu Subsystem [closed]

有些话、适合烂在心里 提交于 2019-12-20 08:12:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . 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

Copy Files from Windows to the Ubuntu Subsystem [closed]

我是研究僧i 提交于 2019-12-20 08:12:39
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . 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

Bash on Windows - alias for exe files

久未见 提交于 2019-12-19 08:14:09
问题 I am using the Bash on Ubuntu on Windows, the way to run bash on Windows 10. I have the Creators update installed and the Ubuntu version is 16.04. I was playing recently with things as npm, node.js and Docker and for docker I found it is possible to install it and run it in windows and just use the client part from bash, calling directly the docker.exe file from Windows's Program Files files folder. I just update my path variable to include the path to docker as PATH=$PATH:~/mnt/e/Program\

Bash on Windows - alias for exe files

天大地大妈咪最大 提交于 2019-12-19 08:13:12
问题 I am using the Bash on Ubuntu on Windows, the way to run bash on Windows 10. I have the Creators update installed and the Ubuntu version is 16.04. I was playing recently with things as npm, node.js and Docker and for docker I found it is possible to install it and run it in windows and just use the client part from bash, calling directly the docker.exe file from Windows's Program Files files folder. I just update my path variable to include the path to docker as PATH=$PATH:~/mnt/e/Program\