[gentoo-user] openvpn client IP address

2018-01-17 Thread thelma
How openvpn client obtains IP address from the server?

On the sever in server.conf I had:
server 192.168.139.0 255.255.255.0
route 10.0.0.0  255.255.255.0 192.168.139.7

On server in ccd/ I had client.file:
ifconfig-push 192.168.139.3 255.255.255.0

When I connected to server my client IP address was:
192.168.139.7

So I modified the file on the server.conf
server 192.168.139.0 255.255.255.0
# route 10.0.0.0  255.255.255.0 192.168.139.7  (commenting this line out)

Restarted the openvpn on the server and when I established connection
from the client I still got the IP:
 192.168.139.7

I was under impression I should have IP:
192.168.139.3

Do I have to clear something else? Why am I getting IP: 192.168.139.7

-- 
Joseph



Re: [gentoo-user] Libreoffice-5.4.2.2 fails to start

2018-01-17 Thread thelma
emerge -pqv app-office/libreoffice
[ebuild   R   ] app-office/libreoffice-5.4.2.2  USE="bluetooth branding cups 
dbus gnome gtk java mysql (-coinmp) -collada -debug -eds (-firebird) -gltf 
-googledrive -gstreamer -gtk3 -jemalloc -kde -libressl -odk -pdfimport 
-postgres -quickstarter {-test} -vlc" LIBREOFFICE_EXTENSIONS="-nlpsolver 
-scripting-beanshell -scripting-javascript -wiki-publisher" 
PYTHON_SINGLE_TARGET="python3_5 -python2_7 -python3_4 -python3_6" 
PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"


Post wgetpaste link of libreoffice build log
What does it do?  When I try: 
wgetpaste /var/log/portage/app-office\:libreoffice-5.4.2.2\:20180116-202656.log

There is no output. This file is very large.

When I run:
strace -o libreoffice.txt -f soffice libreoffice 
The output "time out on":

...
2238  connect(3, {sa_family=AF_UNIX, 
sun_path="/tmp/OSL_PIPE_1000_SingleOfficeIPC_db1e7eee18c324ec912d5118a2d21af"}, 
110 
2250  <... futex resumed> ) = -1 ETIMEDOUT (Connection timed out)
2250  futex(0x7f77a3827840, FUTEX_WAKE_PRIVATE, 1) = 0
2250  futex(0x7f77a3827ad0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, 
{tv_sec=1516203792, tv_nsec=525188000}, 0x) = -1 ETIMEDOUT (Connection 
timed out)

Joseph

