File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed
Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 1- # easyWSL
2- Powershell script to install custom WSL distro using Docker easily.
1+ # easyWSL - have your own custom WSL distro easily
2+
3+ This is a tutorial how to easily have custom WSL distro, for example Arch Linux.
4+ Change distro and directories if you want.
5+
6+ > I recommend using Windows Terminal, remember to use preview version of App Installer in order to use ` winget ` functionality.
7+
8+ 1 . Change your ExecutionPolicy.
9+ 1 . Open Powershell as an administrator.
10+ 2 . ` Set-ExecutionPolicy Unrestricted `
11+ 2 . Clone and go to the dir. of this repository.
12+ 1 . ` git clone https://github.com/Unrooted/easyWSL `
13+ 2 . ` cd easyWSL `
14+ 3 . Run Powershell script. Click ` Yes ` and install Docker just by doing what an installator says.
15+ 1 . ` &"C:\PATH\TO\CLONED\REPO\easyWSL\easyWSLPowershellPart.ps1" `
16+ 4 . If your Docker container boots up, run:
17+ 1 . ` cd && curl https://github.com/Unrooted/easyWSL/easyWSLLinuxPart.sh && ./easyWSLLinuxPart.sh `
18+ 5 . Docker container will exit itself. Let the Powershell finish the job.
19+
20+ > You can also run first three steps commands in one line, but just to have a clarity in this README I decided to put them separatly.
21+
22+ If you want to run your freshly created WSL, just go to your Powershell and type ` wsl -d wslarchlinux ` and enjoy it!
Original file line number Diff line number Diff line change 1+ pacman -Syu -y && pacman -S sudo -y && pacman -S vim -y && echo export EDITOR=/usr/bin/vim >> ~ /.bashrc && pwconv && grpconv && chmod 0744 /etc/shadow && chmod 0744 /etc/gshadow && exit
Original file line number Diff line number Diff line change 1+ winget install - e -- id Docker.DockerDesktop;docker run - it -- name wslarchlinux archlinux:latest;docker export -- output= install.tar wslarchlinux;dir .\install.tar;mkdir c:\wsldockerdistros;cp .\install.tar c:\wsldockerdistros\wslarchlinux- install.tar;cd c:\wsldockerdistros;wsl.exe -- import wslarchlinux .\wslarchlinux .\wslarchlinux- install.tar;wsl.exe - l;wsl.exe - d wslarchlinux
You can’t perform that action at this time.
0 commit comments