Skip to content
Jörg Thalheim edited this page Aug 6, 2020 · 2 revisions

Welcome to the dotfiles wiki!

Bootstrap for legacy operating systems

$ sudo pacman -S git
or
$ sudo apt-get install git-core

$ git clone --depth=1 https://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
$ alias homeshick="$HOME/.homesick/repos/homeshick/bin/homeshick"
$ homeshick clone https://github.com/Mic92/dotfiles.git

Essential packages:

freebsd

$ pkg install ripgrep git tmux zsh vim ruby tcpdump lsof rsync sudo bash

debian/ubuntu

$ apt-get install build-essential ripgrep htop git-core tig zsh tmux vim-nox ruby strace tcpdump lsof rsync sudo

or minimal:

$ sudo apt-get install htop git-core zsh tmux vim-nox

Archlinux

$ pacman -S base-devel ripgrep htop git tig zsh tmux vim ruby strace tcpdump lsof rsync sudo
$ bash aur.sh -si package-query yaourt

Bootstrap yaourt

$ cat > aur.sh <<'EOF'
#!/bin/bash
d=${BUILDDIR:-$PWD}
for p in ${@##-*}
do
cd "$d"
curl "https://aur.archlinux.org/cgit/aur.git/snapshot/${p}.tar.gz"|tar xz
cd "$p"
makepkg ${@##[^\-]*}
done
EOF

Bootstrap user:

$ useradd -m -s /bin/zsh joerg
$ gpasswd -a joerg wheel # sudo on debian
$ passwd joerg
$ install -d -m 700 -o joerg -g joerg ~joerg/.ssh
$ cat >> /tmp/authorized_keys <<'EOF'
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbBp2dH2X3dcU1zh+xW3ZsdYROKpJd3n13ssOP092qE joerg@turingmachine
EOF
$ install -m 400 -o joerg -g joerg /tmp/authorized_keys ~joerg/.ssh/authorized_keys && rm /tmp/authorized_keys

Bootstrap system:

sed -i '/^#.*de_DE.UTF-8/s/^#//g;/^#.*en_DK.UTF-8/s/^#//g' /etc/locale.gen && locale-gen