LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-27-2012, 10:56 AM   #1
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
Ubuntu 12.04 - how to disable GUI for gpg ?


Hi Gurus,

few minutes ago I have wrote a perl script to encrypt all tar files in the folder. Everything is fine, script running... but after execution on the screen apear stupid gpg GUI and asking me about password to gpg.

In my script I have defined password as variable. On the server without X Windows my perl script running like a charm but on Ubuntu all the time I have to close stupid GPG GUI (for 34000 files ... ). How to disable it ?

I dont get it... somebody executing command:

Code:
gpg -c filename
from command line and instead of prompt in command line You see GUI asking You about password... that sucks... mixing famous command line with dummy guis...


Please help, how to disable it ?
 
Old 08-14-2012, 08:36 PM   #2
garr0n
LQ Newbie
 
Registered: Mar 2007
Distribution: Slackware 12.0
Posts: 20

Rep: Reputation: 0
I just had this problem. In case you still need a solution, or anyone else finds this question on a search, the solution is
Code:
gpg --batch --passphrase your_password -c file
Use -d instead of -c to decode.

Additionally, the program pinentry is responsible for the GUI prompt. It is a symlink to /usr/bin/pinentry-gtk-2, but you can also change it to /usr/bin/pinentry-curses for a curses-based interface. There might be a way to set the default pinentry program in a configuration file, I'm not sure.
 
  


Reply

Tags
gpg, gui, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gpg / gpg-agent -- Can't connect to /root/.gnupg/S.gpg-agent jrtayloriv Linux - Security 9 06-03-2019 10:06 AM
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 09:37 AM
Disable GUI veeruk101 Linux - General 7 07-27-2007 12:52 AM
GUI for GPG with clipboard flying-tuxman Linux - General 0 01-12-2006 05:22 PM
How disable GPG. Avenge19 Linux - Software 2 11-02-2004 11:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration