Lately, my long-lasting love for Apple products has been fading. I ditched my iPhone 6+ for a OnePlus One and I relegated my MBP to mostly photo-editing tasks. I'm typing this from a fresh installation of Xubuntu 14.10, which I have been using in the past and I tend to prefer to the heavy-weight Ubuntu.
So, during the Xubuntu setup process, I started googling around for some recent solutions to running 1Password on Linux and I stumbled on the awesome, little repo of Ryan Gordon. Ryan has hacked together a Lua script, named 1pass, which can decrypt the 1Password keychain and show whatever info you store in 1Password in a very minimalistic GUI.
The setup wasn't exactly straightforward, but eventually I got it to work. Here is quick rundown of the steps required to get going with 1pass.
InstaIl Mercurial, to fetch the 1pass repo.
sudo apt-get install mercurial
Clone Ryan's repo, 1pass:
hg clone http://hg.icculus.org/icculus/1pass/
Install some dependencies:
sudo apt-get install libgtk2.0-dev libxtst-dev
Run the build:
If 1pass built without errors, copy (or better symlink from Dropbox) the keychain in 1pass folder.
ln -s ~/Dropbox/xx/yy/zz/1Password.agilekeychain/ 1Password/1Password.agilekeychain
You can finally try out 1pass, by typing:
The script welcomes the user with a rather cryptic message:
Now waiting for the magic key combo (probably Alt-Meta-\) ...
The "magic combo, on my Lenovo X220, is "Windows Key+Alt+\"
I had to figure it out by checking out a keyhook.c file, located in the project's root.
For the binding to work, you need to press the keys in the right sequence, which is:
By pressing the keys at the same time, or the Win key first, will cause the popup to stay well hidden.
This is the password prompt box that pops-up on pressing the "magic combo".
On successful password entry, a floating menu displaying the categories in the keychain should appear. You can then navigate through the categories, select the password, press Enter and the password will be copied in the clipboard.
The key binding works everywhere, so it is possible to access the encrypted info's menu from the browser or whatever application.
To avoid leaving a terminal tab opened just for 1pass, I go like this:
This post was picked up by Hacker News. As usual, lots of interesting pointers. Follow the conversation here: https://news.ycombinator.com/item?id=9091691