scrcpy is an application that enables Android devices connected via USB or or wirelessly to be viewed and controlled from a macOS, Windows or Linux desktop. The application is focused on performance and quality, offering 30 ~ 60 FPS at 1920×1080 resolution or greater and low latency.
I wrote about scrcpy recently, so visit the previous article for a lot more information about scrcpy and how to install it from source in Ubuntu, Debian, Linux Mint or Fedora:
- Control Android devices from your desktop with scrcpy (Ubuntu, Fedora, Debian, Linux Mint installation)
There are no official scrcpy Linux packages, but an unofficial one Snap package was created some time ago (thanks to Ferenc Czumbil), which allows easy installation of the application on Linux distributions that support snapd. I couldn’t get the Snap package to work when I tried it a while ago, but it works now so i thought i am writing a new article about installing and using the scrcpy snap package. It takes a little longer to get scrcpy from snap to work than other Snap packages, but it’s still a lot easier than building scrcpy from source.
I installed the scrcpy snap package and tried to run it on Ubuntu 18.10, Linux Mint 19.1 (based on Ubuntu 18.04), Fedora 29 and openSUSE Tumbleweed. scrcpy worked on Ubuntu, Linux Mint and openSUSE, but not on Fedora (Error reported). The alternative is to install scrcpy from source code on Linux, either by following the instructions official instructions, or see the Linux Uprising article on installing scrcpy from source on Ubuntu, Debian, Linux Mint, and Fedora.
Requirements:
- Android 5.0 or newer device
- ADB debugging must be activated on the Android device
- On some devices you may have to activate an additional “USB debugging (security settings)” opportunity to be able to control the Android device from your desktop computer.
- Android device connected to your computer via USB (or wireless, with ADB over TCP / IP)
Android root access is not required. scrcpy comes with ADB and scrcpy-server.jar so you don’t need to install anything other than the scrcpy snap.
1. Install snapd
To install snap packages, you need snapd. This is pre-installed in Ubuntu 04/16/04 and newer, Solus 3 and Zorin OS. For other Linux distributions, including Arch Linux, CentOS, Debian, Deepin, Elementary OS, Fedora, Linux Mint, openSUSE, the installation instructions for snapd can be found in the Snapcraft documents.
Restart your computer or log out after installing snapd.
2. Install scrcpy Snap package.
sudo snap install scrcpy
The snap package has been updated and the latest stable scrcpy version is now available on the stable snap channel. A daily build from the master branch is now available in the Edge channel (if you want to install the latest daily build, attach --channel=edge
to the snap install command).
The core catch is also required:
sudo snap install core
You can now use scrcpy to remotely control an Android device from your Linux desktop. You need to connect the Android device to your computer via USB and then enter scrcpy
in a terminal to start the application:
scrcpy
Make sure your Android device is unlocked when scrcpy is running and that you authorize scrcpy when prompted by a dialog box on your Android phone. If you didn’t authorize it in a timely manner the first time you run it, don’t worry, just run scrcpy again.
If you want to use ADB bundled with the scrcpy snap use scrcpy.adb
Instead of adb
. For example, to list connected devices, use:
scrcpy.adb devices
Or, to stop the ADB server if it is running, use:
scrcpy.adb kill-server
Would you like to uninstall the scrcpy snap? This can be done with the following command:
sudo snap remove scrcpy