Skip to content

Latest commit

 

History

History
70 lines (52 loc) · 1.35 KB

arch-wsl.md

File metadata and controls

70 lines (52 loc) · 1.35 KB

Using Arch Linux in WSL2

  1. Install Arch using Scoop

    scoop install archwsl
    
    # Icon
    curl.exe -L https://raw.githubusercontent.com/simnalamburt/i/master/.dotfiles/arch.png `
      -o "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState\arch.png"
  2. Basic setup

    #
    # Use "wheel" as sudoers' group
    #
    EDITOR=vim visudo
    # %wheel ALL=(ALL) ALL
    
    
    #
    # Create a new user
    #
    useradd -m -G wheel -s /bin/bash simnalamburt
    passwd simnalamburt
    
    
    #
    # Setup pacman
    #
    pacman-key --init
    pacman-key --populate
    
    vim /etc/pacman.d/mirrorlist
    # https://mirror.premi.st/archlinux/
    #
    # Reference:
    #   https://archlinux.org/mirrors/status/
    
    vim /etc/pacman.conf
    # Add `ParallelDownloads = 10` under `[options]`
    
    
    #
    # Remove unused packages
    #
    pacman -R vim
  3. Change the default user

    arch.exe config --default-user simnalamburt
  4. (Optional) Create handy symlinks

    ln -s '/mnt/c/Users/simna/OneDrive/바탕 화면' Desktop
    ln -s '/mnt/c/Users/simna/Downloads'
    ln -s '/mnt/c/Windows/System32/drivers/etc/hosts'
    mkdir workspace

References