iwctl station wlan0 connect "<SSID>"Check the connection
ping -c 3 archlinux.orgSync the clock and set the time zone in the live environment (boot USB)
timedatectl set-ntp true
timedatectl set-timezone Asia/TokyoSet the time zone and enable NTP on the installed system (after rebooting into it, as root)
timedatectl set-timezone Asia/Tokyo
timedatectl set-ntp truewsl --install archlinuxpkg update && pkg upgrade
pkg install proot-distroproot-distro install https://mirrors.dotsrc.org/archlinuxarm/os/ArchLinuxARM-aarch64-latest.tar.gz --name archproot-distro login archtermux-setup-storageLog in as root user
su -Install sudo and zsh
pacman -Syu --noconfirm --needed sudo zshCheck whether the user exists (no such user means it does not)
id nguekwangCreate the user
# If it does not exist
useradd -m -G wheel -s "$(command -v zsh)" nguekwang
# If it exists
usermod -a -G wheel -s "$(command -v zsh)" nguekwangSet the password
passwd nguekwangAllow wheel to use sudo
printf '%%wheel ALL=(ALL:ALL) ALL\n' > /etc/sudoers.d/10-wheel
chmod 0440 /etc/sudoers.d/10-wheel
visudo -cLog in as the user
su - nguekwangInstall git-related CLI tools
sudo pacman -Syu --noconfirm --needed git github-cli opensshClone dotfiles directory
git clone https://github.com/nguekwang/dotfiles.git ~/dotfilesLink configs and install packages (a second run while one is active stops with an error)
sh ~/dotfiles/sh/initGuard hyprctl (only if Hyprland was installed before the link; the pacman hook does it afterwards)
sudo /etc/hyprctl-guard-install.shRemove a stale lazy-lock.json symlink and pin lazy.nvim to stable (if lazy.nvim is absent, init.lua clones it)
[ -L ~/.config/nvim/lazy-lock.json ] && rm -f ~/.config/nvim/lazy-lock.json
git -C ~/.local/share/nvim/lazy/lazy.nvim fetch -q --tags --force origin
git -C ~/.local/share/nvim/lazy/lazy.nvim checkout -q stableRestore Neovim plugins
nvim --headless "+Lazy! restore" +qaInstall Claude Code
curl -fsSL https://claude.ai/install.sh | bashInstall uv and Python tools
curl -LsSf https://astral.sh/uv/install.sh | sh
. ~/.local/bin/env
uv tool install --upgrade ipython --with keras --with matplotlibGenerate an SSH key
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ""Register it with GitHub
gh auth login -s admin:public_key
gh ssh-key add ~/.ssh/id_ed25519.pubPush over SSH
git -C ~/dotfiles remote set-url origin git@github.com:nguekwang/dotfiles.gitPull the repository
git -C ~/dotfiles pull --ff-onlyRe-link configs and upgrade packages
sh ~/dotfiles/sh/initUpgrade Claude Code, uv and Python tools
claude update
uv self update
uv tool install --upgrade ipython --with keras --with matplotlibRestore Neovim plugins
nvim --headless "+Lazy! restore" +qa