techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

5.4K
active users

Anoncheg

Part2:
~/.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)