Giter Club home page Giter Club logo

dowww's Introduction

icon

Dev on Windows with WSL

在 Windows 上面用 WSL 优雅开发

GitHub contributors Open Collective backers and sponsors Windows License: CC BY-SA 4.0 GitHub stars

目录

前言

首先达成一个共识:Windows 给编程初学者带来了很大的困难。比如缺乏好用的包管理系统、终端环境难看难用和环境变量不易配置等等,这些都让 Windows 在开发体验上难以匹敌 Linux 甚至 macOS。

WSL 的出现似乎缓解了这些烦恼。WSL —— Windows Subsystem for Linux,即适用于 Linux 的 Windows 子系统。在 2019 年的夏天,微软官方推出了 WSL 2:基于最新虚拟化技术的 WSL 引擎。强大的 WSL 2 直接将一个 Linux 内核放入 WSL 架构中,使得 Linux 子系统的 I/O 效率急速提升,也让 Linux 子系统能真正执行「全部 Linux 原生的系统调用」。无论是 WSL 还是 WSL 2,我们都可以借助之来给我们的 Windows 配置一个美观可用的学习编程的开发环境,包括:

  • 原汁原味 Unix 风格的终端环境和开发环境
  • 一行命令管理所有软件包的 APT 包管理工具(Debian's Advanced Packaging Tool)
  • 在 Visual Studio Code 中直接编写、开发、调试你的项目

如果你对这些内容感兴趣,那么请直接进入文档,放飞自我,尽情折腾。ヾ(•ω•`)o

贡献

贡献者

感谢参与这个项目的所有贡献者。This project exists thanks to all the people who contribute.

贡献规范

欢迎任何有经验的同学前来帮我共同完善本项目,鞠躬。在你着手准备给这个项目提交一些新内容前,请务必阅读「贡献」相关内容说明与规范:贡献指南

赞助

Star

如果你觉得本文档干货满满,对你使用 WSL 有着巨大的帮助,请帮我在 GitHub 上为此仓库点个 Star!感谢 (。・∀・)ノ゙

微信、支付宝

对于**的同学,欢迎直接通过微信和支付宝对我本人进行投喂!

微信支付 支付宝支付
微信支付 支付宝支付

爱发电

各位也可以利用「爱发电」来对我进行支持!

爱发电

Open Collective

Thank you for your interest! Dev on Windows with WSL is a joint effort. We currently support funding via Open Collective.

Backers Sponsors
Support this project by becoming a backer. Thank you to all our backers! 🙏 [Become a backer] Support this project by becoming a sponsor. Your logo will show up here with a link to your website. 🌏 [Become a sponsor]

许可

本作品采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可。

本著作係採用創用 CC 姓名標示-相同方式分享 4.0 國際 授權條款授權.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


📟 Dev on Windows with WSL ©Spencer Woo. Released under the CC BY-SA 4.0 International License.

Authored and maintained by Spencer Woo.

@Portfolio · @Blog · @GitHub

dowww's People

Contributors

chungzh avatar dependabot[bot] avatar dhssingle avatar growlily avatar inokinoki avatar kidonng avatar llinfeng avatar monkeywithacupcake avatar ousugo avatar outloudvi avatar patrick330602 avatar rctestbot avatar spencerwooo avatar suyanhanx avatar yi-yun avatar zombie110year avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dowww's Issues

wsl2使用windows代理

我希望文档能够包括这一内容 / 我发现新的内容可以写入文档:

wsl2(预览版可以GUI)不能和wsl1一样共享ip,在windows上开了代理,在wsl中使用浏览器不能访问google,看了几个博客配置并未成功,希望有这部分的配置教程

Python WSL Port

🤔 我在这个页面的配置过程遇到了问题!
Python配置vscode时

详细说说你在配置哪一部分遇到了问题,有页面链接更好啦!
配置完了解释器,pylint,autopep8之后,尝试运行解释器时报错
🎉 我觉得这里可以这样改进!
wsl内需要将windows下的路径转为wsl的路径,而不是Windows的路径
附上链接,我即刻更新!
https://spencerwoo.com/dowww/3-VSCode/3-3-Python.html#让-vscode-集成-wsl-侧-python
💡 一个新的 Idea!

详细讲讲,可以直接 PR!欢迎欢迎!

wsl无法唤起vscode

🤔 我在这个页面的配置过程遇到了问题!
在配置vscode的那一章的python配置章节,我不是很理解在wsl侧输入code&唤起vscode是什么意思,是唤起在wsl中安装的vscode还是唤起在安装在win10中的vscode呢。

详细说说你在配置哪一部分遇到了问题,有页面链接更好啦!
snipaste_2018-11-29_16-51-31
这个是在wsl端输入的
snipaste_2018-11-29_16-50-32
这个是系统的环境变量
snipaste_2018-11-29_16-54-32
这个是fstab文件,这么做能排除C盘的挂载方式么,,以及现在彻底删除了wsl侧的vscode
🎉 我觉得这里可以这样改进!

附上链接,我即刻更新!

💡 一个新的 Idea!

详细讲讲,可以直接 PR!欢迎欢迎!

关于 WSL 默认 Shell 的配置

不推荐使用 C:\Windows\System32\bash.exe 进入 WSL 环境,因为它永远只会尝试启动默认 WSL 发行版中的 bash shell,即使你已经设置了其他默认 shell(参见 #1, #2),推荐使用 C:\Windows\System32\wsl.exe

同样地,应该使用 chsh 设置默认 shell 为 zsh,并使用 wsl.exe 进入 WSL 环境(这会启动默认发行版中的默认 shell),而非对 ~/.bashrc 进行修改。此条目涉及的文章段落:

另外,关于 WSL 中 ls 命令输出的颜色问题,除了修改 LS_COLORS 外,其实还有另一种更治本一些的方法,参见:DrvFs 文件权限问题。刚才在 V2EX 上看到了你的这个项目,正好之前我也写过一篇 WSL 相关的文章,所以斗胆提一些建议。;)

<主机名>.mshome.net 访问主机

💡 一个新的 Idea!

发现我的 WSL 2 中可以用 <主机名>.mshome.net 访问 Windows 主机,但是未见到官方文档说明,不知道是否通用。

ls背景色问题

昨天我的windows更新后,不知道为啥ls时又出现了背景色,如下:
Snipaste_2020-09-06_22-31-15
.zshrc中有过配置
# Change ls colours LS_COLORS="ow=01;36;40" && export LS_COLORS #make cd use the ls colours zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"

对wsl.conf和fstab也做了如下配置:

[automount] enabled = true root = /mnt/ options = "metadata,umask=22,fmask=111" mountFsTab = true

LABEL=cloudimg-rootfs / ext4 defaults 0 0 C: /mnt/d drvfs rw,noatime,uid=1000,gid=1000 D: /mnt/d drvfs rw,noatime,uid=1000,gid=1000,umask=22,fmask=111,metadata E: /mnt/d drvfs rw,noatime,uid=1000,gid=1000,umask=22,fmask=111,metadata

在D盘和E盘中没有出现这个问题,是更新引起的微小改动么?

wsl版本:
Linux LAPTOP-4Q7KJ49G 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
windows版本:
Snipaste_2020-09-06_22-37-58

编译内核出错

**我在这个页面的配置过程遇到了问题:https://dowww.spencerwoo.com/4-advanced/4-4-usb.html#usbip-win**。

我尝试按照步骤进行编译的时候,遇到了以下错误:

  AS      arch/x86/boot/compressed/piggy.o
  LD      arch/x86/boot/compressed/vmlinux
  ZOFFSET arch/x86/boot/zoffset.h
  OBJCOPY arch/x86/boot/vmlinux.bin
  AS      arch/x86/boot/header.o
  LD      arch/x86/boot/setup.elf
  OBJCOPY arch/x86/boot/setup.bin
  BUILD   arch/x86/boot/bzImage
Setup is 16412 bytes (padded to 16896 bytes).
System is 9825 kB
CRC b887b361
Kernel: arch/x86/boot/bzImage is ready  (#3)
  DEPMOD  5.4.72-microsoft-standard-WSL2
sh ./arch/x86/boot/install.sh 5.4.72-microsoft-standard-WSL2 arch/x86/boot/bzImage \
        System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.4.72-microsoft-standard-WSL2 /boot/vmlinuz-5.4.72-microsoft-standard-WSL2
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.4.72-microsoft-standard-WSL2 /boot/vmlinuz-5.4.72-microsoft-standard-WSL2
update-initramfs: Generating /boot/initrd.img-5.4.72-microsoft-standard-WSL2
find: ‘/var/tmp/mkinitramfs_3Bi1gi/lib/modules/5.4.72-microsoft-standard-WSL2/kernel’: No such file or directory
W: Couldn't identify type of root file system for fsck hook
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.4.72-microsoft-standard-WSL2 /boot/vmlinuz-5.4.72-microsoft-standard-WSL2
run-parts: executing /etc/kernel/postinst.d/update-notifier 5.4.72-microsoft-standard-WSL2 /boot/vmlinuz-5.4.72-microsoft-standard-WSL2

编译环境

图形化界面安装过程中 一个更方便的配置WSL2参数的方法

我希望文档能够包括这一内容 :

GUI 图形化窗口-安装 XServer for windows-配置 WSL 参数:原文如下

# 如果你使用的是 WSL 2:填入 {YOUR_WINDOWS_IP},你的本机 IP 地址
$ echo 'export DISPLAY={YOUR_WINDOWS_IP}:0.0' >> .profile

然而在WSL2中,本机的IP地址可以用$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}')来获取

所以这部分可以更改为

# 如果你使用的是 WSL 2:填入 {YOUR_WINDOWS_IP},你的本机 IP 地址
$ echo "export DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0.0" >> .profile

Windows的默认终端conhost.exe

🎉 我觉得这里可以这样改进!

Terminal,即「终端模拟器」。我们需要一个终端去和我们的 shell 进行交互。2018 年马上就要过去了,Windows 的自带终端依旧不支持 256 色彩

Windows的默认终端是支持24位色的,命令行程序使用conpty即可输出24位色

https://github.com/bitcrazed/24bit-color

这个仓库是2年前Windows Console和WSL开发者用来测试24位色输出的

效果图

image

https://github.com/Microsoft/console

这个仓库不仅能反馈Windows控制台issue,还包括了一个C++一个C#如何使用conpty的样例程序,以及最重要的,有一个更改Windows控制台配送方案的工具,可以使用iterm2的主题.

有必要加入原生终端的配置说明,毕竟conhost远快于electron.

Windows下配置的hyper的一些颜色问题

🤔 我在这个页面的配置过程遇到了问题!

详细说说你在配置哪一部分遇到了问题,有页面链接更好啦!

在这个部分:https://spencerwoo.com/dowww/2-Toolchain/2-1-TerminalEnv.html#bash

我在配置Hyper时遇到一个神奇的问题:

image
我用的是hyper-one-dark这个主题,然后发现目录名全部都被背景色盖住了。但是在ls或者cd的时候按tab键是没问题的(用了博主的方法)。不知道这个是我个人问题还是大家都有或者说博主有遇到过且有解决办法?

与此同时我的Vim也出现了奇怪的配色:

image

但是如果我不用hyper打开的话,我用常规的CMD输入bash进入WSL然后再输入vim,配色又是正常的:
image

真是非常奇怪!

附一下我的hyper配置,其实没改什么:

// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.

module.exports = {
  config: {
    // choose either `'stable'` for receiving highly polished,
    // or `'canary'` for less polished but more frequent updates
    updateChannel: 'stable',

    // default font size in pixels for all tabs
    fontSize: 14,

    // font family with optional fallbacks
    fontFamily: '"DejaVu Sans Mono for Powerline", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',

    // default font weight: 'normal' or 'bold'
    fontWeight: 'normal',

    // font weight for bold characters: 'normal' or 'bold'
    fontWeightBold: 'bold',

    // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
    cursorColor: '#fff',

    // terminal text color under BLOCK cursor
    cursorAccentColor: '#000',

    // `'BEAM'` for |, `'UNDERLINE'` for _, `'BLOCK'` for █
    cursorShape: 'BLOCK',

    // set to `true` (without backticks and without quotes) for blinking cursor
    cursorBlink: false,

    // color of the text
    foregroundColor: '#fff',

    // terminal background color
    // opacity is only supported on macOS
    backgroundColor: '#000',

    // terminal selection color
    selectionColor: 'rgba(248,28,229,0.3)',

    // border color (window, tabs)
    borderColor: '#333',

    // custom CSS to embed in the main window
    css: '',

    // custom CSS to embed in the terminal window
    termCSS: '',

    // if you're using a Linux setup which show native menus, set to false
    // default: `true` on Linux, `true` on Windows, ignored on macOS
    showHamburgerMenu: '',

    // set to `false` (without backticks and without quotes) if you want to hide the minimize, maximize and close buttons
    // additionally, set to `'left'` if you want them on the left, like in Ubuntu
    // default: `true` (without backticks and without quotes) on Windows and Linux, ignored on macOS
    showWindowControls: '',

    // custom padding (CSS format, i.e.: `top right bottom left`)
    padding: '12px 14px',

    // the full list. if you're going to provide the full color palette,
    // including the 6 x 6 color cubes and the grayscale map, just provide
    // an array here instead of a color map object
    colors: {
      black: '#000000',
      red: '#C51E14',
      green: '#1DC121',
      yellow: '#C7C329',
      blue: '#0A2FC4',
      magenta: '#C839C5',
      cyan: '#20C5C6',
      white: '#C7C7C7',
      lightBlack: '#686868',
      lightRed: '#FD6F6B',
      lightGreen: '#67F86F',
      lightYellow: '#FFFA72',
      lightBlue: '#6A76FB',
      lightMagenta: '#FD7CFC',
      lightCyan: '#68FDFE',
      lightWhite: '#FFFFFF',
    },

    // the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
    // if left empty, your system's login shell will be used by default
    //
    // Windows
    // - Make sure to use a full path if the binary name doesn't work
    // - Remove `--login` in shellArgs
    //
    // Bash on Windows
    // - Example: `C:\\Windows\\System32\\bash.exe`
    //
    // PowerShell on Windows
    // - Example: `C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`
    shell: 'C:\\Windows\\System32\\bash.exe',

    // for setting shell arguments (i.e. for using interactive shellArgs: `['-i']`)
    // by default `['--login']` will be used
    shellArgs: ['--login'],

    // for environment variables
    env: {},

    // set to `false` for no bell
    bell: false,

    // if `true` (without backticks and without quotes), selected text will automatically be copied to the clipboard
    copyOnSelect: true,

    // if `true` (without backticks and without quotes), hyper will be set as the default protocol client for SSH
    defaultSSHApp: true,

    // if `true` (without backticks and without quotes), on right click selected text will be copied or pasted if no
    // selection is present (`true` by default on Windows and disables the context menu feature)
    // quickEdit: true,

    // URL to custom bell
    // bellSoundURL: 'http://example.com/bell.mp3',

    // for advanced config flags please refer to https://hyper.is/#cfg
  },

  // a list of plugins to fetch and install from npm
  // format: [@org/]project[#version]
  // examples:
  //   `hyperpower`
  //   `@company/project`
  //   `project#1.0.1`
  plugins: ["hyper-one-dark"],

  // in development, you can create a directory under
  // `~/.hyper_plugins/local/` and include it here
  // to load it and avoid it being `npm install`ed
  localPlugins: [],

  keymaps: {
    // Example
    // 'window:devtools': 'cmd+alt+o',
  },
};

最后感谢LZ的教程!我跟你一样认为好看是第一生产力!

字体名称

9619e1eab030405f17cdef943cca40c3

请问上图中的字体叫什么?看起来很好看但是没在文章中看见名字。谢谢

请教WSL安装arch后使用xfce桌面的问题

本人Linux新手,看到文档里面说有社区支持的arch可以安装,用LxRunOffline装上了,但是遇到了一些问题

  1. X server跑不起来
    安装了xorgxfce4,但是使用startxfce4时会报错,/var/log/Xorg.0.log输出如下
# cat /var/log/Xorg.0.log|grep EE
[    37.337] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory)
[    37.617] (EE) open /dev/dri/card0: No such file or directory
[    37.620] (EE) open /dev/fb0: No such file or directory
[    37.620] (EE) open /dev/dri/card0: No such file or directory
[    37.621] (EE) open /dev/fb0: No such file or directory
[    37.621] (EE) No devices detected.
[    37.621] (EE)
[    37.621] (EE) no screens found(EE)
[    37.622] (EE)
[    37.622] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    37.622] (EE)
[    37.623] (EE) Server terminated with error (1). Closing log file.

