2 May 2024 |
Linux in a Bit | In reply to@somekool:matrix.org
it is because the default STDOUT is the screen terminal, and that text needs to be displayed to the screen. you can test it in various terminal emulator, and also by redirecting the output > /dev/null and notice a huge different in speed. basically, the output to terminal is the slowest part.
I remember in my sysadmin days, I had slow tasks that I have speed up simply by outputting to a file or to /dev/null
That’s actually really interesting… Good to know :) | 12:43:37 |
Levy (AGPL-3.0-only) | yep, contention | 13:10:06 |
Levy (AGPL-3.0-only) | you also have the spawning of tasks and destroying them adding to that | 13:10:39 |
schuelermine | Does GPG store all its data in ~/.gnupg ?
| 13:11:30 |
Alexander K | In reply to @schuelermine:matrix.org
Does GPG store all its data in ~/.gnupg ?
Usually yes. Exepct you change it with $GNUPGHOME environment variable. | 13:16:23 |
schuelermine | Is there a way I can extract just my public & private key from an old installation’s ~/.gnupg ?
| 13:20:54 |
schuelermine | (And install it as my key on a new installation) | 13:26:21 |
visone | In reply to@schuelermine:matrix.org (And install it as my key on a new installation) some like this? https://www.jwillikers.com/backup-and-restore-a-gpg-key | 13:27:26 |
schuelermine | I don’t have the old machine running. I just have the ~/.gnupg .
| 13:28:26 |
visone | In reply to@schuelermine:matrix.org
I don’t have the old machine running. I just have the ~/.gnupg .
Did you try to import them?
gpg --import private.key | 13:34:00 |
schuelermine | I’m not sure which file it is | 13:34:37 |
schuelermine | I assume it’s one of the keys in ~/.gnupg/private-keys-v1.d/ ? But what about ~/.gnupg/openpgp-revocs.d/ ?
| 13:35:21 |
schuelermine | What is pubring.kbx and trustdb.gpg ?
| 13:35:39 |
| @poltarsig:matrix.org joined the room. | 13:46:45 |
| @poltarsig:matrix.org left the room. | 13:55:18 |
Alexander K | schuelermine if you didn't create something new on your new machine, just copy the hole .gnupg folder over. | 14:46:39 |
Alexander K | If you already imported private keys just copy the files from the folders private-keys... and (your) openpgp-revocs... | 14:52:35 |
Alexander K | In reply to @schuelermine:matrix.org
What is pubring.kbx and trustdb.gpg ?
Pubring.kbx contains the public keys you imported from other people. trustdb.gpg contains your trustlevels in those keys and (if used) TOFU (trust on first use) info. | 14:55:30 |
Alexander K | In reply to @alexanderk:matrix.org If you already imported private keys just copy the files from the folders private-keys... and (your) openpgp-revocs... And the private-keys folder only contains the private ke parts. You will miss your userIDs. If possible copy everything. If not ask someone to send it to you. You can regenerate your public key, but this somewhat more complicated. | 15:06:00 |
schuelermine | In reply to @alexanderk:matrix.org And the private-keys folder only contains the private ke parts. You will miss your userIDs. If possible copy everything. If not ask someone to send it to you. You can regenerate your public key, but this somewhat more complicated. What are userIDs? | 20:09:01 |
schuelermine | (in this context) | 20:09:41 |
| 🦎TW9pIGVuIHRvaQ== changed their display name from TW9pIGVuIHRvaQ== to 🦎TW9pIGVuIHRvaQ==. | 20:47:55 |
Alexander K | In reply to @schuelermine:matrix.org What are userIDs? In short: Your (public) key consists of packages. Some describe your crypto algorithms (yes you can have several) and some describe your identities (UserIds) like "my name me@domain.org. You can have several of these as well in one public key. maybe use kleopatra to generate a test key and play around with it. | 21:36:30 |
| catoblepa joined the room. | 21:58:41 |
schuelermine | In reply to @alexanderk:matrix.org In short: Your (public) key consists of packages. Some describe your crypto algorithms (yes you can have several) and some describe your identities (UserIds) like "my name me@domain.org. You can have several of these as well in one public key. maybe use kleopatra to generate a test key and play around with it. I ended up pointing gpg to the copied .gnupg via $GNUPGPHOME and told it to export the keys and then I imported them, do you reckon that copied those?
| 23:41:11 |
Alexander K | If you used the "--export-secret-keys" option yes. (see man page for details)
"--export" only copies the public key parts. | 23:50:02 |
Alexander K | schuelermine ^ | 23:50:35 |
schuelermine | In reply to @alexanderk:matrix.org If you used the "--export-secret-keys" option yes. (see man page for details) "--export" only copies the public key parts. I did | 23:50:47 |
schuelermine | thanks | 23:50:48 |
Alexander K | In reply to @schuelermine:matrix.org thanks You are welcome. 🙂 Keep your old .gnupg backed up in case you still miss something. | 23:53:23 |