Skip to content
nguekwangPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

82 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Installation by Device

Clean install

iwctl station wlan0 connect "<SSID>"

Check the connection

ping -c 3 archlinux.org

Sync the clock and set the time zone in the live environment (boot USB)

timedatectl set-ntp true
timedatectl set-timezone Asia/Tokyo

Set the time zone and enable NTP on the installed system (after rebooting into it, as root)

timedatectl set-timezone Asia/Tokyo
timedatectl set-ntp true

WSL2

wsl --install archlinux

Termux

pkg update && pkg upgrade
pkg install proot-distro
proot-distro install https://mirrors.dotsrc.org/archlinuxarm/os/ArchLinuxARM-aarch64-latest.tar.gz --name arch
proot-distro login arch
termux-setup-storage

Common setup

Account setup

Log in as root user

su -

Install sudo and zsh

pacman -Syu --noconfirm --needed sudo zsh

Check whether the user exists (no such user means it does not)

id nguekwang

Create 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)" nguekwang

Set the password

passwd nguekwang

Allow wheel to use sudo

printf '%%wheel ALL=(ALL:ALL) ALL\n' > /etc/sudoers.d/10-wheel
chmod 0440 /etc/sudoers.d/10-wheel
visudo -c

Log in as the user

su - nguekwang

Configuration setup

Install git-related CLI tools

sudo pacman -Syu --noconfirm --needed git github-cli openssh

Clone dotfiles directory

git clone https://github.com/nguekwang/dotfiles.git ~/dotfiles

Link configs and install packages (a second run while one is active stops with an error)

sh ~/dotfiles/sh/init

Guard hyprctl (only if Hyprland was installed before the link; the pacman hook does it afterwards)

sudo /etc/hyprctl-guard-install.sh

Remove 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 stable

Restore Neovim plugins

nvim --headless "+Lazy! restore" +qa

Tools setup

Install Claude Code

curl -fsSL https://claude.ai/install.sh | bash

Install uv and Python tools

curl -LsSf https://astral.sh/uv/install.sh | sh
. ~/.local/bin/env
uv tool install --upgrade ipython --with keras --with matplotlib

GitHub setup

Generate 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.pub

Push over SSH

git -C ~/dotfiles remote set-url origin git@github.com:nguekwang/dotfiles.git

Update

Pull the repository

git -C ~/dotfiles pull --ff-only

Re-link configs and upgrade packages

sh ~/dotfiles/sh/init

Upgrade Claude Code, uv and Python tools

claude update
uv self update
uv tool install --upgrade ipython --with keras --with matplotlib

Restore Neovim plugins

nvim --headless "+Lazy! restore" +qa

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages