HowTo: Get a passcode from DUO Mobile working on the Pinephone
Hey All,

I was forced to use Duo Mobile to use with my work, and I wanted to share a couple of experiences to help anyone else that may have this issue too. First, DUO now supports WebAuthn, I had to ask my IT department to get it to work. This will allow you to use a Yubikey (or other U2F device) on Firefox (as normally it is Chrome only). I just ordered a USB-C Yubikey as well, so I am curious to see if I can get that working on the Pinephone.

I was also successful in getting a passcode working with Gnome Authenticator, thus not needing the DUO mobile app (for those who don't have to use DUO, the "official" way to get a passcode working is to use their app, which is an Andriod/iOS app only. It does not natively support using third party apps, and I suspect that is by design). There is a python script to get it working:

You can use just the python script only you so choose, but you can also export the secret to your favorite 2fa app (like Gnome-authenticator). Use the


script to export your secret. Note that it uses HOTP, do you have to incriment it at every log in.

As a quick note, look at all of the "Data" in , and make sure they are reasonable values too. I can only assume they have those values to check them.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 7 2,043 2 hours ago
Last Post: markcro
  PinePass - Mobile friendly GUI for pass mpnordland 2 258 05-01-2021, 05:46 PM
Last Post: linmob
  Fedora + Phosh for PinePhone njha 54 30,211 05-01-2021, 02:40 AM
Last Post: Subsentient
  GTK Rust mobile Linux client for Signal Be. 13 4,815 04-28-2021, 11:38 AM
Last Post: Be.
  Pine Phone Desktop Mode or "Standard" Gnome Desktop on PinePhone? 4920441 3 463 04-08-2021, 07:06 AM
Last Post: 4920441
  Adafruit Pyloton Open Source Bike computer on the PinePhone? Peter Gamma 0 211 04-02-2021, 06:37 PM
Last Post: Peter Gamma
  PureOS on Pinephone dukla2000 83 46,730 04-02-2021, 07:46 AM
Last Post: darkdragon-001
  openSUSE for Pinephone Alefnode 68 27,917 03-21-2021, 11:43 AM
Last Post: andresbs
  freeglut3 on the PinePhone Samuel Venable 1 342 03-10-2021, 03:06 PM
Last Post: nas
  Easiest way to use Android applications on Pinephone esud 3 1,476 02-21-2021, 12:53 PM
Last Post: reGisterGan578

Forum Jump:

Users browsing this thread: 1 Guest(s)