On 01/17/2018 03:33 PM, Jalus Bilieyich wrote:
> What is output of `emerge -pqv app-office/libreoffice`?
> 
> Post wgetpaste link of libreoffice build log.
> 
> On 01/16/2018 11:44 PM, the...@sys-concept.com wrote:
>> When I try to start "libreoffice" it will not start, not even from
>> command line. No errors, nothing.
>>
>> Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop,
>> gcc-6.4.0, glibc-2.25-r9, 4.9.72-gentoo x86_64)
>> =
>> System uname:
>> Linux-4.9.72-gentoo-x86_64-AMD_Ryzen_5_1400_Quad-Core_Processor-with-gentoo-2.4.1
>> KiB Mem:16432224 total,  14618724 free
>> KiB Swap: 524284 total,524284 free
>> Timestamp of repository gentoo: Mon, 15 Jan 2018 00:30:01 +
>> Head commit of repository gentoo: 2afd3441b99e18681bfeda82185e6abfe59182aa
>> sh bash 4.4_p12
>> ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
>> app-shells/bash:  4.4_p12::gentoo
>> dev-java/java-config: 2.2.0-r3::gentoo
>> dev-lang/perl:5.24.3::gentoo
>> dev-lang/python:  2.7.14-r1::gentoo, 3.5.4-r1::gentoo
>> dev-util/cmake:   3.9.6::gentoo
>> dev-util/pkgconfig:   0.29.2::gentoo
>> sys-apps/baselayout:  2.4.1-r2::gentoo
>> sys-apps/openrc:  0.34.11::gentoo
>> sys-apps/sandbox: 2.10-r4::gentoo
>> sys-devel/autoconf:   2.13::gentoo, 2.69-r4::gentoo
>> sys-devel/automake:   1.11.6-r2::gentoo, 1.15.1-r1::gentoo
>> sys-devel/binutils:   2.29.1-r1::gentoo
>> sys-devel/gcc:5.4.0-r4::gentoo, 6.4.0-r1::gentoo
>> sys-devel/gcc-config: 1.8-r1::gentoo
>> sys-devel/libtool:2.4.6-r3::gentoo
>> sys-devel/make:   4.2.1::gentoo
>> sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
>> sys-libs/glibc:   2.25-r9::gentoo
>> Repositories:
>>
>> gentoo
>> location: /usr/portage
>> sync-type: rsync
>> sync-uri: rsync://rsync.gentoo.org/gentoo-portage
>> priority: -1000
>> sync-rsync-extra-opts:
>>
>> brother-overlay
>> location: /var/lib/layman/brother-overlay
>> masters: gentoo
>> priority: 50
>>
>> Local
>> location: /usr/local/portage
>> masters: gentoo
>> priority: 
>>
>> ACCEPT_KEYWORDS="amd64"
>> ACCEPT_LICENSE="* -@EULA googleearth PUEL dlj-1.1 Oracle-BCLA-JavaSE"
>> CBUILD="x86_64-pc-linux-gnu"
>> CFLAGS="-march=native -O2 -pipe"
>> CHOST="x86_64-pc-linux-gnu"
>> CONFIG_PROTECT="/etc /usr/lib64/fax
>> /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa
>> /usr/share/gnupg/qualified.txt /var/spool/fax/etc"
>> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
>> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
>> /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/
>> /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d
>> /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d
>> /etc/texmf/updmap.d /etc/texmf/web2c"
>> CXXFLAGS="-march=native -O2 -pipe"
>> DISTDIR="/usr/portage/distfiles"
>> EMERGE_DEFAULT_OPTS="--autounmask-write=y --keep-going --with-bdeps=y"
>> FCFLAGS="-O2 -pipe"
>> FEATURES="assume-digests binpkg-logs collision-protect
>> config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync
>> multilib-strict news parallel-fetch preserve-libs protect-owned sandbox
>> sfperms strict unknown-features-warn unmerge-logs unmerge-orphans
>> userfetch userpriv usersandbox usersync xattr"
>> FFLAGS="-O2 -pipe"
>> GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
>> http://gentoo.osuosl.org/
>> ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
>> http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
>> 

Re: [gentoo-user] Libreoffice-5.4.2.2 fails to start

2018-01-17 Thread Jalus Bilieyich
What is output of `emerge -pqv app-office/libreoffice`?

Post wgetpaste link of libreoffice build log.

On 01/16/2018 11:44 PM, the...@sys-concept.com wrote:
> When I try to start "libreoffice" it will not start, not even from
> command line. No errors, nothing.
> 
> Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop,
> gcc-6.4.0, glibc-2.25-r9, 4.9.72-gentoo x86_64)
> =
> System uname:
> Linux-4.9.72-gentoo-x86_64-AMD_Ryzen_5_1400_Quad-Core_Processor-with-gentoo-2.4.1
> KiB Mem:16432224 total,  14618724 free
> KiB Swap: 524284 total,524284 free
> Timestamp of repository gentoo: Mon, 15 Jan 2018 00:30:01 +
> Head commit of repository gentoo: 2afd3441b99e18681bfeda82185e6abfe59182aa
> sh bash 4.4_p12
> ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
> app-shells/bash:  4.4_p12::gentoo
> dev-java/java-config: 2.2.0-r3::gentoo
> dev-lang/perl:5.24.3::gentoo
> dev-lang/python:  2.7.14-r1::gentoo, 3.5.4-r1::gentoo
> dev-util/cmake:   3.9.6::gentoo
> dev-util/pkgconfig:   0.29.2::gentoo
> sys-apps/baselayout:  2.4.1-r2::gentoo
> sys-apps/openrc:  0.34.11::gentoo
> sys-apps/sandbox: 2.10-r4::gentoo
> sys-devel/autoconf:   2.13::gentoo, 2.69-r4::gentoo
> sys-devel/automake:   1.11.6-r2::gentoo, 1.15.1-r1::gentoo
> sys-devel/binutils:   2.29.1-r1::gentoo
> sys-devel/gcc:5.4.0-r4::gentoo, 6.4.0-r1::gentoo
> sys-devel/gcc-config: 1.8-r1::gentoo
> sys-devel/libtool:2.4.6-r3::gentoo
> sys-devel/make:   4.2.1::gentoo
> sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
> sys-libs/glibc:   2.25-r9::gentoo
> Repositories:
> 
> gentoo
> location: /usr/portage
> sync-type: rsync
> sync-uri: rsync://rsync.gentoo.org/gentoo-portage
> priority: -1000
> sync-rsync-extra-opts:
> 
> brother-overlay
> location: /var/lib/layman/brother-overlay
> masters: gentoo
> priority: 50
> 
> Local
> location: /usr/local/portage
> masters: gentoo
> priority: 
> 
> ACCEPT_KEYWORDS="amd64"
> ACCEPT_LICENSE="* -@EULA googleearth PUEL dlj-1.1 Oracle-BCLA-JavaSE"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-march=native -O2 -pipe"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/lib64/fax
> /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa
> /usr/share/gnupg/qualified.txt /var/spool/fax/etc"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
> /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/
> /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d
> /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d
> /etc/texmf/updmap.d /etc/texmf/web2c"
> CXXFLAGS="-march=native -O2 -pipe"
> DISTDIR="/usr/portage/distfiles"
> EMERGE_DEFAULT_OPTS="--autounmask-write=y --keep-going --with-bdeps=y"
> FCFLAGS="-O2 -pipe"
> FEATURES="assume-digests binpkg-logs collision-protect
> config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync
> multilib-strict news parallel-fetch preserve-libs protect-owned sandbox
> sfperms strict unknown-features-warn unmerge-logs unmerge-orphans
> userfetch userpriv usersandbox usersync xattr"
> FFLAGS="-O2 -pipe"
> GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
> http://gentoo.osuosl.org/
> ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
> http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
> ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
> ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/
> http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/;
> LANG="en_US.utf8"
> LC_ALL="en_US.UTF-8"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> LINGUAS="en"
> MAKEOPTS="-j7 -l8"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
> --omit-dir-times --compress --force --whole-file --delete --stats
> --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
> --exclude=/packages --exclude=/.git"
> PORTAGE_TMPDIR="/var/tmp"
> USE="X a52 aac acpi alsa amd64 apache2 bluetooth branding bzip2 cairo
> cdda cdr cgi cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss
> encode exif fam firefox flac foomaticdb fortran gdbm gif gimp gimpprint
> glamor gnome gpm gtk iconv ipv6 jpeg kpathsea lcms ldap libnotify mad
> mng modules mp3 mp4 mpeg multilib mysql ncurses nls nptl ogg opengl
> openmp pam pango pcre pdf png policykit ppds qt3support qt5 qtk readline
> scanner sdl seccomp spell ssl startup-notification svg tcpd tetex tiff
> truetype type1 udev udisks unicode upower usb vorbis wxwidgets x264
> xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000
> atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938
> es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio
> via82xx via82xx-modem 

Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread thelma
On 01/17/2018 01:56 PM, Neil Bothwick wrote:
> On Wed, 17 Jan 2018 21:39:29 +0100, Alexander Ben Nasrallah wrote:
> 
 Have you logged in as a user which has a key pair configured on the
 PC?  
>>>
>>> I just copied 'scp' entire subfolder ".gnupg/" from one system to
>>> another.  It works when I click on the file at the computer but not
>>> over ssh.
>>>  
>>
>> Have you tried pinentry-curses? I'm not sure if qt version works over
>> ssh.
> 
> Or use ssh -Y to connect, and have X forwarding enabled on the server.

Yes, that what I do.  I can run any graphical interface software just
fine, eg:
evince, meld, ooffice etc.

Joseph



Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread thelma
On 01/17/2018 01:39 PM, Alexander Ben Nasrallah wrote:
> On Wed, Jan 17, 2018 at 07:30:15AM -0700, the...@sys-concept.com wrote:
>> On 01/17/2018 07:20 AM, Mick wrote:
>>> On Wednesday, 17 January 2018 13:51:20 GMT the...@sys-concept.com wrote:
 OK, "gpg2 text.asc" it works now at the computer terminal but when I
 log-in over "ssh"
 it still giving me same error.
