Install and run scrcpy on Linux
From the official release
Section titled “From the official release”Download a static build of the latest release:
scrcpy-linux-x86_64-v3.3.3.tar.gz(x86_64)
SHA-256:9b30e813e8191329ba8025dc80cb0f198fb0a318960a3b5c15395cf675c9c638
and extract it.
Static builds of scrcpy for Linux are still experimental.
From your package manager
Section titled “From your package manager”Scrcpy is packaged in several distributions and package managers:
- Debian/Ubuntu:
(obsolete version)apt install scrcpy - Arch Linux:
pacman -S scrcpy - Fedora:
dnf copr enable zeno/scrcpy && dnf install scrcpy - Gentoo:
emerge scrcpy - Snap:
(obsolete version)snap install scrcpy - … (see repology)
From an install script
Section titled “From an install script”To install the latest release from master, follow this simplified process.
First, you need to install the required packages:
# for Debian/Ubuntusudo apt install ffmpeg libsdl2-2.0-0 adb wget \ gcc git pkg-config meson ninja-build libsdl2-dev \ libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \ libswresample-dev libusb-1.0-0 libusb-1.0-0-devThen clone the repo and execute the installation script (source):
git clone https://github.com/Genymobile/scrcpycd scrcpy./install_release.shWhen a new release is out, update the repo and reinstall:
git pull./install_release.shTo uninstall:
sudo ninja -Cbuild-auto uninstallNote that this simplified process only works for released versions (it
downloads a prebuilt server binary), so for example you can’t use it for testing
the development branch (dev).
See build.md to build and install the app manually.
Make sure that your device meets the prerequisites.
Once installed, run from a terminal:
scrcpyor with arguments (here to disable audio and record to file.mkv):
scrcpy --no-audio --record=file.mkvDocumentation for command line arguments is available:
man scrcpyscrcpy --help- on quickstart