Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I'm moving to a Mac, so I made myself a WSL for it

Описание и применение

MSL предоставляет WSL‑подобный опыт на macOS: быстрый доступ к Linux‑оболочке, обмен файлами и экспериментальная поддержка графических приложений, но работает только на Apple Silicon и macOS 14+.

Задача

The author needed a Windows Subsystem for Linux (WSL)‑like experience on a Mac after planning to switch from a Surface Laptop 3 to a MacBook Air.

Результат

MSL provides a WSL‑like experience on macOS, offering fast Linux shell access, file sharing, and experimental GUI integration, while requiring Apple Silicon and macOS 14+.

Рабочий процесс

  • Install MSL from the .pkg release or build from source.
  • Run msl <instance> to list available distros.
  • Run msl install <distro> to download and configure a distro.
  • Start an instance with msl <distro>; the shell opens automatically.
  • Use msl <distro> in scripts or SSH via the auto‑generated ssh msl-<name> address.
  • Access macOS files inside Linux at /mnt/mac and Linux files from macOS via MSL Files.
  • Optionally enable experimental GUI apps with mslgd or use the sandbox for isolation.

Доказательства

I made it for one single reason. My Surface Laptop 3 is starting to show its age, and I'm planning to move to a MacBook Air in a few months. The one thing I really didn't want to give up was WSL.

Источник

Open any terminal on your Mac and type msl <instance>. You get a Linux shell right there, with no clunky VM window. From fully powered off it takes about 6 seconds, and once the instance is running it's basically instant.

Источник

Under the hood, every instance is a lightweight VM on Apple's Virtualization framework, the same idea as WSL 2.

Источник

There are twelve distros ready to download, from Alpine to Nix. Every download is checked against its published checksum before it's used.

Источник

MSL Files browsing an Ubuntu root filesystem, showing real Unix permissions and symlinks, right under your Mac folders.

Источник

mslgd is an X server that draws Linux windows as real Mac windows (NSWindow)s.

Источник

Apple silicon only, on macOS 14 Sonoma or later.

Источник

  • Дата записи: 2026-10-27T05:26:09.374Z