跳转到主要内容

标签(标签)

资源精选(342) Go开发(108) Go语言(103) Go(99) angular(82) LLM(75) 大语言模型(63) 人工智能(53) 前端开发(50) LangChain(43) golang(43) 机器学习(39) Go工程师(38) Go程序员(38) Go开发者(36) React(33) Go基础(29) Python(24) Vue(22) Web开发(20) Web技术(19) 精选资源(19) 深度学习(19) Java(18) ChatGTP(17) Cookie(16) android(16) 前端框架(13) JavaScript(13) Next.js(12) 安卓(11) 聊天机器人(10) typescript(10) 资料精选(10) NLP(10) 第三方Cookie(9) Redwoodjs(9) LLMOps(9) Go语言中级开发(9) 自然语言处理(9) PostgreSQL(9) 区块链(9) mlops(9) 安全(9) 全栈开发(8) ChatGPT(8) OpenAI(8) Linux(8) AI(8) GraphQL(8) iOS(8) 软件架构(7) Go语言高级开发(7) AWS(7) C++(7) 数据科学(7) whisper(6) Prisma(6) 隐私保护(6) RAG(6) JSON(6) DevOps(6) 数据可视化(6) wasm(6) 计算机视觉(6) 算法(6) Rust(6) 微服务(6) 隐私沙盒(5) FedCM(5) 语音识别(5) Angular开发(5) 快速应用开发(5) 提示工程(5) Agent(5) LLaMA(5) 低代码开发(5) Go测试(5) gorm(5) REST API(5) 推荐系统(5) WebAssembly(5) GameDev(5) CMS(5) CSS(5) machine-learning(5) 机器人(5) 游戏开发(5) Blockchain(5) Web安全(5) Kotlin(5) 低代码平台(5) 机器学习资源(5) Go资源(5) Nodejs(5) PHP(5) Swift(5) 智能体(4) devin(4) Blitz(4) javascript框架(4) Redwood(4) GDPR(4) 生成式人工智能(4) Angular16(4) Alpaca(4) 编程语言(4) SAML(4) JWT(4) JSON处理(4) Go并发(4) kafka(4) 移动开发(4) 移动应用(4) security(4) 隐私(4) spring-boot(4) 物联网(4) nextjs(4) 网络安全(4) API(4) Ruby(4) 信息安全(4) flutter(4) 专家智能体(3) Chrome(3) CHIPS(3) 3PC(3) SSE(3) 人工智能软件工程师(3) LLM Agent(3) Remix(3) Ubuntu(3) GPT4All(3) 软件开发(3) 问答系统(3) 开发工具(3) 最佳实践(3) RxJS(3) SSR(3) Node.js(3) Dolly(3) 移动应用开发(3) 低代码(3) IAM(3) Web框架(3) CORS(3) 基准测试(3) Go语言数据库开发(3) Oauth2(3) 并发(3) 主题(3) Theme(3) earth(3) nginx(3) 软件工程(3) azure(3) keycloak(3) 生产力工具(3) gpt3(3) 工作流(3) C(3) jupyter(3) 认证(3) prometheus(3) GAN(3) Spring(3) 逆向工程(3) 应用安全(3) Docker(3) Django(3) R(3) .NET(3) 大数据(3) Hacking(3) 渗透测试(3) C++资源(3) Mac(3) 微信小程序(3) Python资源(3) JHipster(3) 大型语言模型(2) 语言模型(2) 可穿戴设备(2) JDK(2) SQL(2) Apache(2) Hashicorp Vault(2) Spring Cloud Vault(2) Go语言Web开发(2) Go测试工程师(2) WebSocket(2) 容器化(2) AES(2) 加密(2) 输入验证(2) ORM(2) Fiber(2) Postgres(2) Gorilla Mux(2) Go数据库开发(2) 模块(2) 泛型(2) 指针(2) HTTP(2) PostgreSQL开发(2) Vault(2) K8s(2) Spring boot(2) R语言(2) 深度学习资源(2) 半监督学习(2) semi-supervised-learning(2) architecture(2) 普罗米修斯(2) 嵌入模型(2) productivity(2) 编码(2) Qt(2) 前端(2) Rust语言(2) NeRF(2) 神经辐射场(2) 元宇宙(2) CPP(2) 数据分析(2) spark(2) 流处理(2) Ionic(2) 人体姿势估计(2) human-pose-estimation(2) 视频处理(2) deep-learning(2) kotlin语言(2) kotlin开发(2) burp(2) Chatbot(2) npm(2) quantum(2) OCR(2) 游戏(2) game(2) 内容管理系统(2) MySQL(2) python-books(2) pentest(2) opengl(2) IDE(2) 漏洞赏金(2) Web(2) 知识图谱(2) PyTorch(2) 数据库(2) reverse-engineering(2) 数据工程(2) swift开发(2) rest(2) robotics(2) ios-animation(2) 知识蒸馏(2) 安卓开发(2) nestjs(2) solidity(2) 爬虫(2) 面试(2) 容器(2) C++精选(2) 人工智能资源(2) Machine Learning(2) 备忘单(2) 编程书籍(2) angular资源(2) 速查表(2) cheatsheets(2) SecOps(2) mlops资源(2) R资源(2) DDD(2) 架构设计模式(2) 量化(2) Hacking资源(2) 强化学习(2) flask(2) 设计(2) 性能(2) Sysadmin(2) 系统管理员(2) Java资源(2) 机器学习精选(2) android资源(2) android-UI(2) Mac资源(2) iOS资源(2) Vue资源(2) flutter资源(2) JavaScript精选(2) JavaScript资源(2) Rust开发(2) deeplearning(2) RAD(2)

