Giter Site home page Giter Site logo

neroblack4life / alpinewsl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yuk7/alpinewsl

0.0 1.0 0.0 53 KB

Alpine Linux based WSL distribution. Supports multi-install. Lightest WSL distribution.

Home Page: https://git.io/alpwsl

License: MIT License

Makefile 90.43% Shell 9.57%

alpinewsl's Introduction

AlpineWSL

Alpine Linux on WSL (Windows 10 1803 or later) based on wsldl

screenshot

GitHub Workflow Status Github All Releases PRs Welcome License

Requirements

  • Windows 10 1803 April 2018 Update x64/arm64 or later.
  • Windows Subsystem for Linux feature is enabled.

Install

1. Download installer zip

2. Extract all files in zip file to same directory

3.Run Alpine.exe to Extract rootfs and Register to WSL

Exe filename is using to the instance name to register. If you rename it, you can register with a different name and have multiple installs.

How-to-Use(for Installed Instance)

exe Usage

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

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

    runp <command line (includes windows path)>
      - Run the given command line in that instance after converting its path.

    config [setting [value]]
      - `--default-user <user>`: Set the default user of this instance to <user>.
      - `--default-uid <uid>`: Set the default user uid of this instance to <uid>.
      - `--append-path <true|false>`: Switch of Append Windows PATH to $PATH
      - `--mount-drive <true|false>`: Switch of Mount drives
      - `--default-term <default|wt|flute>`: Set default type of terminal window.

    get [setting]
      - `--default-uid`: Get the default user uid in this instance.
      - `--append-path`: Get true/false status of Append Windows PATH to $PATH.
      - `--mount-drive`: Get true/false status of Mount drives.
      - `--wsl-version`: Get the version os the WSL (1/2) of this instance.
      - `--default-term`: Get Default Terminal type of this instance launcher.
      - `--lxguid`: Get WSL GUID key for this instance.

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

    clean
      - Uninstall that instance.

    help
      - Print this usage message.

How to uninstall instance

>Alpine.exe clean

How-to-Build

AlpineWSL can build on GNU/Linux or WSL.

curl,bsdtar,tar(gnu) and sudo is required for build.

$ make

with flags:

$ make ARCH=arm64 OUT_ZIP=Alpine_arm64.zip

Basic Params

Parameter Value Default
ARCH x64/arm64 x64
LNCR_EXE launcher file name Alpine.exe
OUT_ZIP zip file name Alpine.zip
DLR file downloader curl
DLR_FLAGS downloader flags -L
BASE_URL base rootfs url https:~

alpinewsl's People

Contributors

yuk7 avatar alisonatwork avatar am11 avatar

Watchers

 avatar

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.