Skip to content

Instantly share code, notes, and snippets.

@hdhnl
Last active September 23, 2021 09:27
Show Gist options
  • Save hdhnl/d448cae9bd4ab14642fec88f4425cbb9 to your computer and use it in GitHub Desktop.
Save hdhnl/d448cae9bd4ab14642fec88f4425cbb9 to your computer and use it in GitHub Desktop.
Obarun-linux-on-windows-subsystem-for-linux
#Install Obarun linux [1] on windows subsystem for linux.
#Obarun linux is an Arch linux based system without systemd.
#After installing wsl2 on windows10 or windows11 [2] and docker on Ubuntu [3] (from microsoft store),
#you type next commands against Ubuntu terminal prompt [4]
docker pull obarun/base
docker create --name obarun obarun/base
docker export -o obarun.tar obarun
#On WindowsPowershell
#wsl --import "<distro>" "<location for your wsl distro>" "PATH/TO/<distro>.tar" --version 2
wsl --import "obarun" "C:\Users\<yourusername>\WSL\obarun" "C:\Users\<yourusername>\obarun.tar" --version 2
wsl -l -v
wsl -d obarun
[root@<yourpcname> <yourusername>]# pacman -Syu
[root@<yourpcname> <yourusername>]# pacman -Ss neofetch
[root@<yourpcname> <yourusername>]# pacman -S community/neofetch
[root@<yourpcname> <yourusername>]# neofetch
,;::::; root@<yourpcname>
;cooolc;, ----------
,coool; OS: Obarun Linux on Windows 10 x86_64
,loool, Kernel: 5.10.16.3-microsoft-standard-WSL2
loooo; Uptime: 1 hour, 35 mins
:ooool Packages: 118 (pacman)
cooooc ,:ccc; Shell: bash 5.1.8
looooc :oooooool Terminal: Windows Terminal
cooooo ;oooooooooo, CPU: Intel i3-4030U (2) @ 1.895GHz
:ooooo; :ooooooooooo Memory: 141MiB / 2988MiB
oooooo oooooooooooc
:oooooo :ooooooooool
loooooo ;oooooooool
looooooc .coooooooc
cooooooo: ,;co;
,ooooooool; ,:loc
cooooooooooooloooooc
;ooooooooooooool;
;looooooolc;
#Credits:
# [1] <http://web.obarun.org/>
# [2] <https://docs.microsoft.com/en-us/windows/wsl/install>
# [3] <https://dev.to/bartr/install-docker-on-windows-subsystem-for-linux-v2-ubuntu-5dl7>
# [4] <https://www.sport-touring.eu/any-linux-distribution-on-windows-10-with-wsl2/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment