Install scrcpy from Snap package on Linux (application from PC to Android to display and remotely control Android)

script Is an application that displays and controls Android devices connected via USB or wireless from macOS, Windows or Linux desktop. The application focuses on performance and quality, offers 30 ~ 60 FPS, resolution is 1920×1080 or higher, and low latency.
I recently wrote about scrcpy, so please visit the previous article for more scrcpy information and how to install it from source from Ubuntu, Debian, Linux Mint or Fedora:

  • Control Android devices from desktop with scrcpy (Ubuntu, Fedora, Debian, Linux Mint installation)

Although there is no official scrcpy Linux package, it is unofficial Snap pack Created some time ago (Ferenc Czumbil), it is easy to install the application on a Linux distribution that supports snap. After some time trying it can’t make the snap package work, but now it can be used normally, so I want to write a new article to introduce how to install and use the scrcpy snap package. Running scrcpy from snap takes a bit more time than other snap packages, but it is much easier than building scrcpy from source. I installed the scrcpy snap package and tried to run Ubuntu 18.10, Linux Mint 19.1 (Ubuntu based 18.04), Fedora 29 and openSUSE Tumbleweed. scrcpy works on Ubuntu, Linux Mint, and openSUSE, but not on Fedora (error report). Another way is to install scrcpy on Linux from source code by following these instructions: Official instructionsOr check out the Linux Uprising article about installing scrcpy from source on Ubuntu, Debian, Linux Mint, and Fedora.prerequisites:

  • Android 5.0 or higher
  • ADB debugging Need to be enabled on Android device
  • On some devices, you may need to enable additional “USB debugging (security settings)” Option So that you can control your Android device from your desktop computer.
  • Android device connected to computer via USB (or USB) Wirelessly, And ADB via TCP / IP)

No Android root access required. scrcpy is bundled with ADB and scrcpy-server.jar, so there is no need to install anything except scrcpy snap.1. Installation alignment
To install a snapshot package, you need a snapshot. It is pre-installed in Ubuntu 16.04.04 and later, Solus 3 and Zorin OS. For other Linux distributions, including Arch Linux, CentOS, Debian, Deepin, Elementary OS, Fedora, Linux Mint, openSUSE, snapshot installation instructions can be found at: Snapcraft documentation.
Restart your computer or log out / login 2 after installing snapd. Install scrcpy Snap pack.

sudo snap install scrcpy

The snapshot package has been updated and the latest stable scrcpy version is now available in the stable snapshot channel. Daily builds of the master branch are now available in the edge channel (if you want to install the latest daily build, attach --channel=edge To the snap install command).
You also need core capture:

sudo snap install core

Now you can start using scrcpy to remotely control your Android device from your Linux desktop. You need to connect your Android device to your computer via USB and type scrcpy Launch the application in the terminal:

scrcpy

Make sure that your Android device is not locked when running scrcpy, and authorize scrcpy when a dialog prompt appears on your Android phone. If you didn’t authorize in time when you first ran it, don’t worry, just run scrcpy again.
If you want to use the ADB that comes with the scrcpy snap, use scrcpy.adb Instead adb. For example, to list connected devices, use:

scrcpy.adb devices

Or, to kill a running ADB server, use:

scrcpy.adb kill-server

Do you want to uninstall the scrcpy snap? This can be done using the following command:

sudo snap remove scrcpy

Source

Sidebar