Part2: #dailyreport #emacs #security #gpg #gnupg #pgp #passwords
~/.gnupg/gpg-agent.conf: pinentry-program /usr/bin/pinentry-tty
/etc/inittab: c2:2345:respawn:/sbin/agetty -a user 38400 tty2 linux
in .bashrc:
if [ (tty) = "/dev/tty2" ] then # to disable tty2
stty -echo -icanon
while true do read -t 0 done
fi
export GPG_TTY=/dev/tty2
gpg-agent 2> /dev/null
Now you need to switch to TTY with Ctrl+Alt+F2 to enter
password.
If this is too complicated, you can always just enter
password directly in Emacs:
(setopt epa-pinentry-mode 'loopback)
蠡