PS:用Ubuntu并没有出现以上的问题,看了一下作者那边已经有人提过,但好像并没有解决,所以来这里问问原因,还望各位不吝赐教,万分感激!

  1. .bashrc文件并没有生效
    alias设置和一些环境变量写进了用户目录下的.bashrc文件,但配置并没有生效。

新手上路,有很多东西也还不清楚,如描述有谬误,还望见谅

增加wslg的介绍

我希望文档能够包括这一内容 / 我发现新的内容可以写入文档:

增加关于 wslg 的介绍

配置 vscode 在中文标点符号处断句

💡 一个新的 Idea!

vscode 没办法给中文断词,导致在中文文档中 Ctrl + 方向键 很不方便,一按就跳一句。
可以设置 editor.wordSeparators,在里面加上中文常用的标点,这样在移动光标的时候会舒服点。

    "editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?、,。?!“”‘’;:()「」【】〔〕『』〖〗",

不知道这个点子放到哪个话题比较合适。

VScode配置中文

🤔 我在这个页面的配置过程遇到了问题!

详细说说你在配置哪一部分遇到了问题,有页面链接更好啦!

🎉 我觉得这里可以这样改进!
论VScode如何配置中文
在插件商店搜索Chinese,第一个是简体中文,第二个是繁体中文
或者也可以去这里Chinese (Simplified) Language Pack for Visual Studio Code
安装插件,重启VScode
Enjoy Chinese!

附上链接,我即刻更新!

💡 一个新的 Idea!

详细讲讲,可以直接 PR!欢迎欢迎!

Windows Terminal 白边

对于windows terminal 选择dark主题的白边有没有更好的方式可以不显示?

现在的方法是设置Windows主题的颜色为黑色

版本是 0.8.10261.0

Snipaste_2020-02-09_23-32-57

猜测和显卡有关?有时候会突然卡顿,然后显示边框未全黑色的,重启就又是白边了

Snipaste_2020-02-09_23-38-47

在 WSL 中运行 exe 遇到权限问题

请从下面的三个模块中选择一个,在省略号处清晰的说明一下你遇到的问题/你的想法,并将不需要的模块删除。

🤔 我在这个页面的配置过程遇到了问题!

近期阅读作者编写的 WSL 配置文档,感觉收获颇丰,首先非常感谢作者的辛勤付出!但……

https://dowww.spencerwoo.com/1.1/2-CLI/2-3-Others.html#%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F

这个页面中提到的 explorer.exe ,而我在运行的时候遇到权限问题:

xxx@xxxx ~  explorer.exe .
zsh: permission denied: explorer.exe 

换到 bash 也是如此:

 ✘ xxx@xxxx ~  bash
xxx@xxxx:~$ explorer.exe .
bash: /mnt/c/WINDOWS/explorer.exe: Permission denied