>>>
>>> Have you logged in as a user which has a key pair configured on the PC?
>>
>> I just copied 'scp' entire subfolder ".gnupg/" from one system to
>> another.  It works when I click on the file at the computer but not over
>> ssh.
>>
> 
> Have you tried pinentry-curses? I'm not sure if qt version works over
> ssh.

Yes, that works. It gives me:

pinentry-curses
OK Pleased to meet you

Joseph




Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread Neil Bothwick
On Wed, 17 Jan 2018 21:39:29 +0100, Alexander Ben Nasrallah wrote:

> >> Have you logged in as a user which has a key pair configured on the
> >> PC?  
> >
> > I just copied 'scp' entire subfolder ".gnupg/" from one system to
> > another.  It works when I click on the file at the computer but not
> > over ssh.
> >  
> 
> Have you tried pinentry-curses? I'm not sure if qt version works over
> ssh.

Or use ssh -Y to connect, and have X forwarding enabled on the server.


-- 
Neil Bothwick

Velilind's Laws of Experimentation:
1. If reproducibility may be a problem, conduct the test only once.
2. If a straight line fit is required, obtain only two data points.


pgpQ4srw89NaY.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread Alexander Ben Nasrallah
On Wed, Jan 17, 2018 at 07:30:15AM -0700, the...@sys-concept.com wrote:
> On 01/17/2018 07:20 AM, Mick wrote:
>> On Wednesday, 17 January 2018 13:51:20 GMT the...@sys-concept.com wrote:
>>> OK, "gpg2 text.asc" it works now at the computer terminal but when I
>>> log-in over "ssh"
>>> it still giving me same error.
>>
>> Have you logged in as a user which has a key pair configured on the PC?
>
> I just copied 'scp' entire subfolder ".gnupg/" from one system to
> another.  It works when I click on the file at the computer but not over
> ssh.
>

Have you tried pinentry-curses? I'm not sure if qt version works over
ssh.




Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread thelma
On 01/17/2018 07:48 AM, Neil Bothwick wrote:
> On Wed, 17 Jan 2018 07:26:28 -0700, the...@sys-concept.com wrote:
> 
>>> Is pinentry-qt installed and working?  
>>
>> "eix pinentry-qt"  is not showing any entry, no such program.
>>
> Try "which pinentry-qt", it's part of the pinentry package, controlled by
> USE.

which pinentry-qt
/usr/bin/pinentry-qt

equery b pinentry-qt
 * Searching for pinentry-qt ...
app-crypt/pinentry-1.0.0-r2 (/usr/bin/pinentry-qt)

I re-emerged pinentry but it makes no difference.

It might be some glitch with the new profile.
On the new system I'm using:

 default/linux/amd64/17.0/desktop *

All my other system are using:
default/linux/amd64/13.0/desktop *

Joseph



Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread Neil Bothwick
On Wed, 17 Jan 2018 07:26:28 -0700, the...@sys-concept.com wrote:

> > Is pinentry-qt installed and working?  
> 
> "eix pinentry-qt"  is not showing any entry, no such program.
> 
Try "which pinentry-qt", it's part of the pinentry package, controlled by
USE.


-- 
Neil Bothwick

Few women admit their age. Few men act theirs.


pgpy7ttZnjhND.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread thelma

On 01/17/2018 07:20 AM, Mick wrote:
> On Wednesday, 17 January 2018 13:51:20 GMT the...@sys-concept.com wrote:
>> On 01/16/2018 11:47 PM, Alexander Ben Nasrallah wrote:
>>> On Tue, Jan 16, 2018 at 10:51:40PM -0700, the...@sys-concept.com wrote:
 When I try to decrypt a file I get:

 gpg2 text.asc
 ...
 gpg: public key decryption failed: No pinentry
 gpg: decryption failed: No secret key

 app-crypt/pinentry-1.0.0-r2 is installed