category

An Awesome collection of Windows Subsystem for Linux (WSL) information, distributions, and tools.

WSLscreenshot

Contents

Overview

1. Linux

Linux is a UNIX-like open-source operating system. The core of Linux is a kernel developed by Linus Torvalds. Linux also includes a wide array of applications built on top of the kernel, including web serverscompilers, and e-mail clients, developed and contributed to the Linux ecosystem by a worldwide community of programmers. These applications are then assembled together into Linux distributions by companiescommunities, and individuals.

2. Linux Distributions

Unlike Windows or macOS there are many different Linux distributions, each of which is assembled with different approaches to the software selection and implementation. For example, the goal of the non-profit volunteer Debian Project community is to produce a universal free operating system, while the goal of the for-profit SUSE is to provide a stable enterprise platform. There are also Linux distributions based on other distributions. Ubuntu is a distribution based on Debian built by the company Canonical. Kali is a distribution based on Debian built with an emphasis on tools for network security testing. You can see the most popular distributions ranked at DistroWatch.

3. Windows

Windows is a family of proprietary operating systems, all of which are developed, marketed, and sold by Microsoft. Currently Windows 10 is Microsoft's flagship operating system. Windows 10 is available for Intel x86-based and arm64-based PCs. The Windows Subsystem for Linux first shipped in Windows 10 Anniversary Update, version number 1607, in August 2016. WSL can be enabled for free on all versions of Windows 10 after 1607, including Home, Professional, Enterprise, Server, LTSB, and Education. Originally only available for Intel x86-based PCs, Ubuntu 18.04 for arm64 was made available on the Microsoft store in May 2018.

4. WSL1

The original WSL is now known as WSL1. WSL1 is a compatibility layer for running Linux binary executables (ELF) natively on Windows 10. No re-compilation or 'porting' of applications is required. WSL1 provides a Linux-compatible kernel interface developed by Microsoft that allows a user to choose a Linux distribution to install from the Microsoft Store. WSL1 executes unmodified Linux ELF64 binaries by operating a Linux kernel interface on top of the Windows kernel in Windows 10. The WSL1 interface translates Linux system calls from the binaries into Windows system calls and then executes them at native speed. Linux applications run within the Linux distribution which provides the application's dependencies and package management in a container-like environment. WSL provides an interface to mount drives within WSL.

5. WSL2

WSL2 was announced at Microsoft Build 2019. WSL2 features a Linux kernel running inside Windows and is built on the core technology of Hyper-V to provide better Linux application support and improved file system performance. Transitioning to WSL2 is seamless. WSL2 is set by default since Windows 11.

6. Emulation

