Install Arch Linux with archinstall
.
Options are as follows:
- Mirrors: where you are
- Disk configuration: Use a best-effort default partitioning layout btrfs, default structure, RTRFS compression
- User account with
sudo
- Profile:
- Desktop KDE
- Graphic driver: nvidia (proprietary)
- greeter: sddm
- Audio: pipewire
- Network: NetworkManager
- Timezone: where you are
The configuration is split into multiple scripts because some steps require interactivity, such as entering the Root password or working in a browser.
Execute them in the following order.
-
Copy secret files from your backup to
~/Documents/secrets/
. -
Setup GitHub account
Run setup_arch_1.sh
with root privileges to install packages required for the github-cli
.
sudo ./setup_arch_1.sh
Then, run the following as a regular user to configure the github-cli
.
gh auth login
Follow the instructions to authenticate.
- Install
yay
package manager
Run setup_arch_2.sh
with root privileges to install yay
.
sudo ./setup_arch_2.sh
Root password is required during this script.
After the above script is executed, run the following to check the connection to github.com
via ssh.
ssh -T [email protected]
- Install packages
Run setup_arch_3.sh
with root privileges to install packages.
sudo ./setup_arch_3.sh
- Setup shell environment
Following commands need to be executed as a regular user.
Change default shell to zsh:
chsh -s $(which zsh)
Install oh-my-zsh:
ZSH="/home/takahisa/Documents/git/oh-my-zsh" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Configure zsh:
ln -sf ${HOME}/Documents/git/dotfiles/.zshenv "${HOME}"/.zshenv
ln -sf ${HOME}/Documents/git/dotfiles/.config/zsh "${HOME}"/.config/zsh
rm -f "${HOME}"/.zshrc
# plugins
ln -sf ${HOME}/Documents/git/dotfiles/misc/omz_custom/alias.zsh ${ZSH_CUSTOM}/alias.zsh
# rye completion
mkdir -p "${HOME}"/Documents/git/oh-my-zsh/custom/plugins/rye/
rye self completion -s zsh > ${ZSH_CUSTOM}/plugins/rye/_rye
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM}/themes/powerlevel10k
- Setup Python environment
Run following to setup Python environment for NeoVim:
mkdir -p ~/Documents/venvs/neovim && cd $_
uv venv
source .venv/bin/activate
uv pip install pynvim neovim