1Password on Linux

1Password on Linux

I’d be pretty hard pressed these days without a password manager.  Being able to quickly create strong, unique passwords which can be safely stored and accessed is quite simply, essential.

If you’re not using a password manager, you should be.

I’ve used 1Password for quite some time, and to be honest, I simply can’t be bothered / don’t have any reason to change.  That said, last year after Apple took away my ESC key for no discernible reason, I decided it was time to make a full-time switch to Fedora.

The switch was less painful than I had anticipated as I’d never really relied on Apple specific applications.  In fact, the biggest thing I was concerned about was 1Password.  Surely a technical company like Agilebits would make a Linux client for their applications?  What’s that?  They don’t?  Great.

That’s where WINE comes in.  WINE (Wine Is Not an Emulator) allows many Windows specific applications to run on *nix based systems.  Agilebits do release a version of 1Password for Windows, but it appears they don’t really want anyone to use this standalone version, instead pushing their cloud-based versions of the application.  I, for one, don’t want that, and if you don’t either, here’s how to get 1Password up and running on your Linux box.

If you’re on Fedora, the guide below will work for you.  For other distros, you’ll need to install Wine first with whatever package manager you’re using.

First, open your terminal and install WINE:

sudo dnf install wine

Now, head over to the Agilebits website, and download 1Password 4 for Windows.  Be sure to look for the “Get 1Password 4 (standalone version)” – version 6 will not work for our purposes.  Note that you will need to purchase a license for 1Password 4 for Windows as the download is on a free trial basis.

Now we’ll get WINE setup:

winecfg

This will open the WINE configuration window.  To make your Windows apps look a little more at home in a GTK / Gnome environment, go to Desktop Integration and select GTK-3 from the Appearance dropdown menu.  Click Apply and close the window.

No install 1Password.  Assuming you downloaded the .exe installer to your Downloads folder, run:

wine Downloads/1Password-4.6.2.625.exe

Obviously, if you’re reading this in the future (likely), there will be a different version number on your .exe, so replace that as neccessary (tab autocomplete is your friend).

This will bring up the installation dialog – just follow the prompts to install 1Password.  Once installation completes, we can run 1Password with:

wine ~/.wine/drive_c/Program\ Files\ \(x86\)/1Password\ 4/1Password.exe

From here, you can use 1Password as you would on Windows, but entering that command each time you want to use it would get tiresome pretty quickly.  So, to nicely integrate 1Password into our Gnome 3 desktop, we’ll create a .desktop file to allow it to appear with our other installed applications in Gnome-Shell.  In your terminal, run:

gedit .local/share/applications/1Password.desktop

In the gedit window, copy the below text (be sure to replace your “yourusername” with your actual username):

 

[Desktop Entry]
Name=1Password
Comment=Password Manager
Exec=wine /home/yourusername/.wine/drive_c/Program\ Files\ \(x86\)/1Password\ 4/1Password.exe
Path=/home/yourusername/.wine/drive_c/Program Files (x86)/1Password 4/
Terminal=false
Icon=/home/yourusername/.wine/drive_c/Program Files (x86)/1Password 4/1Password.ico
Type=Application
Categories=Utilities

 

Save the file and close gedit.  You should now be able to open 1Password from Gnome Shell just like your other applications!

If you want to get the 1Password browser extension working, and I’m guessing you do, we have a little bit left to do.  For the browser extensions to work in Linux, we need to have the 1Password Agent running.

wine .wine/drive_c/Program\ Files\ \(x86\)/1Password\ 4/Agile1pAgent.exe

We’ll need the 1Password Agent to be running all the time.  To start it at login, run:

gedit .config/autostart/1password-agent.desktop

Copy and paste the text below in the new gedit window (again, be sure to replace “yourusername” with your actual username):

 

[Desktop Entry]
Name=1Password Agent
Exec=wine /home/yourusername/.wine/drive_c/Program\ Files\ \(x86\)/1Password\ 4/Agile1pAgent.exe
Path=/home/yourusername/.wine/drive_c/Program Files (x86)/1Password 4/
Terminal=false
Icon=/home/yourusername/.wine/drive_c/Program Files (x86)/1Password 4/1Password.ico
Type=Application

 

Save the file and close gedit.  You can log out / reboot to verify the agent starts correctly.  If all went to plan, you’ll be able to install and use the 1Password browser extensions.

I’ve been using 1Password on Linux this way for around 9 months now without issue – hopefully it will help you out too.

 

 

Comments

  1. Damon

    Are you still able to use the browser extensions? I am unable to get them to run in Zorin, for some reason. I can get 1Password to open as an application, but I get a 1Password Helper Error: Either the helper is not running, or something is preventing it from communicating with the 1Password browser extension. Follow the simple steps on our support site or contact us. Just curious if you were getting the same error…

  2. Ben Deegan Post
    Author
    Ben Deegan

    Hi Damon. My browser extensions actually stopped working after a recent update (Firefox and Chromium), which I think is due to the extensions switching from the WebSocket protocol to Native Messaging for communicating with 1Password.

    I personally don’t use the browser extensions that much anyway, so I haven’t looked into the issue much further at this stage.

Leave a Reply

Your email address will not be published. Required fields are marked *