Windows Subsystem for Linux is not an emulator or virtualizer like VirtualBox. WSL1 is closer in its approach to Wine which is a compatibility layer to run Windows binaries on Linux by re-implementing Windows system and API calls in libraries.

7. Details

You want the gritty details? Here they are:

8. Installation

9. Use Cases

WSL is undoubtedly a tool for power-users, developers, and *NIX/Linux geeks who want to run Windows. Most of the things you can do with WSL are going to be related to programming, the console, sysadmin, automation, AI/data science, and other geeky things.

10. GUI Apps

Yes, a suprising number of Linux GUI apps can run on WSL. GUI applications are officially supported on WSL2 with Windows Insider Preview since Windows 10 Insider Preview build 21286. It will also be available in Windows 10's fall 2021 release, and Windows 11. The GUI capabilities of WSL2 are informally referred to as WSLg.

If you have an earlier release of Windows 10, then running a GUI app on WSL requires an operational X server on Windows. This must be downloaded, installed, and running for your GUI app to open from WSL; or it will complain that it cannot find a display. X servers for Windows include X410 💰 ($10 but very highly recommended), VcXsrvGWSL, or Xming on Windows 10.

Using WSL

The WSL Shell

Programming on WSL

Every developer has a unique workflow. Windows and WSL enable developers to carefully customize their setup for their unique workflow. The following are different developers' approaches to creating their development environments using WSL and instructions on how to do the same:

For more about learning programming generally, visit curated-programming-resources.

Microsoft makes free development tools available, publishes programming guides through MSDN, and offers courses through edX and Microsoft Virtual Academy.

Web Development on WSL

Because WSL allows developers to run a variety of Linux server applications locally on their Windows machine, WSL is uniquely useful for web, cloud, and other server-side development tasks. The following are different developers' approaches to creating their web development environment using WSL and instructions on how to do the same:

Other WSL Uses

Supported Distributions

Ubuntu

Ubuntu is a Linux distribution based on Debian that is produced by Canonical Ltd.. Ubuntu 16.04 and the more recent Ubuntu 18.04 are both available for WSL from the Microsoft Store.

  • Windows Store Link for Ubuntu 16.04. Supported through April 2021.
  • Windows Store Link for Ubuntu 18.04. Supported through April 2023. Very stable but some packages and libraries may be older.
  • Windows Store Link for Ubuntu 20.04. Supported through April 2025.
  • Windows Store Link for Ubuntu 22.04. Most recent update. Newer packages but more likely to encounter bugs. Supported through April 2027.
  • Installing Software guide to using apt from Ubuntu.
  • Ubuntu Server Guide from Ubuntu.
  • Because Ubuntu is based on Debian, many Debian tutorials also apply to Ubuntu.

Debian

Debian is a Linux distribution assembled by volunteers with the community Debian Project.

OpenSUSE / SUSE Enterprise Linux

OpenSUSE and SUSE Enterprise Linux are Linux distributions produced by SUSE Linux GmbH and other companies. Tumbleweed and Leap are community-oriented distributions. Tumbleweed is a rolling release distribution with the latest software, while Leap is a stable distribution based on SUSE Enterprise Linux. SUSE Enterprise Linux is an enterprise-grade commercial distribution with older tested software.

Kali Linux

Kali Linux is a Linux distribution focused on penetration testing based on Debian that is produced by Offensive Security.

Fedora Remix for WSL

Fedora Remix for WSL is a Linux distribution derived from the Fedora distribution.

Pengwin

Pengwin (formerly WLinux) is a Linux distribution based on Debian that is designed for WSL users by independent open source developers at Whitewater Foundry.

Pengwin Enterprise

Pengwin Enterprise is a custom WSL solution available to enterprise customers from Whitewater Foundry. Pengwin Enterprise supports Red Hat Enterprise LinuxCentOS, and Scientific Linux. A demo of Pengwin Enterprise built with Scientific Linux is available on the Microsoft Store.

Oracle Linux

Oracle Linux is a Linux distribution based on Red Hat Enterprise Linux that is produced by Oracle.

AlmaLinux OS

AlmaLinux OS is an open-source, community-driven Linux operating system that fills the gap left by the discontinuation of the CentOS Linux stable release.

Unofficial Distributions