>>>
>>> Sometime you have to set one of the following.
>>>
>>> # PIN entry program
>>> pinentry-program /usr/bin/pinentry-curses # no X
>>> pinentry-program /usr/bin/pinentry-qt
>>> pinentry-program /usr/bin/pinentry-kwallet
>>> pinentry-program /usr/bin/pinentry-gtk-2
>>>
>>> to whatever suits you in ~/.gnupg/gpg-agent.conf.
>>>
>>> Hope that helps.
>>
>> OK, "gpg2 text.asc" it works now at the computer terminal but when I
>> log-in over "ssh"
>> it still giving me same error.
> 
> Have you logged in as a user which has a key pair configured on the PC?

I just copied 'scp' entire subfolder ".gnupg/" from one system to
another.  It works when I click on the file at the computer but not over
ssh.



Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread thelma
On 01/17/2018 06:46 AM, Neil Bothwick wrote:
> On Wed, 17 Jan 2018 06:35:13 -0700, the...@sys-concept.com wrote:
> 
>>> What does "eselect pinentry list" tell you?  
>>
>>
>> eselect pinentry list
>> Available pinentry binary implementations:
>>   [1]   pinentry-qt *
>>   [2]   pinentry-gtk-2
>>   [3]   pinentry-qt4
>>   [4]   pinentry-curses
>>   [5]   pinentry-tty
> 
> Is pinentry-qt installed and working?

"eix pinentry-qt"  is not showing any entry, no such program.




Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread Mick
On Wednesday, 17 January 2018 13:51:20 GMT the...@sys-concept.com wrote:
> On 01/16/2018 11:47 PM, Alexander Ben Nasrallah wrote:
> > On Tue, Jan 16, 2018 at 10:51:40PM -0700, the...@sys-concept.com wrote:
> >> When I try to decrypt a file I get:
> >> 
> >> gpg2 text.asc
> >> ...
> >> gpg: public key decryption failed: No pinentry
> >> gpg: decryption failed: No secret key
> >> 
> >> app-crypt/pinentry-1.0.0-r2 is installed
> > 
> > Sometime you have to set one of the following.
> > 
> > # PIN entry program
> > pinentry-program /usr/bin/pinentry-curses # no X
> > pinentry-program /usr/bin/pinentry-qt
> > pinentry-program /usr/bin/pinentry-kwallet
> > pinentry-program /usr/bin/pinentry-gtk-2
> > 
> > to whatever suits you in ~/.gnupg/gpg-agent.conf.
> > 
> > Hope that helps.
> 
> OK, "gpg2 text.asc" it works now at the computer terminal but when I
> log-in over "ssh"
> it still giving me same error.

Have you logged in as a user which has a key pair configured on the PC?


> gpg2 text.asc
> ...
> gpg: public key decryption failed: End of file
> gpg: decryption failed: No secret key

This says you don't have a private key configured.


> In my other boxes I don't have any entry in ~/.gnupg/gpg-agent.conf
> and it works OK even over ssh.
> 
> Joseph

An entry like those suggested for pinentry would be required for *GUI* 
applications to know which front end to use.

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread thelma
On 01/16/2018 11:47 PM, Alexander Ben Nasrallah wrote:
> On Tue, Jan 16, 2018 at 10:51:40PM -0700, the...@sys-concept.com wrote:
>> When I try to decrypt a file I get:
>>
>> gpg2 text.asc
>> ...
>> gpg: public key decryption failed: No pinentry
>> gpg: decryption failed: No secret key
>>
>> app-crypt/pinentry-1.0.0-r2 is installed
> 
> Sometime you have to set one of the following.
> 
>   # PIN entry program
>   pinentry-program /usr/bin/pinentry-curses # no X
>   pinentry-program /usr/bin/pinentry-qt
>   pinentry-program /usr/bin/pinentry-kwallet
>   pinentry-program /usr/bin/pinentry-gtk-2
> 
> to whatever suits you in ~/.gnupg/gpg-agent.conf.
> 
> Hope that helps.

OK, "gpg2 text.asc" it works now at the computer terminal but when I
log-in over "ssh"
it still giving me same error.

gpg2 text.asc
...
gpg: public key decryption failed: End of file
gpg: decryption failed: No secret key

In my other boxes I don't have any entry in ~/.gnupg/gpg-agent.conf
and it works OK even over ssh.

Joseph



Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread Neil Bothwick
On Wed, 17 Jan 2018 06:35:13 -0700, the...@sys-concept.com wrote:

