You are not logged in.

#1 2012-06-30 23:16:32

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

[SOLVED] Password-window when compiling with gpg key

Hey all,

I just setup package signing for the packages I built myself and I was wondering if there is an alternative (read: CLI) to the window that pops up and asks for your password? It's only a small annoyance, but the window isn't themed properly. Perhaps it's GTK3, which my theme doesn't support yet and I don't feel like porting it just for this tiny annoyance.

Is there any possible way I can be asked for my password from the same terminal that's currently running makepkg?

Last edited by Unia (2012-07-01 10:09:50)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#2 2012-06-30 23:48:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Password-window when compiling with gpg key

man gpg-agent

has the pinetry-program option. As I recall, an update or two ago the current terminal option was changed/removed. Now I use pinentry-curses.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-07-01 03:00:26

aya
Member
From: Japan
Registered: 2011-06-12
Posts: 51

Re: [SOLVED] Password-window when compiling with gpg key

True, it is not themed properly, but it is the only way I could get gpg-agent work.
I tried to uncomment different pineentries in  ~/.gnupg/gpg-agent.conf, but pinentry-qt4 for example displayed for about 1 second and closed leaving the package unsigned (did not try kwallet though)

aya@pc ~]$ cat .gnupg/gpg-agent.conf
# Cache settings
default-cache-ttl 10800
default-cache-ttl-ssh 108

# Environment file
write-env-file /home/aya/.gpg-agent-info

# Keyboard control
no-grab

# PIN entry program
#pinentry-program /usr/bin/pinentry-kwallet
#pinentry-program /usr/bin/pinentry-qt4
#pinentry-program /usr/bin/pinentry-curses

You may want to try to uncomment pinentry-curses for the CLI prompt.

# edit: added code tags - you can re-edit the post to see how it is done...

Last edited by jasonwryan (2012-07-01 04:10:07)

Offline

#4 2012-07-01 10:09:38

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [SOLVED] Password-window when compiling with gpg key

Thanks. I didn't have a gpg-agent.conf file so I made one and added the following:

# PIN entry program
pinentry-program /usr/bin/pinentry-curses

Now it works properly


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

Board footer

Powered by FluxBB