Arch Linux Setup¶
Install Arch Linux¶
- 輸入以下指令
pacman -Sy pacman -Sy archlinux-keyring archinstall
- Set
Mirrors
->Mirror region
toTaiwan
- Set
Disk Configuration
->Use a best-effort default partition layout
and select the dist, then choose the filesystem to bebtrfs
(set anyother to default) - Change
Hostname
- Change
Root password
- Select
User account
andAdd a user
- Select
Profile
->Type
and chooseServer
, then selectsshd
- Select
Additional packages
and typesudo vim
- Set
Network configuration
toUse NetworkManager
- Set
Timezone
toAsia/Taipei
- Install
Disable Password For Sudo¶
- 輸入以下指令
sudo rm /etc/sudoers.d/00_curious sudo EDITOR=vim visudo
- 去掉以下這行的註解
%wheel ALL=(ALL:ALL) NOPASSWD: ALL
Install Zsh + Oh My Zsh + Powerlevel10k¶
- Install
zsh
&git
sudo pacman -Sy && sudo pacman -Syu sudo pacman -Sy zsh git
- Install
Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- Install theme
PowerLevel10k
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
- Install plugin
zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- Install plugin
zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- Modify
~/.zshrc
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
- Load new
.zshrc
source ~/.zshrc
Packages Installation¶
sudo pacman -Syu python python-pipx gcc gdb git ruby make gawk bison libseccomp tmux wget binutils nasm openssl
pipx install pwntools
Add export PATH=/home/curious/.local/bin:$PATH
to .zshrc
git clone https://github.com/pwndbg/pwndbg ~/pwndbg && \
cd ~/pwndbg && \
./setup.sh
git clone https://github.com/scwuaptx/Pwngdb.git ~/Pwngdb && \
cat ~/Pwngdb/.gdbinit >> ~/.gdbinit && \
sed -i "s/source ~\/peda\/peda.py//g" ~/.gdbinit
gem install seccomp-tools one_gadget
Add export PATH=/home/curious/.local/share/gem/ruby/3.0.0/bin:$PATH
to .zshrc