我试图 cd/mnt/c/Windows 下使用 chmod 更改 explorer.exe 的操作权限,默认 444 ,我试图更改到 555 ,但是失败了

-r--r--r-- 2 xxxx xxxx 4483160 Apr 16 15:19  explorer.exe

还望作者不吝赐教,不胜感激!

目前使用 Windows 19041.207,微软商店提供的默认 Ubuntu ,配合 WSL 2

Shell

请从下面的三个模块中选择一个,在省略号处清晰的说明一下你遇到的问题/你的想法,并将不需要的模块删除。

🤔 我在这个页面的配置过程遇到了问题!

详细说说你在配置哪一部分遇到了问题,有页面链接更好啦!请清楚地表达你的环境、配置的过程、你遇到的问题和相应的截图。

win10 build 18950
wsl version 2

在powershell上使用wsl命令所进入的shell(usr/bin/zsh),与VSCode WSL Remote所进入的shell(sh),完全不同,导致有些命令只能在VSCode里使用,而在powershell中必须通过 bash命令进入bash,在使用zsh命令进入zsh,才能做到。
查遍google也没找到解决办法,十分苦恼啊。

请教一些WSL下使用GUI的报错与警告

本人是liuux的初学者,因为下学期要学习有关操作系统的知识,本人也是软粉一个。所以当我刚知道WSL的存在的时候就迫不及待地准备上手了。因为是新手,所以更偏向于用GUI界面,现在的的用的是从商店直接下载的ubuntu,版本号是18.04。看了不少博客教程后借助VcXsrv,GUI已经能够运行,桌面环境是gnome,但是还存在一些报错和警告,因为初学很多东西看不懂,而且网上相关的中文论坛也比较少,有幸发现Dev on Windows with WSL项目。准备日后在使用过程中贴出来一些出现的报错与警告,求助解答之余希望也能帮助到有同样困惑的人。
第一次接触github,可能会做出一些不符合github约定成俗的行为,在这里先道一声抱歉,同时希望大佬们能指点使用GitHub的正确姿势,多谢。
下面开始放问题。

