1Password on Ubuntu Linux 14.10

Edited on July 26, 2015 to include instructions on enabling browser extensions (Thanks, Jonathan!)

If you are as deeply entrenched in the Apple ecosystem as I am you probably survive password hell by using 1Password.

What if you want to play around with Ubuntu Linux? There is no version of 1Password for Linux. There is one neat work-around that I will show you here: you can use Wine, a Windows emulator, to run 1Password on Ubuntu Linux. This will probably work on other *nix systems too.

Watch it!

Check out my screencast on YouTube! to see the installation.

Install notes

Assumptions

This guide assumes the user has:

  • Ubuntu Linux 14.10 64-bit version is installed on a computer or virutal machine
  • beginner-level familiarity of the Linux command line
  • an existing 1Password installation that is being synchronized via Dropbox (not iCloud)
  • 1Password version 4 for Windows is being installed

Overview

  • install Wine
  • Install & configure Dropbox
  • Download 1Password
  • Install 1Password in Wine
  • (NEW) Install browser extensions
  • Run 1Password (NEW) with browser extensions enabled

Install WINE

Open up a Terminal window and type in the following:

sudo apt-get install wine

The Ubuntu package installer will then figure out what dependencies Wine has and it will figure out what needs to be downloaded. It will present you with a summary of what is to be installed and then it will as you if you want to continue. Type in y to continue.

It will then present you with an end user license agreement (EULA) for using Microsoft fonts. Click ok to accept it. Note: you will need to use the Tab key to focus on the <Ok> on this and subsequent dialog screens.

Install and Configure Dropbox

Open the Ubuntu Software Center and search for “Dropbox”.

When it shows up, click on Dropbox, then click on the Install button and enter your password when prompted.

The Ubuntu Software Center will install Dropbox for you. When it is done, close the Software Center window.

Click on the new Dropbox icon in the Launcher. A Dropbox setup window will then open. Enter your account information. At this point you accept the default of syncing everything in your Dropbox account. Alternatively, you can click on the Advanced Settings link to choose specific folders to sync.

Download 1Password

Running 1Password on Ubuntu requires the Windows version. You can grab it at the AgileBits Downloads page.

Click on the Download It Now button.

In the resultant pop-up dialog box, click on the Save File button.

Depending on your browser, you will either get to choose the target download directory or it will go to the default directory.

Install 1Password in WINE

Go to wherever the download is stored now. (In my case, the 1Password installer went to my /home/eduardo/Downloads directory)

cd ~/Downloads

List the contents of the directory and look for the 1Password executable installer. It will be named something like 1Password-4.1.0.530.exe . Your filename will be different than this.

Make sure you use your 1Password filename in the following command.

Use Wine to install 1Password by entering this command:

wine 1Password-4.1.0.530.exe

This will install 1Password in your Wine directory and start the 1Password Windows installer.

Select the default install location. It will say it is installing it to C:\Program Files (x86)\1Password 4 but, in reality, it is installing it to the Wine folder in your home directory.

Next you are given the opportunity to create a Start Menu shortcut. Since you are on Ubuntu, there is not really a start menu. Check the checkbox for Don’t create a Start Menu folder.

Check the checkbox for Create a desktop icon if you want one and click the Next button.

Click on the Install button to begin the installation. Once it has been installed click on the Finish button to exit the installer and get back to the command line.

Run 1Password

The simplest way to run 1Password is to use the Desktop icon. If you chose to install a Desktop icon keep in mind that it will probably not show up until after a reboot of the system.

If you didn’t install a Desktop icon, you can start Dropbox in the command line.

NEW: Install browser extensions by navigating to the AgileBits browser extensions site:
https://agilebits.com/onepassword/extensions

Navigate to your Wine folder. Assuming you chose the default directory when installing 1Password, you should type the following into the command line:

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

Note: unlike in Windows, file and directory names can only be letters, numbers, periods, hyphens, or underscores. Any other character or space must be preceded by a backslash character. This is known as escaping a character.

Run 1Password by typing:

./1Password.exe

