What I Touched This Week 2019-12-22

This is a post in series "What I Touched"

Problems I Solved

I tried to setup GPG in a Linux server and met problems when performing commands that require passphrase. It turns out that I have to set the GPG_TTY to tell gpg-agent that it should ask password from current console.

First kill the gpg-agent. Because it may already hang in the background to wait for a password.

pkill -9 gpg-agent

Then set the environment variable for the current session

export GPG_TTY=$(tty)

Or save it for future sessions

echo 'export GPG_TTY=$(tty)' >> ~/.profile

Read Articles

Read Books

  • 读书:「跑步时该如何呼吸」


    采用 3:2 模式,吸-2-3-呼-2。强度加大使用 2:1 模式,吸-2-呼。


comments powered by Disqus