!PTDeUFhQLrviJGtuht:matrix.org

Linux

829 Members
🇺🇦🇪🇺 | Talk about the GNU/HURD/Linux operating system and related stuff | be sensible, have nice discussions :) | oh, and https://dontasktoask.com | try not to become a help vampire, we have banhammers and wooden stakes: https://slash7.com/2006/12/22/vampires/ | DON'T USE KALI, IT'S FOR PENTESTING https://www.kali.org/docs/introduction/should-i-use-kali-linux/ | Manjarno https://manjarno.pages.dev/ | Virtualbox doesn't exist | Don't run GUI as superuser93 Servers

Load older messages


SenderMessageTime
2 May 2024
@arcushing:matrix.orgLinux 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
@tauoverpi:tchncs.deLevy (AGPL-3.0-only)yep, contention 13:10:06
@tauoverpi:tchncs.deLevy (AGPL-3.0-only)you also have the spawning of tasks and destroying them adding to that 13:10:39
@schuelermine:matrix.orgschuelermine

Does GPG store all its data in ~/.gnupg?

13:11:30
@alexanderk:matrix.orgAlexander 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:matrix.orgschuelermine

Is there a way I can extract just my public & private key from an old installation’s ~/.gnupg?

13:20:54
@schuelermine:matrix.orgschuelermine(And install it as my key on a new installation)13:26:21
@vis1:matrix.orgvisone
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:matrix.orgschuelermine

I don’t have the old machine running. I just have the ~/.gnupg.

13:28:26
@vis1:matrix.orgvisone
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:matrix.orgschuelermineI’m not sure which file it is13:34:37
@schuelermine:matrix.orgschuelermine

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:matrix.orgschuelermine

What is pubring.kbx and trustdb.gpg?

13:35:39
@poltarsig:matrix.org@poltarsig:matrix.org joined the room.13:46:45
@poltarsig:matrix.org@poltarsig:matrix.org left the room.13:55:18
@alexanderk:matrix.orgAlexander K schuelermine if you didn't create something new on your new machine, just copy the hole .gnupg folder over. 14:46:39
@alexanderk:matrix.orgAlexander KIf you already imported private keys just copy the files from the folders private-keys... and (your) openpgp-revocs...14:52:35
@alexanderk:matrix.orgAlexander 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
@alexanderk:matrix.orgAlexander 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:matrix.orgschuelermine
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:matrix.orgschuelermine(in this context)20:09:41
@ant0none:matrix.org🦎TW9pIGVuIHRvaQ== changed their display name from TW9pIGVuIHRvaQ== to 🦎TW9pIGVuIHRvaQ==.20:47:55
@alexanderk:matrix.orgAlexander 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:matrix.orgcatoblepa joined the room.21:58:41
@schuelermine:matrix.orgschuelermine
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
@alexanderk:matrix.orgAlexander KIf you used the "--export-secret-keys" option yes. (see man page for details) "--export" only copies the public key parts.23:50:02
@alexanderk:matrix.orgAlexander K schuelermine ^ 23:50:35
@schuelermine:matrix.orgschuelermine
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:matrix.orgschuelerminethanks23:50:48
@alexanderk:matrix.orgAlexander 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

There are no newer messages yet.


Back to Room ListRoom Version: 9