gnupg on USB drive
"John A. Wallace" <[email protected]> Mon, 17 Oct 2011 13:57:05 -0500
| Newsgroups | gmane.comp.encryption.gpg.documentation |
|---|---|
| Message-ID | <000601cc8cfe$903f6f80$b0be4e80$@net> |
This is a multi-part message in MIME format.
--===============0003964293==
Content-type: multipart/alternative;
boundary="----=_NextPart_000_0007_01CC8CD4.A7696780"
Content-language: en-us
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01CC8CD4.A7696780
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit
I have looked at the instructions here
http://lists.gnupg.org/pipermail/gnupg-users/2008-March/032787.html for
installing GnuPG on a USB drive, and I have followed the instructions pretty
closely like so:
"if you . need to work from a public computer, and a usb, here are some
guidelines:
[1] generate a new gnupg key, with a comment, 'usb key',
and keep this in a separate keyring (not the the keyring with your
'real' secret keys)
if you have any concern that this becomes compromised,
you can revoke it, without compromising your 'real' keys
[2] keep the keyrings and the entire gnupg program in a truecrypt
container on the usb. This has two advantages:
(a) it protects your keyrings
(b) it allows you to pick a drive letter that will stay the same
regardless of the hardware differences of the various public
computers (i.e., you can mount the truecrypt container as drive Z,
and have all the entries in your gpg.conf refer to z:\gnupg,
and never have to change it). truecrypt can be run in traveller mode from a
usb,
without having it installed on the host computer
[3]copy the entire gnupg directory from your home computer,
into the truecrypt container
[4] put these lines into your gpg.conf file:
no-default-keyring
keyring z:\gnupg\pubring.gpg
secret-keyring z:\gnupg\secring.gpg
(use your 'new' keyrings with the special 'usb key')
[5] open notepad and types these lines:
command com
z:
cd gnupg
save this as gusb.bat in your truecrypt container.
whenever you want to run gnupg from the usb,
(and have already mounted the truecrypt container as drive z:)
double-clicking on gusb.bat
opens a dos command-line window
check it by typing gpg -h
if the gnupg version and guide appears, then you're ready"
----------------------------------
First I tried following these instructions exactly, but it would not work,
though not for reasons related to gpg itself. I am running WinXP Pro and
normally
I use gpg 2.0.x. However, for this project, I downloaded and used gpg
1.4.11
on the USB drive, and I also used the latest version of truecrypt 7.1.
I installed gpg on the usb here U:\gnupg, and into it I also copied the
contents of
my pre-existing "%AppData%\gnupg" folder, which contained my keyrings and
gpg.conf, etc.
I cleaned it up a bit and changed the references in gpg.conf from c:\path
to u:\gnupg,
like so:
###+++--- GPGConf ---+++###
utf8-strings
auto-key-locate local
verbose
###+++--- GPGConf ---+++### date and time data
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
no-default-keyring
homedir U:\gnupg
keyring U:\gnupg\pubring.gpg
secret-keyring U:\gnupg\secring.gpg
#list-options show-keyring
verify-options show-uid-validity
logger-file U:\gnupg\gnupg.log
keyserver hkp://keys.gnupg.net
load-extension U:\gnupg\idea.dll
ask-cert-level
------------------------------------
As for the aforementioned batch file qusb.bat, it was necessary to change
it because it would not complete as it stands (I had installed it in U:\).
What I mean is that when I clicked on the batch file, it would open a
command shell window and begin issuing the batch of commands. Since the
first command was "command.com", it just opened another new command shell
window and stayed there at the new command prompt in the current root
directory:
U:\
I simply eliminated this command from the batch file and reran it; then
It worked as expected, opening a command shell and cd-ing to U:\gnupg.
At this point I entered "gpg -h" at the prompt. It displayed the correct
Version gpg 1.4.11, but it failed to recognize homedir as U:\gnupg as I had
put in the file u:\gpg.conf. Then I noticed in the manual that this command
would be recognized only from the command line; so I entered this at
the command prompt (from u:\gnupg):
gpg --homedir u:\gnupg
But after hitting <enter>, the program just hangs and fails to return
to the command prompt. Consequently, I cannot seem to make it change
the homedir from the normal location on "%Appdata%\gnupg"
to the location U:\gnupg, and I cannot, therefore, "force" it to use
the keyrings on my USB. Any ideas would be welcome.
John A. Wallace
------=_NextPart_000_0007_01CC8CD4.A7696780
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><font =
size=3D2 face=3DCalibri><span style=3D'font-size:11.0pt'>I have looked =
at the instructions here <a =
href=3D"http://lists.gnupg.org/pipermail/gnupg-users/2008-March/032787.ht=
ml">http://lists.gnupg.org/pipermail/gnupg-users/2008-March/032787.html</=
a> for installing GnuPG on a USB drive, and I have followed the =
instructions pretty closely like so:<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3DCalibri><span =
style=3D'font-size:11.0pt'><o:p> </o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>“if you =
… need to work from a public computer, and a usb, here are some =
guidelines:<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>[1] generate a new =
gnupg key, with a comment, 'usb key',<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>and keep this in a =
separate keyring (not the the keyring with your =
<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>'real' secret =
keys)<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>if you have any =
concern that this becomes compromised,<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>you can revoke it, =
without compromising your 'real' keys<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>[2] keep the =
keyrings and the entire gnupg program in a truecrypt =
<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>container on the =
usb. This has two advantages:<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>(a) it protects =
your keyrings<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>(b) it allows you =
to pick a drive letter that will stay the same =
<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>regardless of the =
hardware differences of the various public =
<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>computers (i.e., =
you can mount the truecrypt container as drive =
Z,<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>and have all the =
entries in your gpg.conf refer to =
z:\gnupg,<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>and never have to =
change it). truecrypt can be run in traveller mode from a usb, =
<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>without having it =
installed on the host computer<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>[3]copy the entire =
gnupg directory from your home computer,<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>into the truecrypt =
container<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>[4] put these lines =
into your gpg.conf file:<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>no-default-keyring<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>keyring =
z:\gnupg\pubring.gpg<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>secret-keyring =
z:\gnupg\secring.gpg<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>(use your 'new' =
keyrings with the special 'usb key')<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>[5] open notepad =
and types these lines:<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>command =
com<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>z:<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>cd =
gnupg<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>save this as =
gusb.bat in your truecrypt container. <o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>whenever you want =
to run gnupg from the usb,<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>(and have already =
mounted the truecrypt container as drive =
z:)<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>double-clicking on =
gusb.bat<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>opens a dos =
command-line window<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>check it by typing =
gpg -h<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>if the gnupg =
version and guide appears, then you're =
ready”<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>----------------------------------<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>First I tried =
following these instructions exactly, but it would not =
work,<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>though not for =
reasons related to gpg itself. I am running WinXP Pro and =
normally<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>I use gpg =
2.0.x. However, for this project, I downloaded and used gpg =
1.4.11<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'> on the USB drive, =
and I also used the latest version of truecrypt =
7.1.<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>I installed gpg on =
the usb here U:\gnupg, and into it I also copied the contents =
of<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'> my pre-existing =
“%AppData%\gnupg” folder, which contained my keyrings and =
gpg.conf, etc.<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'> I cleaned it =
up a bit and changed the references in gpg.conf from c:\path to =
u:\gnupg,<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'> like =
so:<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal =
style=3D'text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>###+++--- GPGConf =
---+++###<o:p></o:p></span></font></p><p class=3DMsoNormal =
style=3D'text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>utf8-strings<o:p></o:p></span></font></p><p class=3DMsoNormal =
style=3D'text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>auto-key-locate =
local<o:p></o:p></span></font></p><p class=3DMsoNormal =
style=3D'text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>verbose<o:p></o:p></span></font></p><p class=3DMsoNormal =
style=3D'text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>###+++--- GPGConf =
---+++### date and time data<o:p></o:p></span></font></p><p =
class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'># GPGConf edited =
this configuration file.<o:p></o:p></span></font></p><p =
class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'># It will disable =
options before this marked block, but it =
will<o:p></o:p></span></font></p><p class=3DMsoNormal =
style=3D'text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'># never change =
anything below these lines.<o:p></o:p></span></font></p><p =
class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>no-default-keyring<o:p></o:p></span></font></p><p =
class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>homedir =
U:\gnupg<o:p></o:p></span></font></p><p class=3DMsoNormal =
style=3D'text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>keyring =
U:\gnupg\pubring.gpg<o:p></o:p></span></font></p><p class=3DMsoNormal =
style=3D'text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>secret-keyring =
U:\gnupg\secring.gpg<o:p></o:p></span></font></p><p class=3DMsoNormal =
style=3D'text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>#list-options =
show-keyring<o:p></o:p></span></font></p><p class=3DMsoNormal =
style=3D'text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>verify-options =
show-uid-validity<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>logger-file =
U:\gnupg\gnupg.log<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>keyserver =
hkp://keys.gnupg.net<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>load-extension =
U:\gnupg\idea.dll<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>ask-cert-level<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>------------------------------------<o:p></o:p></span></font></p><p=
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>As for the =
aforementioned batch file qusb.bat, it was necessary to =
change<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>it because it would =
not complete as it stands (I had installed it in =
U:\).<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>What I mean is that =
when I clicked on the batch file, it would open a =
<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>command shell =
window and begin issuing the batch of commands. Since the =
<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>first command was =
“command.com”, it just opened another new command =
shell<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'> window and stayed =
there at the new command prompt in the current root =
directory:<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>U:\<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>I simply eliminated =
this command from the batch file and reran it; =
then<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>It worked as =
expected, opening a command shell and cd-ing to =
U:\gnupg.<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>At this point I =
entered “gpg –h” at the prompt. It displayed the =
correct<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>Version gpg 1.4.11, =
but it failed to recognize homedir as U:\gnupg as I =
had<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>put in the file =
u:\gpg.conf. Then I noticed in the manual that this =
command<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>would be recognized =
only from the command line; so I entered this =
at<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>the command prompt =
(from u:\gnupg):<o:p></o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>gpg --homedir =
u:\gnupg<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>But after hitting =
<enter>, the program just hangs and fails to =
return<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'> to the command =
prompt. Consequently, I cannot seem to make it =
change<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'> the homedir from =
the normal location on =
“%Appdata%\gnupg”<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>to the location =
U:\gnupg, and I cannot, therefore, “force” it to use =
<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>the keyrings on my =
USB. Any ideas would be welcome.<o:p></o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p><p class=3DMsoNormal><font =
size=3D2 face=3DCalibri><span =
style=3D'font-size:11.0pt'><o:p> </o:p></span></font></p><p =
class=3DMsoNormal><font size=3D2 face=3DCalibri><span =
style=3D'font-size:11.0pt'>John A. =
Wallace<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 =
face=3DCalibri><span =
style=3D'font-size:11.0pt'><o:p> </o:p></span></font></p></div></bod=
y></html>
------=_NextPart_000_0007_01CC8CD4.A7696780--
--===============0003964293==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Gnupg-doc mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnupg-doc
--===============0003964293==--