Retour au classement

DDoSolitary/LxRunOffline

C++

A full-featured utility for managing Windows Subsystem for Linux (WSL)

wslbashinstallerbash-on-windowswindows-subsystem-linuxutility
Croissance des étoiles
Étoiles
4.3k
Forks
249
Croissance hebdomadaire
Issues
22
2k4k
janv. 2017mars 2020mai 2023juil. 2026
README

LxRunOffline

Build status Chocolatey

A full-featured utility for managing Windows Subsystem for Linux (WSL).

Donation

It would be greatly appreciated if you could make a donation to support development of this project.

PayPal

Alipay

Alipay

Features

  • Install any Linux distro to any directory on your computer.
  • Move an existing installation to another directory.
  • Duplicate(copy) an existing installation.
  • Register an existing installation directory. This enables you to install to a USB stick and use it on different computers.
  • Run arbitrary Linux commands in a specified installation.
  • Configure default user, environment variables and various flags.
  • Export configuration to an XML file and import from the file.
  • Export an installation to a tar file.

Install

You can install via Chocolatey choco install lxrunoffline, Scoop scoop bucket add extras, scoop install lxrunoffline, or download the binaries directly:

Shell extension

The right-click menu feature requires the shell extension DLL to be properly registered. This is automatically done if you used Chocolatey to install this project. However, if you downloaded the binaries directly, you need to run regsvr32 LxRunOfflineShellExt.dll manually to register the DLL file.

Usage

See the Wiki to download tar files for different distros, which are used by the LxRunOffline install command.

Run LxRunOffline for available actions and run LxRunOffline <action-name> for available arguments/flags.

Build

This project uses CMake as its build system. MinGW GCC and Visual C++ compilers are supported.

Visual C++

  1. Install Visual Studio 2019, latest Windows SDK, CMake and vcpkg.

  2. Install dependencies.

vcpkg install --triplet x64-windows-static libarchive boost-program-options boost-format boost-algorithm boost-test tinyxml2
  1. Open "x64 Native Tools Command Prompt" from Start Menu and build.
mkdir build
cd build
cmake .. ^
    -G "NMake Makefiles" ^
    -DCMAKE_TOOLCHAIN_FILE=<path-to-vcpkg-dir>/scripts/buildsystems/vcpkg.cmake ^
    -DVCPKG_TARGET_TRIPLET=x64-windows-static
nmake

MinGW

  1. Install MSYS2.

  2. Open the "MSYS2 MinGW 64-bit" shell from Start menu, and install dependencies.

pacman -Sy --needed --noconfirm base-devel git mingw-w64-x86_64-{toolchain,cmake,libarchive,boost,tinyxml2}
  1. Build.
mkdir build
cd build
cmake .. -G "MSYS Makefiles"
make

Notes

  • Other CMake generators like Visual Studio and Ninja may also work, but they're neither tested nor officially supported by this project.
  • Static linking is used by default. However, you can define -DLXRUNOFFLINE_STATIC=OFF to switch to dynamic linking. If you're building with Visual C++, you also need to change vcpkg's triplet to x64-windows when installing dependencies and invoking CMake.
  • The build script in CI configuration can be used as an example of how to build this project.
  • The shell extension uses ATL, which is not supported by MinGW, so it will only be built when using Visual C++.

Compatibility

  • v1.x: Only Windows 10 Fall Creators Update (v1709) or earlier.
  • v2.x: Only Windows 10 Fall Creators Update (v1709) or later.
  • v3.x: Only Windows 10 April 2018 Update (v1803) or later.

It is strongly recommended to install the April 2018 Update or later and use v3.x releases.

Dépôts similaires
microsoft/terminal

The new Windows Terminal and the original Windows console host, all in the same place!

C++MIT Licenseconsoleterminal
104.3k9.4k
kingToolbox/WindTerm

A professional cross-platform SSH/Sftp/Shell/Telnet/Tmux/Serial terminal.

Cterminaltelnet
kingtoolbox.github.io
31.7k2.4k
gpakosz/.tmux

Oh my tmux! My self-contained, pretty & versatile tmux configuration made with 💛🩷💙🖤❤️🤍

ShellMIT Licensetmuxtmux-conf
25.2k3.6k
jarun/nnn

n³ The unorthodox terminal file manager

CBSD 2-Clause "Simplified" Licensefile-managerdisk-usage
21.7k811
xpipe-io/xpipe

Access your entire server infrastructure from your local desktop

JavaMavenApache License 2.0javajavafx
xpipe.io
14.4k551
yuk7/ArchWSL

ArchLinux based WSL Distribution. Supports multiple install.

MakefileMIT Licensearchlinuxwsl
git.io/archwsl
7.4k203
sirredbeard/awesome-wsl

Awesome list dedicated to Windows Subsystem for Linux

Otherwslwindows-subsystem-linux
6.5k311
gerardog/gsudo

Sudo for Windows

C#MIT Licenseelevated-commandselevated-permissions
gerardog.github.io/gsudo
6k163
dorssel/usbipd-win

Windows software for sharing locally connected USB devices to other machines, including Hyper-V guests and WSL 2.

C#GNU General Public License v3.0windowsusb
5.9k360
sayanarijit/xplr

A hackable, minimal, fast TUI file explorer

Rustcrates.ioMIT Licensetuifile-explorer
xplr.dev
4.8k92
codeedu/wsl2-docker-quickstart

Guia/Tutorial rápido do WSL2 + Docker

windows-subsystem-for-linuxwindows-subsystem-linux
4.5k955
microsoft/vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.

DockerfileOthervscodessh
aka.ms/vscode-remote
4.1k456