OpenSuse 12.1: cant find "$HOME/.profile" - not on my machine

hello dear Suse-Friends, good evening - hope you are well and all is fine out there!

on my opensuse 12.1 [which is one of the best operating systems i ever saw - sure thing!]
with KDE
and

TBIRD
Enigmail
Gnupgp
Pinentry qt4

[note all installed via Yast]

i get the annoying bug-message:

"the GPG-Agent-Aapplication for your GnuPG-Version 2.0.18 could not get  startet..  "

i was adviced to add lines to my

"$HOME/.profile" 

to start the agents anyway, but that’s a bit more tricky.

Well i could try this

to add lines to my “$HOME/.profile” to start the agents anyway, well i need to find this


  "$HOME/.profile" 

where to find this

Should i do a seach with GREP or such things alike!?!

Love to hear from you!

greetings
dilbertone!

Hi
$HOME = ~/ so it’s in your home directory;


cd
vi .profile

or run kate press alt+F2 and enter;


kate ~/.profile


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.9-1.4-desktop
up 1 day 1:40, 4 users, load average: 0.01, 0.04, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

hi Malcom gret to hear from you

within the shell i found this here




# Sample .profile for SuSE Linux
# rewritten by Christian Steinruecken <cstein@suse.de>
#
# This file is read each time a login shell is started.
# All other interactive shells will only read .bashrc; this is particularly
# important for language settings, see below.

test -z "$PROFILEREAD" && . /etc/profile || true

# Most applications support several languages for their output.
# To make use of this feature, simply uncomment one of the lines below or
# add your own one (see /usr/share/locale/locale.alias for more codes)
# This overwrites the system default set in /etc/sysconfig/language
# in the variable RC_LANG.
#
#export LANG=de_DE.UTF-8        # uncomment this line for German output
#export LANG=fr_FR.UTF-8        # uncomment this line for French output
#export LANG=es_ES.UTF-8        # uncomment this line for Spanish output


# Some people don't like fortune. If you uncomment the following lines,
# you will have a fortune each time you log in ;-)

#if  -x /usr/bin/fortune ] ; then
#    echo
#    /usr/bin/fortune
#    echo
#fi
~     ~                                                                                                                                                 
".profile" 28L, 1028C

is this corect - well i need to add a line here - in order to the GPG-Agent-Aapplication started…

Note - with the TBIRD and Enigmail, and pinentry stuff i all ways get the message

the GPG-Agent-Aapplication for your GnuPG-Version 2.0.18 could not get  startet.. 

So some guys adviced me to find the profile and to add a line. well i wanted to use grep to find the profile - and then i subsequently wanted to add the line

the following line is edited (additionally to all the other stufff that is written there)


    eval $(gpg-agent --daemon 

so is it the above mentioned part - (that i found ) where i have to add the mentioned line !?

love to hear from you
greetings

Please do not use PHP tags but CODE tags: http://forums.opensuse.org/english/information-new-users/advanced-how-faq-read-only/451526-posting-code-tags-guide.html

eval $(gpg-agent --daemon

This line is not complete, the ( requires a matching ).

Thus first check and recheck what you have to add and then add them at the end of .profile

On 2012-02-04 10:26, hcvv wrote:
>
> Code:
> --------------------
> eval $(gpg-agent --daemon
> --------------------
>
> This line is not complete, the ( requires a matching ).
>
> Thus first check and recheck what you have to add and then add them at
> the end of -.profile-

And anyway, adding that line was correct ages ago, but not now, for kde.
Even in the past it was wrong, as it would try to start the daemon a
hundred times, once per bash session. The correct place was .xinitrc, and
the line was:


eval "$(gpg-agent --daemon)"

What he needs instead is that someone using KDE in 12.1 tells him how to
start the proper GPG daemon (which is not gpg-agent!). In gnome it is
automatic, and in KDE it was as well. But as I don’t use KDE 4 I don’t know
how it works currently.

It must either be a config change somewhere or a bug that it doesn’t start
or is not found by TB. It could be somewhere in “kgpg”, or “kgpgconf”.

Else, dilbertone should tell TB that he has NO agent.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Am 04.02.2012 14:13, schrieb Carlos E. R.:
> What he needs instead is that someone using KDE in 12.1 tells him how to
> start the proper GPG daemon (which is not gpg-agent!). In gnome it is
> automatic, and in KDE it was as well. But as I don’t use KDE 4 I don’t know
> how it works currently.
I cannot check it right now in 12.1 but in 11.4 you can just run kgpg
with ALT+F2 and it fires up a configuration dialog which at the end asks
if you want to start it on session start, check this box and that was it.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram

On 2012-02-04 14:26, Martin Helm wrote:
> Am 04.02.2012 14:13, schrieb Carlos E. R.:

> I cannot check it right now in 12.1 but in 11.4 you can just run kgpg
> with ALT+F2 and it fires up a configuration dialog which at the end asks
> if you want to start it on session start, check this box and that was it.

That makes sense, thanks.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Am 04.02.2012 15:08, schrieb Carlos E. R.:
> On 2012-02-04 14:26, Martin Helm wrote:
>> Am 04.02.2012 14:13, schrieb Carlos E. R.:
>
>> I cannot check it right now in 12.1 but in 11.4 you can just run kgpg
>> with ALT+F2 and it fires up a configuration dialog which at the end asks
>> if you want to start it on session start, check this box and that was it.
>
> That makes sense, thanks.
>
As additional info, just in case the kgpg was run in the past and it was
forgotten to check that box, the config dialog will not appear again
when you run it a second time. But when kgpg is started from command
line or kde menu (search kgpg in the search field) it will appear in the
system tray on the right bottom border and the setting is available
clicking on that icon and go into properties/settings (I see it in
german now so it may have a slightly different name).


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram

hello Robin hello Martin, hi Henk,

great to hear from you!!! Well it seems that i am allmost lost with my system here - no one runs 12.1 with kde. :wink:
but wait - as far as i have unterstood your ideas - i think i have to do something with kgp?

well i remember that i had [half a year ago - when struggling with the same issuses - verything was the same but i[b] was on 11.4 i had big luck with kgp while importing keys.
Suddenly i was rid of alll the annoying issues and comments…

what do you think - how should i proceed now. At the moment i am in the hell - cant use tbird ( with enigmail ) and cannot reach my friend that is only reading crypted mails… —,-(

greetings

Sorry if I missed that, but what exactly happens when you run


gpg-agent

from a terminal like konsole or xterm?
In my case the output is simply


martinh@ganymed:~> gpg-agent
gpg-agent: gpg-agent running and available


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram

hello Martin

thx for the reply and for this good question…

martin@linux-wyee:~> su
Passwort: 
linux-wyee:/home/martin # gpg-agent
gpg-agent: Der gpg-agent läuft nicht für diese Session
linux-wyee:/home/martin # 

well

hmm - what does that mean…

Btw tbird is started - and i get this annoying message - Die für Ihre GnuPG-Version 2.0.18 notwendige GPG-Agent-Anwendung konnte nicht gestartet werden.

look forward to hear from you–
i guess that we are closer to a solution…
hopefully.

greetings dilbert aka martin :wink:

Am 04.02.2012 20:06, schrieb dilbertone:
> Code:
> --------------------
> martin@linux-wyee:~> su
> Passwort:
> linux-wyee:/home/martin # gpg-agent
> gpg-agent: Der gpg-agent läuft nicht für diese Session
> linux-wyee:/home/martin #
>
> --------------------
Don’t do that (the su), I want the output from your normal user not root
that there is no gpg-agent running for root while you are logged in as
martin does not surprise me.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram

Just to show you how the process looks like which is running in my
session automatically


martinh@ganymed:~> ps aux | grep gpg-agent
martinh   3117  0.0  0.0  14968   940 ?        Ss   14:07   0:00
/usr/bin/gpg-agent --sh --daemon --write-env-file
/home/martinh/.gnupg/agent.info /usr/bin/ssh-agent /etc/X11/xinit/xinitrc


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram

One additional thought, are you sure that it is not somehow a
configuration problem and that the content of ~/.gnupg is ok?

You can rename the directory ~/.gnupg and logout and login again (if the
gpg-agent is started it should create a new one) just to find out if
that is somehow the problem.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram

Am 04.02.2012 20:48, schrieb Martin Helm:
> One additional thought, are you sure that it is not somehow a
> configuration problem and that the content of ~/.gnupg is ok?
>
> You can rename the directory ~/.gnupg and logout and login again (if the
> gpg-agent is started it should create a new one) just to find out if
> that is somehow the problem.
>
Sorry I left out an important step here, so I repeat it completely:

  1. rename ~/.gnupg to something else (~/.gnupg_orig for example)
  2. open a terminal and run the command gpg-agent as normal user (this
    creates a new directory for it).
  3. log out from kde
  4. log in again


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram

Hello Martin thx for the replies and for all your valid thoughts

your first idea regarding the different users. I will reflect this - and do the test with the terminal again.

And ** your next idea** - is very interesting!

Martin - on thought - aside the regular thinking - can it be that i have installed the stuff

tbird
enigmail
pinentry
gnupg - or how this part was called exactly. … **under the root **- (/as the superuser) Can this cause **some troubles!? **

With your first idea regarding the question of users - you pointed to an interesting direction !!!

Question - can i be that i messed up my complete machine - while i generally do not hesitate to work as root - wehere many many ppl here wouldn t do that!?

Well - now i am going to go through all your advices and will have a look what i can find out.

I come back later the evening with more insights and i will report all my findings… Stay tuned!

And many many thanks for all your help!!

Greetings
dilbert aka martin

On 2012-02-04 18:16, dilbertone wrote:

> but wait - as far as i have unterstood your ideas - i think i have to
> do something with kgp?

YESSS!

> what do you think - how should i proceed now. At the moment i am in
> the hell - cant use tbird ( with enigmail ) and cannot reach my friend
> that is only reading crypted mails… —,-(

Sigh…

OpenPGP menu in Th. → Preferences. → Advanced. →
Unselect gpg-agent for passphrases.

Done.

I told you this, you did not look.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2012-02-04 19:02, Martin Helm wrote:
> Sorry if I missed that, but what exactly happens when you run
>


> gpg-agent
> 

> from a terminal like konsole or xterm?

But why run that agent when the desktop (kde in his case) has an integrated
gpg agent? Just enable it!


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAk8tkwAACgkQIvFNjefEBxpF+QCfQNB7TGgT2OKu/0mVwFNVyGfX
a7IAn0vCVI3CF4EDHaXXswFaUHvN66+N
=0cFw
-----END PGP SIGNATURE-----

Am 04.02.2012 21:23, schrieb Carlos E. R.:
> But why run that agent when the desktop (kde in his case) has an integrated
> gpg agent? Just enable it!
>
To see what it says or if it throws a useful error message.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram