Skip to content

Instantly share code, notes, and snippets.

@jelu
Created January 28, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jelu/f06cc150ef80edf4d113 to your computer and use it in GitHub Desktop.
Save jelu/f06cc150ef80edf4d113 to your computer and use it in GitHub Desktop.
gpg build-package
pgrep -u `id -u` gpg-agent >/dev/null || gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info"

if [ -f "${HOME}/.gpg-agent-info" ]; then
  . "${HOME}/.gpg-agent-info"
  export GPG_AGENT_INFO
  export SSH_AUTH_SOCK
fi

GPG_TTY=$(tty)
export GPG_TTY
script /dev/null
apt-get install gnupg-agent
apt-get install pinentry-curses
apt-get remove pinentry-gtk2
apt-get install dput
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment