Install OnionShare on Raspberry Pi

OnionShare

Securely and anonymously share files, host websites, and chat with friends using the Tor network.
Two people anywhere in the world with OnionShare can communicate peer-to-peer completely privately.

Read their Security Design document here: https://docs.onionshare.org/2.6.2/en/security.html which explains what attack vectors are protected against, and what precautions are necessary to keep total anonymity.

This installs OnionShare from flatpak.
To run: Menu -> Internet -> OnionShare
To run in a terminal: /usr/bin/flatpak run --command=onionshare org.onionshare.OnionShare

Fortunately, OnionShare is very easy to install on your Raspberry Pi in just two steps.

  1. Install Pi-Apps - the best app installer for Raspberry Pi.
  2. Use Pi-Apps to install OnionShare.

Compatibility

For the best chance of this working, we recommend using the latest version of Raspberry Pi OS, which is currently version Bookworm.
Raspberry Pi OS has 32-bit and 64-bit variants, both of which will run on most Raspberry Pi computers, including the Pi 3, Pi 4, and Pi5.
OnionShare will only run on PiOS 64-bit. Pi-Apps will not let you install OnionShare on PiOS 32-bit.

Install Pi-Apps

Pi-Apps is a free tool that makes it incredibly easy to install the most useful programs on your Raspberry Pi with just a few clicks.

Open a terminal and run this command to install Pi-Apps:

wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps/master/install | bash

Feel free to check out the Pi-Apps source code here: https://github.com/Botspot/pi-apps

Install OnionShare

Now that you have Pi-Apps installed, it is time to install OnionShare.
First launch Pi-Apps from your start menu:

Then click on the Tools category.

Now scroll down to find OnionShare in the list.

Just click Install and Pi-Apps will install OnionShare for you!

Pi-Apps is a free and open source tool made by Botspot, theofficialgman, and other contributors. Find out more at https://pi-apps.io