# How to install Syncthing on Tails

published: 2019-07-01

1. Create a persistent volume in Tails. If you already have a persistent volume configured with Additional Software, Dotfiles, and Personal Data enabled, skip to step 2.

After your first boot, go to the Applications menu in the top left corner. Open the Tails menu, and then select “Configure persistent volume”. Follow the on-screen instructions. At the very least, enable Additional Software, Dotfiles, and Personal Data. When the on-screen instructions tell you to reboot, do so.

2. Set up an admin password on Tails.

On boot, go to the advanced settings button in Tails Greeter (the first window that pops up, before you go to the desktop). Click on the plus button, then select Administration Password. Type in a password of your choice and click Add.

3. Install Syncthing.

`sudo apt install syncthing`

4. Configure Syncthing to use Tails’ SOCKS5 proxy and use your Persistent folder for its configuration.

Open ~/.bashrc in your favorite text editor. At the end of the file, add the following lines:

`export all_proxy=socks5://127.0.0.1:9150`

`alias sta=‘syncthing --home=/home/amnesia/Persistent/.config/syncthing’`

Save and close the file. Copy it into your persistent Dotfiles folder, usually at `/live/persistence/TailsData_unlocked/dotfiles/`.

5. Initialize and start Syncthing.

Reboot and unlock your persistent volume. Once on the desktop, open a terminal and type `sta`.

6. Configure Tor Browser to connect to the Syncthing web interface.

Open Tor Browser (obviously). Open the hamburger menu and click on Preferences. At the very bottom, click on “Settings” next to “Configure how Tor Browser connects to the internet”. In the “no proxy for” box, type in “127.0.0.1” without the quotes.

Click the OK box and exit Preferences. Open another terminal and type:

`sudo iptables -I OUTPUT -o lo -p tcp --dport 8384 -j ACCEPT`

You will need to do step 6 every time you reboot Tails, as there is currently no way to make this persistent.

CC BY-NC-SA 4.0 © Vane Vander