Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Install Tetheron on Linux

Tetheron for the desktop is published on the releases page as a Debian package and, from release 0.5.0, as a tarball with an install script for other distributions. Both contain the daemon tetherd, the app tether and the command-line tool tether-cli.

Before you begin

  • You need a 64-bit Intel or AMD processor (x86_64, amd64) and sudo rights.
  • For the Debian package you need Ubuntu 24.04, Linux Mint 22 or Debian 13, or a newer version of one of them.
  • For the tarball you need a distribution with systemd, glibc 2.39, GTK 4.14 and libadwaita 1.5, or newer versions. Fedora 40 and newer and Arch Linux have them. See Supported platforms.

On a system that fits neither, build from source.

Install the package on Debian, Ubuntu and Linux Mint

  1. Download tether_<version>-1_amd64.deb from the releases page. <version> is the release number, for example 0.4.1.

  2. Install it with apt, which also installs the packages it depends on (among them avahi-daemon for discovery and adb for installing the phone app and for the enhanced tier):

    sudo apt install ./tether_<version>-1_amd64.deb
    

Phone as webcam, which ships with the next release (0.5.0), also needs the v4l2loopback kernel module. The package suggests it but does not install it. Use the phone as a webcam has the steps.

Install from the tarball on Fedora, Arch Linux and others

The tarball is published from release 0.5.0. Its install script copies the programs to /usr/local and does not install distribution packages, so you install those first.

  1. Install the packages Tetheron needs.

    On Fedora:

    sudo dnf install gtk4 libadwaita avahi android-tools pipewire pipewire-utils \
      wireplumber bluez gstreamer1-plugins-base gstreamer1-plugins-good \
      gstreamer1-plugins-bad-free gstreamer1-plugin-openh264
    

    gstreamer1-plugin-openh264 is the H.264 decoder for the phone screen. It comes from the repository fedora-cisco-openh264, which Fedora Workstation enables by default. If dnf does not find the package, enable that repository first.

    On Arch Linux, and on distributions based on it:

    sudo pacman -S --needed gtk4 libadwaita avahi android-tools pipewire pipewire-audio \
      wireplumber bluez gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav
    

    On another distribution, install its packages for the same components. Supported platforms lists what each one is for.

  2. Start Avahi and Bluetooth if they are not running. Fedora Workstation starts both by default. Arch Linux does not:

    sudo systemctl enable --now avahi-daemon.service bluetooth.service
    
  3. Download tether-<version>-linux-x86_64.tar.gz from the releases page and unpack it:

    tar -xzf tether-<version>-linux-x86_64.tar.gz
    cd tether-<version>-linux-x86_64
    
  4. Run the install script:

    sudo ./install.sh
    

    The script first checks that the libraries and programs from step 1 are there. It stops if a program in the tarball could not start, and prints the install command for anything else that is missing. ./install.sh --check runs the check alone, without sudo.

The script enables the daemon for every user, as the Debian package does. ./install.sh --help lists its options. The reference page Configuration and files lists the files it installs.

These packages are optional:

Used forFedoraArch Linux
Clipboard sync while the app is closedxclip (X11) or wl-clipboard (Wayland)xclip or wl-clipboard
Stay on top and the call banner above other windows, on X11wmctrlwmctrl
The ringtone for incoming callssound-theme-freedesktopsound-theme-freedesktop
Phone as webcamakmod-v4l2loopback, from RPM Fusion Freev4l2loopback-dkms, v4l2loopback-utils and the headers of your kernel, such as linux-headers

Start the daemon

The installation enables the daemon for every user. It starts when you log in, and on demand when the app or tether-cli needs it. A session that was already running during the installation does not know about the daemon yet.

  1. Reload the user service manager and start the daemon:

    systemctl --user daemon-reload
    systemctl --user enable --now tetherd.service
    

    Logging out and back in has the same effect.

  2. Check that it answers:

    tether-cli self
    

    The command prints the daemon’s name, identity and settings.

If the app shows Tether service is not running, click Start service.

Open the firewall

The phone connects to the desktop on TCP port 7360. Discovery uses UDP port 7360 and UDP port 5353. If no firewall is active, skip this section.

If ufw is enabled, allow the application profile that Tetheron installs, and local network discovery:

sudo ufw allow Tether
sudo ufw allow mdns

If firewalld is running, as on Fedora, open the ports in the active zone:

sudo firewall-cmd --permanent --add-port=7360/tcp --add-port=7360/udp --add-service=mdns
sudo firewall-cmd --reload

With another firewall, allow inbound TCP 7360, UDP 7360 and UDP 5353 from your local network.

Open the app

Start Tetheron from the applications menu (Tether in 0.4.1 and earlier), or run tether in a terminal. With no phone paired, the window shows No devices yet. Continue with Install Tetheron on Android and Pair and unpair devices.

Show the tray icon

The tray icon shows the phone’s battery level, offers quick actions and keeps the app running when you close the window. It is on by default. To change it, open the main menu of the window, choose Preferences and change Show tray icon under Desktop integration.

GNOME has no tray. The icon appears there only when an AppIndicator extension is installed and enabled, such as AppIndicator and KStatusNotifierItem Support. Everything else works without it. Cinnamon, KDE Plasma and other desktops with a tray need nothing extra.

Start the app in the background at login

The daemon starts at login by itself. The app does not. Start it at login as well if you want the tray icon and clipboard sync without opening the window.

  1. Open Preferences.
  2. Under Desktop integration, switch on Start Tether in background at login.

This adds an autostart entry that runs tether --background, which starts the app with the tray icon and no window. Switch the row off to remove the entry.

Find received files

Files that the phone sends are saved to ~/Downloads/Tether. To change the folder, open Preferences and choose another Download folder under Files, or run:

tether-cli config download-dir <folder>

<folder> is the full path of the folder. Configuration and files lists every setting and path.

Update

  1. Download the newer .deb or tarball from the releases page.

  2. Install it over the old one. With the Debian package:

    sudo apt install ./tether_<version>-1_amd64.deb
    

    With the tarball, unpack it and run its install script:

    sudo ./install.sh
    
  3. Restart the daemon:

    systemctl --user daemon-reload
    systemctl --user restart tetherd.service
    
  4. Quit the app (Quit in the main menu or in the tray menu) and open it again.

Pairings and settings are kept. Update the phone app to the same release.

Uninstall

  1. Unpair each phone first, so that the phone forgets this desktop too: see Pair and unpair devices.

  2. If you switched on Start Tether in background at login, switch it off in Preferences. This removes the autostart entry.

  3. Remove the programs. With the Debian package:

    sudo apt remove tether
    

    After an installation from the tarball:

    systemctl --user stop tetherd.service
    sudo /usr/local/bin/tether-uninstall
    
  4. If you allowed Tetheron in the firewall, delete the rule. For ufw:

    sudo ufw delete allow Tether
    

    For firewalld:

    sudo firewall-cmd --permanent --remove-port=7360/tcp --remove-port=7360/udp
    sudo firewall-cmd --reload
    

Your data stays in place. To delete this desktop’s identity, the list of paired phones and the cached messages and photos as well, remove the three directories:

rm -r ~/.local/share/tether ~/.config/tether ~/.cache/tether

Warning

Deleting ~/.local/share/tether deletes this desktop’s identity. Every phone must be paired again if you reinstall.

Files you received stay in ~/Downloads/Tether.