Unofficial distributions must be installed manually or with tools listed below. They are not available in the Windows Store.

  • miniwsl - A mini Linux distribution for WSL powered by busyboxgithub project
  • ArchWSL - ArchLinux in WSL. github project
  • AlpineWSL - Alpine in WSL. github project
  • windows-subsystem-linux-fedora - Fedora in WSL.
  • WSLInstall - Install any GNU/Linux distribution userspace in Windows Subsystem for Linux (WSL) with compressed RootFS tarballs, Docker containers, or ISO files. github project
  • wsldl - General purpose WSL installer and launcher. github project
  • WSL-Distribution-Switcher - Scripts to replace the distribution behind WSL with any other Linux distribution published on Docker Hub. Includes alpine, CentOS, Fedora, Clear, and others. github project
  • acme-wsl - Install acme / plan9port on Debian, Ubuntu, or Kali Linux distributions on WSL.
  • CentWSL - CentOS as a WSL distro. github project
  • RHWSL - Red Hat Universal Base Image as a WSL distro. If you have a Red Hat Subscription, you can register and subscribe the system and use it as RHEL. github project
  • FedoraWSL - Fedora as a WSL distro. github project
  • AmazonWSL - Amazon Linux as a WSL distro. github project
  • GentooWSL - Gentoo as a WSL distro. github project
  • DevuanWSL - Devuan Linux as a WSL Distro. Devuan is a Debian variant without the complexities and dependencies of systemd. github project
  • WSLackware - Slackware as a WSL distro. github project

WSL Tools

X Servers

An X server running on Windows is required for running Linux GUI apps on Windows. See FAQ #10 above.

  • X410 - X server for Windows 10 on the Microsoft Store. 💰
  • VcXsrv - X server for Windows with hardware acceleration compiled with Visual Studio.
  • GWSL - An X server for Windows 10 with an app launcher, distro manager, shortcut creator, and ssh launcher.
  • Xmanager - X server for Windows from NetSarang. 💰
  • Xming open-source version - An older X server for Windows. Has not been updated since 2016.
  • Xming commercial version - The current version of Xming, that is updated monthly. Donate at least £10 to have access to it. 💰
  • Cygwin/X - Cygwin/X is a port of the X Window System to the Cygwin API layer for Windows.

Terminals

  • Windows Terminal - The new open-source Windows Terminal. github_project
  • wsltty - Mintty as a terminal for WSL. github project
  • wsl-terminal - A terminal emulator for WSL, based on mintty, fatty and wslbridge. github project
  • Tabby - A terminal for a more modern age. github project
  • ConEmu - ConEmu aims to be handy, comprehensive, fast and reliable terminal where you may host any console application for the Windows command line, PowerShell, or WSL.
  • MobaXterm - Enhanced terminal for Windows with X11 server, tabbed SSH client, network tools and much more.
  • extraterm - Open source project to build a terminal emulator and expand it with new features to support modern workflows. github project
  • Hyper - A terminal built on web technologies. github project
  • Terminator - Feature-rich tabbed terminal. Requires X server.
  • Alacritty - A terminal emulator with focus on performance and simplicity.
  • Fluent Terminal - A Terminal Emulator based on UWP and web technologies.

For Managing WSL Installations

  • Ansible-WSL - Provision WSL using Ansible. github project
  • LxRunOffline - A full-featured utility for managing WSL. github project
  • Raft WSL - Raft is a Windows Subsystem for Linux (WSL) distribution manager in native C#/XAML. 💰
  • WSL GUI Tool - A graphical tool to manage (run, stop, import, export...) WSL. github project
  • WSL Distro Manager - GUI to manage, copy, distribute WSL distros. github project

