Skip to content

Instantly share code, notes, and snippets.

@hschne
Last active May 12, 2023 10:34
Show Gist options
  • Save hschne/2f079132060adf903abe3e2afdc2be96 to your computer and use it in GitHub Desktop.
Save hschne/2f079132060adf903abe3e2afdc2be96 to your computer and use it in GitHub Desktop.
Local Setup in Markdown

Setting up Arch

Installation

Setup

Basics

sudo pacman -Sy --noconfirm base-devel git curl openssh inetutils

Github

ssh-keygen -b 4096 -t rsa -N '' -q -C "$USER" -f "$HOME/.ssh/id_rsa"
curl -o /dev/null \
    -s -w "%{http_code}\n" \
    -H "Authorization: token $TOKEN"
    --data "{\"title\":\"$USER@$(hostname)"\",\"key\":\"$(cat ~/.ssh/id_rsa.pub)\"}" \
    https://api.github.com/user/keys
ssh-keyscan github.com >> "$HOME/.ssh/known_hosts" 2>/dev/null

Setup Yay

git clone https://aur.archlinux.org/yay.git 
makepkg -si --noconfirm 

Desktop

yay -S --noconfirm \
    betterlockscreen \
    compton \ 
    dunst \ 
    feh \
    gnome \
    gnome-tweaks \
    i3-gaps \
    jsoncpp \
    polybar \
    rofi \
    xorg-xinit\
    xorg-xprop \ 
    lxappearance \
    nordic-theme-git 

CLI

yay -S --noconfirm \
    alacritty \
    diff-so-fancy \
    fzf \
    gvim \
    hub \
    jq \
    httpie \
    ripgrep \
    thefuck \
    tmux \
    zsh

Starship Prompts

 curl -fsSL https://starship.rs/install.sh | bash

Browsers & Dev Tookls

yay -S --noconfirm \
    chromium \
    docker \
    docker-compose \
    firefox-developer-edition \
    jetbrains-toolbox 

Utilities & Drivers

yay -S --noconfirm \
    arandr \
    ctags \
    dialog \
    easyeffects \
    htop \
    mesa \
    neofetch \
    network-manager-applet \
    networkmanager \
    pavucontrol \
    pipewire \
    pipewire-pulse \
    pipewire-gst-plugin-pipewire \
    ranger \
    redshift \
    reflector \
    screenkey \
    w3m \
    wget \
    xclip \
    xournal \
    xorg-xrandr 
sudo systemctl enable NetworkManager.service

Random Apps

yay -S --noconfirm \
    gimp \
    inkscape \
    speedcrunch \
    spotify \
    syncthing \
    syncthingtray \
    slack \
    transmission-gtk \
    vlc \
    zathura \
    zathura-pdf-mupdf 

Homeshick

homeshick_root="$HOME/.homesick/repos/homeshick"
homeshick_bin="$homeshick_root/bin/homeshick"

git clone git@github.com:andsens/homeshick.git "$homeshick_root" 

"${homeshick_bin}" clone --batch git@github.com:glumpat/dotfiles.git
"${homeshick_bin}" link --force

ZSH

sudo chsh -s "/bin/zsh" "$USER" 

Zinit

mkdir $HOME/.zinit
git clone https://github.com/zdharma/zinit.git $HOME/.zinit/bin

TPM

local tpm_root="$HOME/.tmux/plugins/tpm"
git clone git@github.com:tmux-plugins/tpm.git  "$tpm_root"
"$tpm_root/scripts/install_plugins.sh"

ASDF

asdf_root="$HOME/.asdf"

git clone  git@github.com:asdf-vm/asdf.git "$asdf_root"

asdf-ruby / asdf-node / asdf-python

# Ruby
asdf plugin-add ruby
asdf install ruby $(asdf latest ruby)
# Python
asdf plugin-add python
asdf install python $(asdf latest python)
# Node
asdf plugin-add nodejs
"$HOME/.asdf/plugins/nodejs/bin/import-release-team-keyring"
asdf install nodejs $(asdf latest nodejs)

GDM

sudo systemctl enable gdm

Docker

sudo usermod -aG docker "$USER" 
sudo systemctl enable docker

Fonts

yay -S --noconfirm \
    ttf-font-awesome \
    ttf-material-icons-git 

Nerd Fonts

mkdir ~/Downloads && cd ~/Downloads
wget -O SauceCodePro.zip https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.0/SourceCodePro.zip
unzip SauceCodePro.zip ~/.local/share/fonts

Better Lockscreen

mkdir -p ~/Pictures/Backgrounds
wget -O ~/Pictures/Backgrounds/forest.jpg https://i.imgur.com/lhZoAOv.jpg
wget -O ~/Pictures/Backgrounds/mountains.jpg https://i.imgur.com/zuNUJ4J.jpg
wget -O ~/Pictures/Backgrounds/moss.jpg https://i.imgur.com/kTNHsRt.jpg
wget -O ~/Pictures/Backgrounds/cliff.jpg https://i.imgur.com/hdXF561.jpg
wget -O ~/Pictures/Backgrounds/mountainlake.jpg https://i.imgur.com/ymmraHp.jpg
wget -O ~/Pictures/Backgrounds/autumn.jpg https://i.imgur.com/f5YDfNq.jpg
wget -O ~/Pictures/Backgrounds/tundra.jpg https://i.imgur.com/g9h0kkl.jpg
betterlockscreen -u ~/Pictures/Backgrounds

XPS13 9343

Additional Drivers

yay -S --noconfirm \
    broadcom-wl-dkms \
    linux-headers \
    bcm20702a1-firmware 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment