{"id":49585836,"url":"https://github.com/varshan-4068/wsl-setup","last_synced_at":"2026-05-03T22:35:15.878Z","repository":{"id":300059724,"uuid":"1005033457","full_name":"varshan-4068/wsl-setup","owner":"varshan-4068","description":"I would be covering some steps and procedure to setup wsl in your windows machine it may be windows 10 or 11...","archived":false,"fork":false,"pushed_at":"2025-09-14T16:45:16.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-14T18:35:56.626Z","etag":null,"topics":["archlinux","linux","open-source","ubuntu","wsl"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/varshan-4068.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-19T15:00:49.000Z","updated_at":"2025-09-14T16:45:20.000Z","dependencies_parsed_at":"2025-06-26T10:16:57.823Z","dependency_job_id":null,"html_url":"https://github.com/varshan-4068/wsl-setup","commit_stats":null,"previous_names":["varshan-4068/wsl-setup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/varshan-4068/wsl-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varshan-4068%2Fwsl-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varshan-4068%2Fwsl-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varshan-4068%2Fwsl-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varshan-4068%2Fwsl-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/varshan-4068","download_url":"https://codeload.github.com/varshan-4068/wsl-setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varshan-4068%2Fwsl-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32587821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archlinux","linux","open-source","ubuntu","wsl"],"created_at":"2026-05-03T22:35:15.362Z","updated_at":"2026-05-03T22:35:15.865Z","avatar_url":"https://github.com/varshan-4068.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# *WSL*\n\n![](https://img.shields.io/github/last-commit/varshan-4068/wsl-setup?\u0026style=for-the-badge\u0026color=FFB1C8\u0026logoColor=D9E0EE\u0026labelColor=292324)\n![](https://img.shields.io/github/repo-size/varshan-4068/wsl-setup?color=CAC992\u0026label=SIZE\u0026logo=googledrive\u0026style=for-the-badge\u0026logoColor=D9E0EE\u0026labelColor=292324)\n\nHey there i am Sirivarshan K and welcome to the world of wsl let's get started..\n\n\u003cdetails\u003e\n\n\u003csummary\u003e WSL \u003c/summary\u003e\n\n- WSL is an now an open sourced project by Microsoft (Didn't expected to be open sourced by microsoft lol)\n\n- The Windows Subsystem for Linux (WSL) lets developers install a Linux distribution (such as Ubuntu, Debian, Arch Linux, Kali, etc) and use Linux applications, utilities, and Bash command-line tools directly on Windows, unmodified, without the virtual machine or dualboot setup.\n\n\u003c/details\u003e\n\n\u003e [!Tip]\n\u003e To install wsl a Terminal is required and windows 11 ships with a default terminal named windows terminal so just delete it and install windows terminal preview through microsoft store because this terminal ships with the latest new features when compared with windows terminal\n\n\u003cdetails\u003e\n\n\u003csummary\u003e  Installation \u003c/summary\u003e\n\n- After installing the terminal open it as a powershell profile (by default windows terminal opens it so need to worry )and type the commands given below :\n\n      wsl --list --online  # gives you the list of available distros for to be installed in the wsl  \n  \n      wsl --install -d \u003cdistroname\u003e  # pick a distro from the above command and install it with this command\n\n- Now after the installation is completed you should exit and reopen the terminal with wsl.exe command and follow the steps given below according to the distribution you have installed..\n\n\u003cdetails\u003e\n\n\u003csummary\u003e Archlinux \u003c/summary\u003e\n\n- If you have installed archlinux then type ``wsl -d archlinux`` in your windows terminal and you would be entering into the bash(a default shell in linux) environment of linux as a root user so to add a sudo user and open wsl as sudo user follow the commands mentioned below : \n    \n      useradd -m -aG wheel -s /bin/bash \u003cyour preferred user\u003e  # here replace \u003cyour preferred user\u003e with the user name you wanna create for example useradd izagi\n\n      passwd \u003cusername\u003e  # if u have created a user as for example izagi with the above command then to create a user password for the user izagi use this command\n  \n      pacman -S sudo archlinux-keyring base-devel vim vi \n    \n      visudo  # Opens the sudoers file and you need to uncomment the line  %wheel ALL=(ALL) ALL by erasing the # in thae opened sudoers file now after uncommenting save the file and exit with :wq \n\n      su \u003cusername\u003e  # to switch from root user to the sudo user for example the user izagi \n\n- Finally we had added a new user with sudo previleges, now whenever we open the wsl if you need to login as the created user with sudo privileges instead of a root user open your powershell and type the commands below : \n\n      wsl --manage archlinux --set-default-user \u003cusername\u003e  # this command helps wsl to open bash shell with created user for example izagi instead of a root user\n\n- Exit the powershell and now open the windows terminal and type wsl.exe Boom! you have been logged in as the created user with sudo previlegies instead of a root user. So after this type the command given below :\n\n\n      vim ~/.bash_profile   # add the code given below in the opened file and save it with the command :wq \n\n      if [[ -f ~/.bashrc ]]; then   # Add these lines in the ~/.bash_profile file \n          ~/.bashrc\n      fi\n  \n      sudo pacman -Sy  # it will ask for sudo password enter your's and update the pacman \n\n- That's it now u can install the pacman packages that you needed to be in your wsl..\n\n- I hope i explained it in detail with proper explanation But if u want a perfect non detailed Setup Check down the Summary Section Below...\n\n# *Summary*\n\n- Uninstall Windows Terminal and Install Windows Terminal Preview app from microsoft store..\n\n      wsl --list --online  # gives you the list of available distros for to be installed in the wsl  --\u003e In powershell \n  \n      wsl --install -d \u003cdistroname\u003e  # pick a distro from the above command and install it with this command --\u003e In powershell \n\n      wsl.exe --\u003e In powershell \n    \n      useradd -m -G wheel -s /bin/bash \u003cyour preferred user\u003e  # here replace \u003cyour preferred user\u003e with the user name you wanna create for example useradd izagi --\u003e In wsl\n\n      passwd \u003cusername\u003e  # if u have created a user as for example izagi with the above command then to create a user password for the user izagi use this command --\u003e In wsl\n    \n      visudo  # Opens the sudoers file and you need to uncomment the line  %wheel ALL=(ALL) ALL by erasing the # in thae opened sudoers file now after uncommenting save the file and exit with :wq    --\u003e In wsl\n\n      su \u003cusername\u003e  # to switch from root user to the sudo user for example the user izagi  --\u003e In wsl\n\n      wsl --manage archlinux --set-default-user \u003cusername\u003e  # this command helps wsl to open bash shell with created user for example izagi instead of a root user    --\u003e In powershell \n\n      sudo pacman -Sy archlinux-keyring base-devel vim vi\n  \n      sudo pacman -Su --\u003e In wsl \n\n      sudo pacman -S (needed packages to install) --\u003e In wsl\n\n      sudo localedef -i en_US -f UTF-8 en_US.UTF-8\n\nRecommended Packages : neovim base base-devel yazi fzf zoxide eza bash-completion git npm gcc wget curl unzip \n\nTo Install My Neovim Setup Checkout my [Neovim-Setup Repo](https://github.com/varshan-4068/Neovim-Setup.git) and Enjoy Using and Learning it...\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n  \u003csummary\u003e Ubuntu \u003c/summary\u003e\n\n   - If you have installed ubuntu then type ``wsl -d ubuntu`` in your windows terminal and you would be entering into the bash(a default shell in linux) environment of linux and would be prompting to ask for the username to be added and considered as sudo automatically and it will also ask the password to be set for that created user or existing user after these you would be entering into the wsl..\n   - Next follow the steps below :\n\n         vim ~/.bash_profile   # open this file and add the line given below\n\n         if [[ -f ~/.bashrc ]]; then  # Add these codes in the opened file and save it with the command :wq on vim...\n             source ~/.bashrc\n             cd ~\n         fi\n     \n   - That's it you have setup your ubuntu wsl and now you can install the packages needed by following the commands below :\n\n         sudo apt update\n     \n         sudo apt upgrade\n\n         sudo apt install \u003cyour needed packages\u003e\n\n         sudo apt autoremove\n\n         # if you want neovim then install it using sudo snap install nvim i know snaps are garbages but give it a try or build neovim from source\n\n   - To Install My Neovim Setup Checkout my [Neovim-Setup Repo](https://github.com/varshan-4068/Neovim-Setup.git) and Enjoy Using and Learning it...\n    \n\u003c/details\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n\u003csummary\u003e My Setup \u003c/summary\u003e\n\n\u003cbr /\u003e\n\n    sudo pacman -S base base-devel bash-completion eza fastfetch fzf zoxide gcc git unzip wget curl npm htop starship trash-cli unzip nvim \n\n    git clone https://aur.archlinux.org/paru-bin.git \n\n    cd paru-bin \n\n    makepkg -si \n\n    cd ~\n\n    rm paru/ \n\n    paru -S python-pywal16 \n\n    wal -q -e -i /mnt/c/Users/\u003cusername\u003e/\u003cwallpaper location\u003e  # this will apply your wallpaper colors to the terminal \n\n    vim .bashrc \n\n    (cat .cache/wal/sequences)\u0026  # Add this line in your .bashrc that's it save it using :wq and reopen your wsl boom ! u have your wallpaper colors in your terminal this is optional if you want you can set it up or else skip it..\n\n    sudo localedef -i en_US -f UTF-8 en_US.UTF-8\n    \n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarshan-4068%2Fwsl-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarshan-4068%2Fwsl-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarshan-4068%2Fwsl-setup/lists"}