Skip to content

Instantly share code, notes, and snippets.

@ruario
Last active July 31, 2024 17:01
Show Gist options
  • Save ruario/46c528b01581e22e07f06c451914ada9 to your computer and use it in GitHub Desktop.
Save ruario/46c528b01581e22e07f06c451914ada9 to your computer and use it in GitHub Desktop.
How to download and install Twilio Authy on a desktop Linux system without snap support
  • Make an install directory somewhere convenient and switch to it
mkdir -p ~/.local/share/authy
cd ~/.local/share/authy
  • Fetch the current Authy snap
wget $(wget -qO- --header Snap-Device-Series:\ 16 https://api.snapcraft.io/v2/snaps/info/authy | grep -io 'https.*/download/[a-z0-9_]*.snap')

Triple-click to select the entire line, above.

  • Unpack the snap package
unsquashfs -q -f -d . *.snap
  • Remove the undeeded files
rm -r command.sh data-dir desktop-common.sh desktop-gnome-specific.sh desktop-init.sh gnome-platform lib meta/snap.yaml usr *.snap
  • Correct the paths in desktop file
sed -i "/^Exec=/s,=,=$PWD/,;s,\${SNAP},$PWD," meta/gui/authy.desktop
  • Install the desktop file, so that it is found by the desktop environment
install -Dm755 meta/gui/authy.desktop ~/.local/share/applications/authy.desktop
update-desktop-database ~/.local/share/applications

You may need to relogin to your desktop environment before authy shows up.


To remove just delete ~/.local/share/applications/authy.desktop and the install directory (e.g. ~/.local/share/authy).

@ruario
Copy link
Author

ruario commented Mar 5, 2022

This is handy if you decide to leave Authy (or run another TOTP program alongside) and need to export your TOTP seeds (since Authy does not provide such a function):

https://gist.github.com/gboudreau/94bb0c11a6209c82418d01a59d958c93

@adil192
Copy link

adil192 commented Aug 9, 2022

Hi, you can run update-desktop-database ~/.local/share/applications to get authy to show up without a relogin

@ruario
Copy link
Author

ruario commented Aug 9, 2022

@adil192 In theory yes but I have not found that to be reliable against all desktop environments that claim to support this. And often, you don't need it anyway.

@ruario
Copy link
Author

ruario commented Aug 9, 2022

I have added it to the instructions, nonetheless. Thanks!

@sswam
Copy link

sswam commented Dec 1, 2022

Thank-you very much. It stopped working for me in snap, for some unknown reason, but this solution works.

@ruario
Copy link
Author

ruario commented Dec 1, 2022

@sswam Glad it worked for you

@maryjan4
Copy link

Dziękuję, pomogłeś mi bardzo
How to download and install OneNote from a stationary store without snap support?

@thegu5
Copy link

thegu5 commented Feb 28, 2023

This.. just works! Tysm :D

@cheiff
Copy link

cheiff commented May 19, 2023

Thank you!

@Infiniti151
Copy link

Works great on Fedora 38! Thanks a lot!

@Shanghai-Tom
Copy link

Many thanks, just used your instructions to add Authy to my Linux Mint XFCE desktop :-D

@alexolinux
Copy link

It's working fine for Linux distributions without systemd. Thanks a lot!

@ruario
Copy link
Author

ruario commented Nov 5, 2023

@alexmbarbosa Glad to here it still works. I stopped using it myself a long time ago. I just wrapped a shell script around mintotp and GPG (for seed storage) and use that these days. Nonetheless yes, not requiring systemd was my motivation to work this out as I am also on a distro without it. I actually use several snaps by ripping them apart like this. 😆

@tkvance
Copy link

tkvance commented Nov 18, 2023

thank you! very easy. I often dreaded opening authy because it was so slow to open. after installing it with this method, it opens very quick now. well done!!

@nischal-subedi
Copy link

Works on 22.04.3 LTS (Jammy Jellyfish) with KDE desktop environment. Did not need to perform a logout/login operation as the update-desktop-database ~/.local/share/applications command worked for me. The app displayed in the start menu and worked perfectly.

Thank You @ruario .

@ruario
Copy link
Author

ruario commented Dec 14, 2023

@nischal-subedi Glad this is still useful for people 👍

@Infiniti151
Copy link

Still works on Fedora 40! The full method doesn't work as the snap package has been removed from the snap store. But, I copied the authy folder which I had installed earlier with this method on another distro and ran just the last step to install the desktop file.

@sr-machado
Copy link

sr-machado commented May 24, 2024

It worked pretty good for me.

For those who don't have it already installed before being removed, it can still be downloaded from Wayback Machine.

Unfortunately it seems not to be latest version available, the 21 from Nov 21, 2023, as trying to install from flatpak it tries to download version 23 which is unavailable in Wayback Machine.

I wonder if is there a way to pack it into an AppImage?

@iSriBalaji
Copy link

Wayback Machine set up worked. Thanks @y5r43l !

@lucas794
Copy link

GOATED. Working.

@jarrodu
Copy link

jarrodu commented Jul 31, 2024

I tried the snap from Wayback Machine. It looks like things have changed, server side.

I get "The device does not meet the minimum integrity requirements" as a response.

At this point. I am not sure if I will be able to export my tokens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment