AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Keybase homebrew3/12/2023 ![]() You will edit /etc/profile, so that all users will use it. The process is the same as the “shell, per-user” process above, except that instead of editing your ~/.bash_profile file… In particular, it will NOT affect processes started by something other than your shell, such as cron jobs. Note that setting the variables in this way will only affect shells and any processes started from those shells. Once you have verified that it’s working, you can either close the shell you’re working in and open a new window, or you can run “ source ~/.bash_profile” to read the updated profile into the current shell. A quick way to test it is to open a new terminal window, which will contain a new shell. Once you have added this, every new interactive shell will use the changes. This way if you decide you don’t want this all the time, you can comment out just the function call (the last line), and then you can type use-gpg-agent-for-ssh in any shell to easily “activate” the change within that shell. Note that this creates a function to “do the work”, and then calls that function. SOCK="$( gpgconf -list-dirs agent-ssh-socket )" TL DR This command will install the necessary packages from Homebrew. Running “ brew search pinentry” command showed that there’s a “ pinentry-mac” package, and “ brew info pinentry-mac” confirmed that it is what it sounds like, and after installing it, I’m able to ssh just like I did before removing GPGTools. The fix was to install a “pinentry” program using Homebrew. The pinentry program from GPGTools was the only one on the machine, so the error was because gpg-agent wanted to ask for a PIN but had no way to do so. (Apparently “GPG Suite”, “GPG Tools”, and “MacGPG2” are all the same thing.) I ran into some issues after removing GPGTools … long story short, GPG uses a program called pinentry to ask the user for a PIN code when a “card” requires one. (I’m familiar enough with gpg and key management that I don’t really need the key management GUI and System Preferences widget.)Īfter downloading and running the GPGTools Uninstaller ( direct download link) I discovered that the “MacGPG2” version was also gone, and the Homebrew version was the only thing left on the machine. In the interest of “cleaning up”, I decided to remove all but one - and the Homebrew version is what I decided to keep, since it’s a dependency of a few other Homebrew packages I use, and because it’s quicker and easier to install. I was working on another page today () and noticed that the machine (a MacBook Air M1) appeared to have three different versions of gpg installed, from a combination of “MacGPG2”, “GPGTools”, and Homebrew. I don’t like the whole “limited number of activations” thing, and I hate any kind of system which contstantly “phones home” like like this, so … while I do believe in supporting the authors of the software I use, I figure the donation I sent them a few back covers my use of the command line tools and the Preferences widget, and I use Thunderbird with Enigmail instead of their Mail.app plugin. It’s not horribly expensive, and it’s not a “subscription” (it’s a one-time purchase for each “major version” of the GPG Suite package), however they only allow five “activations”, and the “Paddle” framework wants to connect to on a regular basis. ![]() Note that both methods end up installing the same software, I just find it easier to use the command line, so I use Homebrew on my macOS machines.Īlso note that the Mail.app plugin is not free. Note: you can also use brew install -cask gpg-suite-no-mail if you don’t need the Mail.app plugin. Not only will this give you the gpg command line tools, but it also includes a System Preferences widget to control some aspects of how gpg and gpg-agent work, along with a Mail.app plugin to support signing and encrypting email.īrew install -cask gpg-suite will install the same package, using Homebrew. Visit and install the current version of GPG Suite. There are two ways to install the gnupg tools: See “macOS - Homebrew” below for more information.įor macOS, the openssh client is installed as a basic part of the OS, however gnupg is not. Note: I don’t use GPGTools anymore, but I’m leaving this info here. For gnupg you should search for packages with names like gnupg, gpg2, or maybe just gpg. I don’t have the exact commands for every other distro out there. Unfortulately Keybase doesn’t render Markdown to HTML like my web server does, but Markdown is pretty easy to read on its own. If you’re curious, this document is my checklist for setting up Xubuntu. Xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false ![]() Xfconf-query -c xfce4-session -p /compat/LaunchGNOME -n -t bool -s false
0 Comments
Read More
Leave a Reply. |