This will bring up a Welcome to 1Password dialog box. Click on the I have used 1Password before button. Next navigate to your 1Password keychain in Dropbox.

Enter your 1Password master password. You should now see everything from your 1Password vault.

NEW: Lastly, navigate back to the 1Password application location and look for a file called Agile1pAgent.exe. This app must be running to enable the browser extension(s).

Run it by navigating to the 1Password directory and typing:

wine Agile1pAgent.exe

(Many thanks to Jonathan for providing this guidance in his comment to this post.)

End Notes

If you know of better/easier ways of doing this, please post a comment.

Thanks.

17 thoughts on “1Password on Ubuntu Linux 14.10

  1. Reg van Lijf

    Excellent instructions getting 1Password on Ubuntu14.10.
    One problem, it does not recognise Ubuntu’s Firefox.
    How do I get 1Password’s Preferences to recognise this Ubuntu browser?

    Reply
    1. Eduardo Sanchez Post author

      Hi, Reg. I am also having difficulty getting it to work with the Firefox browser plugin.

      Some users on the AgileBits forums claim to have it working but I have not been able to replicate their success.

      Please know that if I do figure out how to do it, I will post an instructional video to help everyone out. 🙂

      Reply
  2. Arnau

    I worked to install the app. Now I am amble to open and use the app itself, but the browser extension still does not work. Do you why is that? Shall I do any extra step to make it work. Is that even possible?
    Thanks in advance

    Reply
  3. Eduardo Sanchez Post author

    Hi, Arnau.

    I can’t figure it out either.

    I will post another message if I can get it to work.

    If you figure it out, please post a solution here.

    Reply
    1. Jonathan

      To use it with the browser extension there’s 2 things to do
      First uncheck “verify web browser code signature”. Its located in 1password “Help>Advanced”

      then you need to launch the Agilebite agent . I do it automatically on startup using Startup Applications.
      I created this command :

      Name : OnePasswordAgent
      Command : wine /home/USERNAME/.wine/drive_c/Program\ Files\ \(x86\)/1Password\ 4/Agile1pAgent.exe

      replace USERNAME with your username
      This command line works for 1password 4 but change the path if you use another version.

      Reply
  4. Carlos Leite

    Once I install it, it works really nice, including the Chrome extension. But the folder (x86) is not there and I have to reinstall it every time I turn on my computer in order to be able to use it, because I can’t find the 1Password.exe file. I tried to install a Desktop icon at the first time, but it didn’t work. Any ideas? Thanks.

    Reply
    1. admin

      Hi, Carlos.

      The wine installer will put 1Password in the following directory:

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

      You can navigate there from the command line or you can navigate from Files graphical user interface.

      You might need to “Show hidden and backup files” in the Files preferences to see the ‘.wine’ folder.

      Good luck!

      Reply
      1. Carlos Leite

        That’s exactly my problem, the folter (x86)/1Password/ was not created on Program Files during the installation, so I can’t run 1Password this way.

        I have to reinstall 1Password everyday via wine to make it work because in the next day it’s not there anymore.

        Reply
        1. admin

          Hi Carlos, I see that the x86… folder is not being created.

          Maybe the installer is putting it somewhere else.

          The next time you install it and have it up and running, issue the following command in a terminal:

          find -name "1Password.exe"

          That should print the location of the installed 1Password.exe file. Once you know the location of the file you can just run that file instead of reinstalling.

          Reply
  5. Jonas

    Thank you for the great job!
    I installed the Chrome extension but unfortunately it’s not working properly for me. 1password does not log in automatically to websites when I use it. Does anyone have the same problem?

    Greetings,
    Jonas

    Reply
    1. Eduardo Sanchez Post author

      Jonas, I am sorry to hear that you are having trouble with the auto login.

      Please take a look at the other comments here to see what others have done to enable the 1Password browser extensions.

      Reply
  6. Jeff

    This all worked perfectly for me under Ubuntu 16.04 LTS, even the Firefox extension.

    Thank you Eduardo and all of the commenters with tips!

    Reply

Leave a Reply

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