windows-subsystem-for-linux

vscode-remote-release and wsl 2

删除回忆录丶 提交于 2019-12-11 19:09:00
问题 Has anyone already tried vscode-remote-release with the pre release of wsl 2? I am getting the following error when starting a new wsl server: [2019-06-15 11:14:05.702] Starting VS Code Server inside WSL. [2019-06-15 11:14:06.526] Launching C:\WINDOWS\System32\wsl.exe bash -c "./scripts/wslServer.sh 15b7c86d86319b187a5ef255c170184a8519c5af insider .vscode-server-insiders " in c:\Users\User Name\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.38.0 [2019-06-15 11:14:07.126] bash: .

Conda commands not working in Windows Subsystem for Linux (WSL)

独自空忆成欢 提交于 2019-12-11 18:39:58
问题 I installed Anaconda3 in my windows environment and added C:\Users\user\Anaconda3\Scripts C:\Users\user\Anaconda3 to my windows environmental variables. Theoretically, this should also update my path in WSL like it does with visual studio code. However it didn't and now I can't run conda commands from the ubuntu terminal. I can't figure out how to fix this...thanks! *It should be noted that I am also using zsh and oh my zsh by running the code # Launch Zsh if [ -t 1 ]; then exec zsh fi Inside

NCurses with WSL Displaying Boxes Incorrectly

不打扰是莪最后的温柔 提交于 2019-12-11 18:31:19
问题 I am using ubuntu on my windows computer using the windows subsystem for linux to compile a simple program using ncurses in C that shows a box inside a ncurses window. As seen in the picture below, the box does not render fully. Is there something wrong with my code or is this an issue within WSL? The drawn box displays incorrectly The box should stretch and connect the left and right sides int main() { initscr(); noecho(); cbreak(); int sizeY, sizeX; getmaxyx(stdscr, sizeY, sizeX); WINDOW

Vim + tmux + WSL shows squares and strange characters when navigating doc

人走茶凉 提交于 2019-12-11 15:14:30
问题 I am able to use vim within Windows Ubuntu subsystem without issues. Then when running Vim within tmux, and typing text most of the characters come up as weird squares with a quotation mark inside instead of the actual letter.[This is a screen shot of the vim text][1] [I have a similar behaviour][2] within the console when highlighting text within tmux (Ctrl+b+[). 回答1: The issue was related with setting the TERM within my bashrc like the following: export TERM=screen-256color-bce After

WSL can't see environment variable

被刻印的时光 ゝ 提交于 2019-12-11 10:15:15
问题 I'm currently on the quest to getting a MIPS cross-compiler toolchain running within WSL, accessed by CLion. There, I'm having a strange issue with WSL. I have added the following to the .bashrc : STAGING_DIR="/home/max/source/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16" export STAGING_DIR Moreover I have the script test.sh #!/bin/sh echo "Staging dir is: " $STAGING_DIR When using wsl to get a shell and execute the script, the output is as follows: max@DESKTOP-ISH7UJQ:/mnt/c/Users

Error starting Docker container (WSL, docker-ce, Ubuntu 16.04)

落爺英雄遲暮 提交于 2019-12-11 07:21:45
问题 Microsoft Windows [Version 10.0.17134.285], Ubuntu 16.04 (WSL), docker-ce (stable) I am following the instructions here - https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly. I opted for "stable" rather than "edge". I mounted the c drive mapping manually with sudo mkdir /c sudo mount --bind /mnt/c /c rather than the WSL config file way, because I wasn't sure if I wanted it for ALL my WSL instances. Other than that, I followed the instructions. I have

QEMU, No bootable device, Windows Subsystem for Linux

淺唱寂寞╮ 提交于 2019-12-11 06:41:56
问题 I'm learning how to build a basic OS kernel with https://intermezzos.github.io I've create my .iso file and I'm at the point where I am runnning qemu-system-x86_64 -cdrom os.iso When I press enter, QEMU runs a window with the following output: Booting from Floppy... Boot failed: could not read the boot disk Booting from DVD/CD... Boot failed: Could not read from CDROM (code 0004) Booting from ROM... iPXE (PCI 00:03.0) starting execution...ok iPXE initializing devices...ok iPXE 1.0.0+git

Xming Visual Studio Code on Windows 10 Linux Subsystem

血红的双手。 提交于 2019-12-11 06:07:58
问题 What I am trying to do is basically run Visual Studio Code on the Linux subsystem of a Windows 10 Anniversary Update machine. I have installed the code.xxx.deb package using gdebi and solved the few requirements missing. I have Xming installed on Windows, which works (I've tried it with xeyes and firefox). However, that doesn't seem to work when I run DISPLAY=:0 code . The terminal becomes available again without any error message. By running DISPLAY=:0 code --verbose , I get the following:

Pipe from clipboard in linux subsytem for windows

爱⌒轻易说出口 提交于 2019-12-11 00:56:39
问题 Using the Linux Subsystem for Windows (LSW), clip.exe can be used to copy data to the windows clipboard: $ clip.exe /? CLIP Description: Redirects output of command line tools to the Windows clipboard. This text output can then be pasted into other programs. Parameter List: /? Displays this help message. Examples: DIR | CLIP Places a copy of the current directory listing into the Windows clipboard. CLIP < README.TXT Places a copy of the text from readme.txt on to the Windows clipboard. Is

ConEmu + WSL: Open new console in current tab directory

前提是你 提交于 2019-12-10 16:19:10
问题 I'm using WSL and ConEmu build 180506. I'm trying to setup a task in ConEmu to use the current directory of the active tab when opening a new console but I cannot get it to work. What I did is to setup the task {Bash: bash} using the instructions on this page setting the task command as : set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -C~ -cur_console:pm:/mnt Then following the instruction on this page, I added to my .bashrc if [[ -n "${ConEmuPID}" ]