WSL Utilities

  • wslgit - Use git installed on WSL from Visual Studio Code on Windows. github project
  • pinentry-wsl-ps1 - Store passwords for gpg-agent in Windows Credential Manager github project
  • wslexec - Execute Linux executables as .exe files on Windows. github project
  • wsl-proxy - A collection of 'proxy' batch files that can be used to route requests to the WSL version of a command. github project
  • wslpath - Easily convert Windows to WSL path names and vice-versa. github project
  • wsl-open - Open files with xdg-open in WSL from Windows applications. github project
  • OpenInWSL - Easily Make WSL Linux Apps Windows File Handlers. github project
  • is-wsl for Node - Check if the current process is running inside Windows Subsystem for Linux, useful for scripting. github project
  • is_wsl for Python - Check if the current process is running inside Windows Subsystem for Linux, useful for scripting. github project
  • wsl-gui-bins - Start common GUI applications under WSL as under Linux. github project
  • xclip-xsel-WSL - Make xclip and xsel in WSL read and write on the Windows instead of the Linux clipboard. . github project
  • vim-wsl-copy-paste - Adds mappings in Vim to write and read on the Windows clipboard. . github project
  • WslShortcut - Run WSL commands directly in Windows. Also allows to use WSL git/node/etc. in Visual Studio Code or another software. Combines functionality of utilities like wslgitwslnodejswslexec etc. with simpler usage. github project
  • community.wsl.sdk - SDK for Windows Subsystem for Linux for .NET 5, 6 and Standard 2.1 github project
  • wslu - A collection of utilities for Windows 10 Linux Subsystem, such as enabling sound in WSL and creating your favorite linux GUI application shortcuts on Windows 10. github project
  • wslpy - A Python3 library for WSL specific tasks. github project

WSL-Specific Development Tools

  • wsl-docker-git-setup - Shell script to configure WSL to use docker and docker-compose as well as a git-enabled prompt. github project
  • ghc - A version of the Glasgow Haskell Compiler built and optimized for WSL and hosted in a PPA for Debian and Ubuntu-based WSL distros.

Miscellaneous Tools

  • BootShellCredentialProvider - BSCP lets you boot Windows directly into a Linux desktop experience such as xfce4 using Windows native login and a combination of Xming & WSL upon login. github project
  • wsl-dotfiles - Configuration files and scripts for creating an i3-based environment inside WSL. github project
  • EnumWSL - Enumerates installed WSL packages. github project
  • WSL-DistroLauncher - Reference launcher app for developing your own WSL distribution Microsoft Store package. github project
  • WSL_Reverse - Reveal hidden COM interface between WSL and Lxss Manager Service. github project
  • wslbridge - wslbridge is a Cygwin program that allows connecting to the WSL command-line environment over TCP sockets, as with ssh, but without the overhead of configuring an SSH server. github project
  • WSLInstall - Install any Linux distribution userspace in WSL with compressed RootFS tarballs (tar.gz) or with Docker containers or with ISO files. github project
  • cmd-colors-solarized - This is a solarized color scheme for the Windows command prompt that works in WSL.
  • weasel-pageant - An ssh-agent compatible helper for interacting with Pageant from processes running on the Windows Subsystem for Linux.
  • wsl2-ssh-pageant - A bridge between Windows Pageant and WSL2.
  • WinCryptSSHAgent - Using a Yubikey for SSH Authentication on Windows Seamlessly. Supports WSL and WSL2.
  • Files - A modern file explorer that supports WSL filesystem. github project
  • easyWSL - Use any Docker image as a WSL distro. github project
  • setup-wsl - A GitHub action to install and setup a Linux distribution for the Windows Subsystem for Linux (WSL). github project

Books

Additional Resources

Related Projects

  • Bash - Bash is the GNU Project's shell. Bash is the Bourne Again SHell. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh).
  • Cygwin - Cygwin is a Unix-like environment and command-line interface for Microsoft Windows.
  • Cmder - A very nice console emulator built on ConEmu. github project
  • PuTTY - PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. github project
  • PowerShell - PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language.
  • Visual Studio Code - Visual Studio Code ("vscode") is a source code editor developed by Microsoft for Windows, Linux, and macOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring.
  • Visual Studio 2017 - Visual Studio is an IDE from Microsoft. It is used to develop computer programs, as well as web sites, web apps, web services and mobile apps. Visual Studio uses Microsoft software development platforms such as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store, and Microsoft Silverlight.
  • Windows Services for UNIX - SFU is a discontinued software package produced by Microsoft which provided a Unix environment on Windows NT and some of its immediate successor operating-systems. TechNet documentation.

More Awesome

原文:https://github.com/sirredbeard/Awesome-WSL

文章链接

标签