Skip to content

benlavender/wsl2-archlinux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


wsl2-archlinux

Arch Linux configuration files that I use to run on WSL2.

This is a Docker generated image that is built then exported to a tarball and then imported into WSL2.

Usage:

  1. Update the configs\wsl.conf file with the correct username and hostname:
#Example
[network]
hostname = "PRD-UXC001"

[user]
default = "ben"
  1. Create the container image using Docker:
REM Set the %pass% variable as the desired password for the user specified in the --build-arg:
set pass=your_password
set user=user_name
docker build --tag wsl2arch --secret id=pass,env=pass --build-arg user=%user% .
  1. Create the container from the image and then export to a tarball:
docker run --name wsl2arch wsl2arch
docker export --output="wsl2arch.tar" wsl2arch
  1. Remove the container now it has been exported:
docker rm wsl2arch
  1. Import the tarball into WSL2:
wsl --import Arch <"wsl_store"> <"wsl2arch.tar">

About

Arch Linux configuration files that I use to run on WSL2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published