commit ffdf84c6269706b6c9b811aa3a6a52045a71c8e6 Author: Elias Kohout Date: Fri Mar 27 23:05:07 2026 +0100 init diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..6f366b6 --- /dev/null +++ b/install.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +# install basic packages +apk add gnupg gnupg-scdaemon pinentry-tty git + +# gnupg config +mkdir -p ~/.gnupg +chmod -R 700 ~/.gnupg +echo 'enable-ssh-support' > ~/.gnupg/gpg-agent.conf +echo 'pinentry-program /usr/bin/pinentry-tty' >> ~/.gnupg/gpg-agent.conf + +# setup env +export GPG_TTY="$(tty)" +export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" + +# trust key on card +gpg --recv-keys "56FB101D4E094804B1666859083A2C9A046554D6" +echo "56FB101D4E094804B1666859083A2C9A046554D6:6:" | gpg --import-ownertrust + +# restart agent +gpgconf --kill gpg-agent +gpg-agent --daemon + +# test +ssh -T git@g.eliaskohout.de + +# setup projects +mkdir ~/projects/ +cd ~/projects/ +git clone "git@g.eliaskohout.de:eliaskohout/env.git" + +# setup env +grep main /etc/apk/repositories | sed 's/main/community/' >> /etc/apk/repositories +apk update +cd env +./runs/up.python.sh +./scripts/conf-run up \ No newline at end of file