init
This commit is contained in:
37
install.sh
Normal file
37
install.sh
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user