HOW-TO: Ubuntu 22.04.03 Desktop clean install, reliably get Firefox integration working
I find myself reinstalling Ubuntu onto bare-metal or VM environments quite often. We're talking scorched earth, nuke the drive partition table and reformat, clean install from ISO or USB.
I follow these steps, gleaned from numerous threads in this community and on Reddit, to reliably get the 1Password for Linux app full integrated with the 1Password for Firefox browser plugin. Unlocking one unlocks the other, as intended. I figured I'd share these steps for posterity.
On a freshly installed Ubuntu Desktop 22.04.03 system:
sudo snap install curl
Then use curl to trust the official 1Password apt repo keys, configure the repo, and install the latest 1Password for Linux app via apt per this procedure (which the 1Password team keeps up to date):
https://support.1password.com/install-linux/#debian-or-ubuntu
Next, remove the Ubuntu default Snap packaged version of Firefox and install the .deb packaged version from the Mozilla maintained apt repos per this procedure (which the blog's author, Joey Sneddon, seems to keep up to date):
https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04
It seems like eventually, Snap packaged versions of Firefox should support the Native Messaging features that the 1Password Firefox browser extension (on Linux) uses to talk to the 1Password for Linux app. But as of this writing, it does not.
Once you've got your .deb packaged version of Firefox installed, you can now install the 1Password for Firefox browser extension:
https://addons.mozilla.org/en-US/firefox/addon/1password-x-password-manager/
And finally, the magic sauce. You need to enable some AppArmor Native Messaging permissions to allow the Firefox extension to communicate with the 1Password for Linux app. This requires editing a config file, for which I use vim (sudo apt install vim).
sudo vim /etc/apparmor.d/usr.bin.firefox
Add this at the bottom of the config file, but BEFORE the closing curly brace }
# Native Messaging owner @{HOME}/.mozilla/**/native-messaging-hosts/** ixr, # 1Password extension /opt/1Password/1Password-BrowserSupport ixr, /run/user/1000/1Password-BrowserSupport.sock ixr, /run/user/1000/1Password-BrowserSupport.sock wr,
Save the file (:wq for you non-VI folks), then:
close Firefox
close the 1Password app for Linux
Restart apparmor:
sudo systemctl restart apparmor
And now your 1Password for Firefox Extension should unlock with the 1Password app for Linux, and vice versa. Hope this helps!
1Password Version: 8.10.9
Extension Version: 2.13.0
OS Version: Ubuntu
Browser: Firefox
Comments
-
I also installed 1Password for Linux on Ubuntu. But I didn't make the apparmor thing. I used 1Password for Linux beta and the beta extension for Firefox. Both are integrated into each other.
0 -
Thanks for sharing what resolved things for you @JonInVA.
@DenalB, thanks for sharing your experience. For some further context, everything should work as you've described without adding the AppArmor configuration.
However, a few users encountered an issue where AppArmor was blocking the communication between the app and browser.
The solution presented here is the current workaround in these cases. Our team is investigating any changes that can be made on our end to prevent this issue.
Ali
1 -
This apparmor solution didn't work for me on Debian. I have both desktop and FF browser betas installed. Is there anything else I can try?
0 -
Hi @jc00ke,
I'm sorry to hear you're experiencing this issue. I would love to investigate into this issue further.
Could you send an email to
support+linux@1Password.com
?With your email please include:
- A link to this thread: https://1password.community/discussion/141799/how-to-ubuntu-22-04-03-desktop-clean-install-reliably-get-firefox-integration-working
- Your forum username:
jc00ke
- A diagnostics report: https://support.1password.com/diagnostics/?linux
- Information about your current environment (Linux distribution, version, desktop environment, browser version)
We'll look forward to hearing from you.
Franky
0