Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.
/ DevuanWSL Public archive
forked from VPraharsha03/DevuanWSL

Devuan as a WSL instance. A Debian variant without the complexities and dependencies of systemd.

License

Notifications You must be signed in to change notification settings

Vinfall/DevuanWSL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevuanWSL

Warning

Deprecated, either build it yourself or use DebianSidWSL2 instead.

Devuan Linux on WSL2 based on DevuanWSL, powered by wsldl.

This fork is based on Daedalus (current stable) in favor of the original Beowulf.

screenshot

Requirements

  • Windows 10 1803 April 2018 Update x64 or later.
  • Windows Subsystem for Linux feature is enabled.
  • Latest WSL recommended.

Install

  1. Download installer zip from release or monthly action build (recommended)
  2. Extract all files in zip file to same directory (e.g. D:\WSL\Devuan)
  3. Run Devuan.exe to extract rootfs and Register to WSL

Devuan.exe is used as WSL distro label. It's possible to have multiple installs by renaming it to something like Dedede.exe.

Uninstall

.\Devuan.exe clean

Usage

Usage:
  <no args>
    - Open a new shell with your default settings.

  run <command line>
    - Run the given command line in that distro. Inherit current directory.

  runp <command line (includes windows path)>
    - Run the path translated command line in that distro.

  config [setting [value]]
    - `--default-user <user>`: Set the default user for this distro to <user>
    - `--default-uid <uid>`: Set the default user uid for this distro to <uid>
    - `--append-path <on|off>`: Switch of Append Windows PATH to $PATH
    - `--mount-drive <on|off>`: Switch of Mount drives
    - `--default-term <default|wt|flute>`: Set default terminal window

  get [setting]
    - `--default-uid`: Get the default user uid in this distro
    - `--append-path`: Get on/off status of Append Windows PATH to $PATH
    - `--mount-drive`: Get on/off status of Mount drives
    - `--wsl-version`: Get WSL Version 1/2 for this distro
    - `--default-term`: Get Default Terminal for this distro launcher
    - `--lxguid`: Get WSL GUID key for this distro

  backup [contents]
    - `--tgz`: Output backup.tar.gz to the current directory using tar command
    - `--reg`: Output settings registry file to the current directory

  clean
    - Uninstall the distro.

  help
    - Print this usage message.

Build

DevuanWSL can be built on GNU/Linux or WSL.

curl, bsdtar, jq and unzip is required for build.

# Install build tools
sudo apt install -y curl libarchive-tools jq unzip
# Make release
# Use of `sudo` recommended to avoid weird file permission in rootfs
sudo make
# Clean-up using `sudo` as some files are owned by root
sudo make clean

Backup

Personally I prefer using native wsl --export + zstd over wsldl backup mentioned in #Usage, but you can choose whichever you like.

wsl --shutdown

# wsl --export + zstd, impressive compression
# you need to install ZSTD on Windows (NOT inside WSL!)
cmd /c "wsl --export Devuan - | zstd -T0 -o Devuan-$(Get-Date -UFormat "%Y%m%d").tar.zst"

About

Devuan as a WSL instance. A Debian variant without the complexities and dependencies of systemd.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Makefile 100.0%