关于vscode终端的美化

有什么办法让vscode的终端应用terminal里的配色?以下是对比
wsl里的:
Snipaste_2020-04-14_00-44-54
vscode里的:
Snipaste_2020-04-14_00-43-59

出现黑色三角

大佬,请问为什么Terminus中一直有个黑色三角去不掉
default
我已经安装了powerline字体,其余设置是按照你的文档里设置的,启用的是powerlevel9k主题

WSL2 中的127.0.0.1 和 localhost

我在这个页面的配置过程遇到了问题:

Windows侧环境:Windows 10 Pro 21H1
WSL侧环境:OS: Arch Linux on Windows 10 x86_64 Kernel: 5.10.16.3-microsoft-standard-WSL2

问题

在WSL侧启动了ES,在Windows侧使用浏览器访问 localhost:9200返回正确的结果,访问127.0.0.1:9200 则显示拒绝连接

最后测试发现Postman,curl,还有SpringBoot程序里都显示连接失败。

image

💡 Remote-WSL 的更新

日前 Remote-WSL 插件已经更新,WSL 开发环境正式被 VS Code 支持。目前 Dev on Windows with WSL 我本人仅仅更新了一些 体验和使用特性,希望有更多同学帮助我完善。在这里给大家拜年了 ♥

VSCode使用Python插件的错误提示