> > What does "eselect pinentry list" tell you?  
> 
> 
> eselect pinentry list
> Available pinentry binary implementations:
>   [1]   pinentry-qt *
>   [2]   pinentry-gtk-2
>   [3]   pinentry-qt4
>   [4]   pinentry-curses
>   [5]   pinentry-tty

Is pinentry-qt installed and working?


-- 
Neil Bothwick

System halted - Press all keys at once to continue.


pgpzKf1H2UZqQ.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread thelma
On 01/17/2018 02:46 AM, Neil Bothwick wrote:
> On Tue, 16 Jan 2018 22:51:40 -0700, the...@sys-concept.com wrote:
> 
>> gpg2 text.asc
>> ...
>> gpg: public key decryption failed: No pinentry
>> gpg: decryption failed: No secret key
>>
>> app-crypt/pinentry-1.0.0-r2 is installed
> 
> What does "eselect pinentry list" tell you?


eselect pinentry list
Available pinentry binary implementations:
  [1]   pinentry-qt *
  [2]   pinentry-gtk-2
  [3]   pinentry-qt4
  [4]   pinentry-curses
  [5]   pinentry-tty

Joseph



Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread thelma
On 01/16/2018 11:47 PM, Alexander Ben Nasrallah wrote:
> On Tue, Jan 16, 2018 at 10:51:40PM -0700, the...@sys-concept.com wrote:
>> When I try to decrypt a file I get:
>>
>> gpg2 text.asc
>> ...
>> gpg: public key decryption failed: No pinentry
>> gpg: decryption failed: No secret key
>>
>> app-crypt/pinentry-1.0.0-r2 is installed
> 
> Sometime you have to set one of the following.
> 
>   # PIN entry program
>   pinentry-program /usr/bin/pinentry-curses # no X
>   pinentry-program /usr/bin/pinentry-qt
>   pinentry-program /usr/bin/pinentry-kwallet
>   pinentry-program /usr/bin/pinentry-gtk-2
> 
> to whatever suits you in ~/.gnupg/gpg-agent.conf.
> 
> Hope that helps.

In my ".gnupg/gpg-agent.conf" I have:

###+++--- GPGConf ---+++###
default-cache-ttl 600
max-cache-ttl 6000

Adding eg. "pinentry-program /usr/bin/pinentry-qt" to the above
configuration file doesn't help.

When I run:
pinentry-program /usr/bin/pinentry
-bash: pinentry-program: command not found

--
Joseph



Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread Neil Bothwick
On Tue, 16 Jan 2018 22:51:40 -0700, the...@sys-concept.com wrote:

> gpg2 text.asc
> ...
> gpg: public key decryption failed: No pinentry
> gpg: decryption failed: No secret key
> 
> app-crypt/pinentry-1.0.0-r2 is installed

What does "eselect pinentry list" tell you?


-- 
Neil Bothwick

Windows - so intuitive you only need a meg of help files!


pgpV9PMdvuYF6.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread Mick
On Wednesday, 17 January 2018 06:47:27 GMT Alexander Ben Nasrallah wrote:
> On Tue, Jan 16, 2018 at 10:51:40PM -0700, the...@sys-concept.com wrote:
> > When I try to decrypt a file I get:
> > 
> > gpg2 text.asc
> > ...
> > gpg: public key decryption failed: No pinentry
> > gpg: decryption failed: No secret key
> > 
> > app-crypt/pinentry-1.0.0-r2 is installed
> 
> Sometime you have to set one of the following.
> 
>   # PIN entry program
>   pinentry-program /usr/bin/pinentry-curses # no X
>   pinentry-program /usr/bin/pinentry-qt
>   pinentry-program /usr/bin/pinentry-kwallet
>   pinentry-program /usr/bin/pinentry-gtk-2
> 
> to whatever suits you in ~/.gnupg/gpg-agent.conf.
> 
> Hope that helps.

Or, instead of the above it should have:

pinentry-program /usr/bin/pinentry

which is a symlink to the pinentry GUI used by the system.  In any case this 
file will be set up by /usr/bin/gpgconf, which is run when a GUI application 
calls gnupg, rather than edited manually by the user.

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.