2023-03-04 07:56:35 +00:00
|
|
|
# On Linux
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
2024-11-24 15:22:40 +00:00
|
|
|
### From the official release
|
|
|
|
|
|
|
|
Download a static build of the [latest release]:
|
|
|
|
|
2024-12-04 19:29:21 +00:00
|
|
|
- [`scrcpy-linux-x86_64-v3.0.1.tar.gz`][direct-linux-x86_64] (x86_64)
|
|
|
|
<sub>SHA-256: `6cb7fb16efbe3afd6db19b1ee31ee9f6e104a4735dc1f41c4a478cabbeac3f77`</sub>
|
2024-11-24 15:22:40 +00:00
|
|
|
|
|
|
|
[latest release]: https://github.com/Genymobile/scrcpy/releases/latest
|
2024-12-04 19:29:21 +00:00
|
|
|
[direct-linux-x86_64]: https://github.com/Genymobile/scrcpy/releases/download/v3.0.1/scrcpy-linux-x86_64-v3.0.1.tar.gz
|
2024-11-24 15:22:40 +00:00
|
|
|
|
|
|
|
and extract it.
|
|
|
|
|
|
|
|
_Static builds of scrcpy for Linux are still experimental._
|
|
|
|
|
|
|
|
|
|
|
|
### From your package manager
|
|
|
|
|
2023-03-04 07:56:35 +00:00
|
|
|
<a href="https://repology.org/project/scrcpy/versions"><img src="https://repology.org/badge/vertical-allrepos/scrcpy.svg" alt="Packaging status" align="right"></a>
|
|
|
|
|
|
|
|
Scrcpy is packaged in several distributions and package managers:
|
|
|
|
|
2024-06-13 07:11:32 +00:00
|
|
|
- Debian/Ubuntu: ~~`apt install scrcpy`~~ _(obsolete version)_
|
2023-03-04 07:56:35 +00:00
|
|
|
- Arch Linux: `pacman -S scrcpy`
|
|
|
|
- Fedora: `dnf copr enable zeno/scrcpy && dnf install scrcpy`
|
2023-03-14 20:51:54 +00:00
|
|
|
- Gentoo: `emerge scrcpy`
|
2023-03-04 07:56:35 +00:00
|
|
|
- Snap: `snap install scrcpy`
|
|
|
|
- … (see [repology](https://repology.org/project/scrcpy/versions))
|
|
|
|
|
|
|
|
|
2024-11-24 15:22:40 +00:00
|
|
|
### From an install script
|
|
|
|
|
|
|
|
To install the latest release from `master`, follow this simplified process.
|
2023-03-04 07:56:35 +00:00
|
|
|
|
|
|
|
First, you need to install the required packages:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# for Debian/Ubuntu
|
|
|
|
sudo 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-dev
|
|
|
|
```
|
|
|
|
|
|
|
|
Then clone the repo and execute the installation script
|
|
|
|
([source](/install_release.sh)):
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/Genymobile/scrcpy
|
|
|
|
cd scrcpy
|
|
|
|
./install_release.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
When a new release is out, update the repo and reinstall:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git pull
|
|
|
|
./install_release.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
To uninstall:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo ninja -Cbuild-auto uninstall
|
|
|
|
```
|
|
|
|
|
|
|
|
_Note 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](build.md) to build and install the app manually._
|
|
|
|
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
2023-03-13 07:40:31 +00:00
|
|
|
_Make sure that your device meets the [prerequisites](/README.md#prerequisites)._
|
|
|
|
|
2023-03-04 07:56:35 +00:00
|
|
|
Once installed, run from a terminal:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
scrcpy
|
|
|
|
```
|
|
|
|
|
|
|
|
or with arguments (here to disable audio and record to `file.mkv`):
|
|
|
|
|
|
|
|
```bash
|
|
|
|
scrcpy --no-audio --record=file.mkv
|
|
|
|
```
|
|
|
|
|
|
|
|
Documentation for command line arguments is available:
|
|
|
|
- `man scrcpy`
|
|
|
|
- `scrcpy --help`
|
|
|
|
- on [github](/README.md)
|