🤔 我在这个页面的配置过程遇到了问题!

按照教程一步步来配置好了Python环境,使用上似乎没问题,不过每次打开VSCODE总是跳出Python扩展未安装的错误提示:

Python is not installed. Please download and install Python before using the extension.
image

WSL调用Makefile支持

💡 一个新的 Idea!
教程里讲怎么在VSCode里调用WSL端的make,autoconf,automake,configure,cmake等构建工具,这个什么时候可以更新一下?

Terminus 终端使用 Iosevka Nerd Font 字体无法显示 PowerLine 图标

🤔 我在这个页面的配置过程遇到了问题!

我已经安装好 Iosevka Nerd Font 这个字体了,在字体设置也选择了这个字体,但是我开启 WSL 终端时字体无法显示出来,请求帮助

snipaste_2019-01-24_10-54-26
snipaste_2019-01-24_10-54-46

🎉 我觉得这里可以这样改进!

附上链接,我即刻更新!

💡 一个新的 Idea!

详细讲讲,可以直接 PR!欢迎欢迎!

🎉 更新公告

请大家稍安勿躁,我绝对没有弃坑。最近事情比较多,等稍微闲下来的时候,也等 WSL 2 正式发布之后,我准备将整个文档重构。感谢大家一路的关注,笔芯 ❤

WSL 列出 Windows 文件颜色问题时,重启 WSL 的方式错误

🎉 我觉得这里可以这样改进!

关闭 WSL 终端并不一定会导致 WSL 停止,正确的做法应该是退出 WSL 后,在 Windows 这边调用命令

wsl -t <发行版名>

来主动终止。发行版名可以通过 wsl -l 来查看。

https://dowww.spencerwoo.com/1.0/2-cli/2-2-shell.html#%E5%A6%82%E6%9E%9C%E5%B8%8C%E6%9C%9B%E4%BB%8E%E6%A0%B9%E6%9C%AC%E4%B8%8A%E8%A7%A3%E5%86%B3-drvfs-%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F%E7%9A%84%E6%9D%83%E9%99%90%E9%97%AE%E9%A2%98

Terminus 无法改变终端的主题

🤔 我在这个页面的配置过程遇到了问题!
我直接在bash里运行source ~/.zshrc的时候没有问题,然而在terminus里运行的时候就提示错误
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.