@@ -20,17 +20,20 @@ filename
2020.SH CONFIGURATION
2121
2222Manual configuration for the GPG key can be added using the phrase \fB KEY <email
23- address> \fP in the file \fB <notesdir>/config \fP .
23+ address> \fP in the file "<notesdir>/config" where "notesdir" is setup during the
24+ "init" command and defaults to "~/.notes" unless $XDG_DATA_DIR or $NOTESDIR is
25+ set in the environment. NB $NOTESDIR will override ANY setting of $XDG_DATA_DIR
26+ allowing the user to choose their own directory even if $XDG_DATA_DIR is set.
2427
2528.SH DESCRIPTION
2629
2730The Standard(?) Unix Notes notebook system is a GPG encrypted 'notebook' where each note
2831is individually encrypted into a notebook folder. It can handle multiple notebook folders
2932and can decrypt/re-encrypt for a new GPG key easily. The program is based upon
30- Password-Store the standard Unix password manager of which it borrows some code.
33+ Password-Store the standard Unix password manager from which it borrows some code.
3134
32- If no command is given then Notes simply runs 'notes help' which outputs a list of
33- commands to STDOUT.
35+ If no command is supplied Notes simply runs 'notes help' that outputs a list of commands
36+ to STDOUT.
3437
3538Before using the system the user should create a GPG key if they haven't got one. Notes
3639will automatically search the user's GPG keyring and default to using the first private
@@ -44,31 +47,38 @@ kept it for decrypting old files) then you should replace the email address with
4447KEYID of the private key you wish to use.
4548
46492. If you know the GPG keyid and there are no duplicate email address issues with other
47- keys, then run 'notes newkey <keyid>' . Notes will replace the keyid automatically in the
50+ keys, then run \fB notes newkey <keyid> \fP . Notes will replace the keyid automatically in the
4851config file.
4952
5053.SH COMMANDS
5154
52- The notes program takes a set of commands which allows the user to manipulate the
55+ The notes program takes a set of commands that allows the user to manipulate the
5356encrypted notes in the system.
5457.RE
5558
56- .SY init
57- .YS
58- Setup your notes system. This command takes no arguments and creates the notes directory
59- (\fB ~/.notes \fP ). It then creates the default notebook called 'notes' and sets the
60- DEFAULT and USE links pointing to the default notebook (notes).
59+ .SY init
60+ .YS
61+ Setup your notes system. This command takes no arguments and creates the
62+ notes directory (\fB ~/.notes \fP if not specified). If $XDG_DATA_DIR is
63+ set in your environment then notes will createa subdirectory called
64+ ".notes" and store all of it's data there. You can override both
65+ settings by specifying $NOTESDIR in your environment to point to a
66+ directory of your choice. Notes will create it's config files and
67+ notesbooks (directories) beneath this directory.
68+
69+ It then creates the default notebook called \fB notes \fP and sets the DEFAULT and USE
70+ links pointing to the default notebook (notes).
6171
6272The program then examines your GPG keyring for private keys. It then adds the first GPG
63- KeyID to your config file for later use. With each command issued the program will use
73+ KeyID to your " config" file for later use. With each command issued the program will use
6474this key for any encryption needed.
6575
6676.SY config
6777.YS
6878Displays the config file
6979.B
7080~/.notes/config
71- to the terminal. This is a quick way of determining which GPG KeyID is in use.
81+ to the terminal. This is a quick way of determining that GPG KeyID is in use.
7282
7383.SY help
7484.YS
@@ -100,8 +110,8 @@ before re-encrypting the note with the new KeyID.
100110.YS
101111.OP " search term"
102112The search term is passed to grep inside the program for processing the search.
103- THIS OPTION IS NOT CURRENTLY IMPLEMENTED.
104- See ROADMAP for details .
113+ Each note in every notebook is decrypted sequentially to STDOUT and passed
114+ through grep to search for terms .
105115
106116.SY " insert|add note title "
107117.YS
@@ -113,6 +123,7 @@ program calls GPG to encrypt the file (to a file named
113123note-title.gpg
114124). Finally the temporary file is scrubbed and deleted.
115125
126+
116127.OP " note title"
117128If the note title contains spaces they will be replaced with underscores in the final note file.
118129
@@ -171,7 +182,7 @@ Upon an error notes returns a non zero value upon aborting.
171182
172183\fB $EDITOR \fP
173184Notes uses the shell variable to determine which editor the user prefers. If unset it
174- will default to 'nano' .
185+ will default to \fB nano \fP .
175186
176187By default notes creates it's notes directory in ~/.notes for the user. This can be
177188changed by modifying the shell script.
@@ -188,12 +199,12 @@ be used for encryption (KEY <email address>).
188199.TP
189200\fB DEFAULT \fP
190201This link points to the default notebook (notes). This can be reassigned by using the
191- command ' notebook default <notebook name>' .
202+ command " notebook default <notebook name>" .
192203
193204.TP
194205\fB USE \fP
195206This link points to the currently used notebook. It can be changed by issuing the command
196- ' notebook use <notebook name>' . You can also set this to the default notebook by omitting
207+ \fB notebook use <notebook name> \fP . You can also set this to the default notebook by omitting
197208the notebook name parameter.
198209
199210.SH CONFORMANCE
@@ -228,13 +239,13 @@ Show help:
228239Initialises notes directory (~/.notes):
229240\fB $ notes init \fP
230241
231- Add a note called ' mynote' in the current notebook encrypting it with your GPG key:
242+ Add a note called " mynote" in the current notebook encrypting it with your GPG key:
232243\fB $ notes add mynote \fP
233244
234245Add note called another_note in the current notebook encrypting it with your GPG key:
235246\fB $ notes add another note \fP
236247
237- Rename ' mynote' to ' installation_instructions' :
248+ Rename " mynote" to " installation_instructions" :
238249\fB $ notes rename mynote \fP
239250Please enter new name for note: installation instructions
240251/home/ian/.notes/USE/mynote.gpg exists .... moving
@@ -263,6 +274,42 @@ EVIL MASTER PLAN
2632742. Stroke white cat
264275 .EE
265276
277+ .SH STANDARD(?) UNIX NOTES AND YUBIKEY
278+
279+ Notes supports all hardware devices that GnuPG supports. This includes
280+ the following Yubico devices:
281+
282+ - Yubikey 5 Series (including FIPS models)
283+ - Yubikey 4 Series (including FIPS models)
284+ - Yubikey NEO
285+
286+ A good guide for using GnuPG with Yubikeys can be found at
287+ .UR https://github.com/drduh/YubiKey-Guide
288+ https://github.com/drduh/YubiKey-Guide
289+ .UE
290+
291+ .SY \fB PIN and Touch features of Yubikey \fP
292+ .YS
293+ Yubikeys allow you to require a PIN number or a Touch for encryption
294+ actions.
295+
296+ PIN entry can be cached for a short period allowing the following
297+ actions to be completed without the need for reentry of the PIN.
298+
299+ In addition later Yubikeys with the firmware 5.2.3 (or later) allow you
300+ to cache the button touch functionality for 15 seconds. You can enable
301+ this with the command \fB $ ykman openpgp set-touch enc cached \fP . This will
302+ prevent the Yubikey from requiring a touch for every file in the
303+ multi-file operations like "newkey" and "find".
304+
305+ .SY \fB PIV card support \fP
306+ .YS
307+ Future releases hope to support PIV devices as well. But as they use an
308+ application other than GnuPG to encrypt and decrypt notes, further
309+ coding is needed for both the configuration and the cryptography. This
310+ functionality has been added to the ROADMAP.
311+
312+
266313.SH SEE ALSO
267314
268315.IP \fB notebook(1) \fP The companion command for managing notebooks for notes.
0 commit comments