- To be able to import gpg key from external drive, first copy ~/.gnupg file from external drive to the host machine (do with finder)
- via terminal, go into copied gnupg folder and try running
gpg --homedir . --list-secret-keys
- if you able to see "key found" information with your email address you are close to import your keys
- in case you see such warning "gpg: conversion
utf-8'
us-ascii' failed: illegal byte sequence gpg:" you can ignore it - due to change from gpg to gpg2, you may not be able to export your keys with "gpg" command so try doing the rest with "gpg2" command
- export your private key with
gpg2 --homedir . --export-secret-key YOUR_MAIL_ADDRESS > private.key
(it will ask your gpg password) - then go to your gpg suite, press import, find "private.key" file and import it (it will ask your gpg password)
- and you are done!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# see https://forum.obsidian.md/t/gnome-desktop-installer/499 | |
set -euo pipefail | |
icon_url="https://cdn.discordapp.com/icons/686053708261228577/1361e62fed2fee55c7885103c864e2a8.png" | |
#dl_url=${1:-} | |
dl_url=$( curl -s https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest \ | |
| grep "browser_download_url.*AppImage" | tail -n 1 | cut -d '"' -f 4 ) |