This is a snap for scrcpy, "Display and control your Android device". It works on Ubuntu, Fedora, Debian, and other major Linux distributions.
sudo snap install scrcpy
scrcpy
scrcpy.adb [options]
scrcpy.adb devices
scrcpy.adb kill-server
sudo snap connect scrcpy:alsa
sudo snap connect scrcpy:camera
sudo snap connect scrcpy:raw-usb
The snap comes with an XDG desktop entry that can be called from your desktop environment's application menu. If you would like to customize the command line flags that are called by the desktop environment, edit the `Exec` key value at `/var/lib/snapd/desktop/applications/scrcpy_scrcpy.desktop`. For example:
Exec=scrcpy
could become:
Exec=scrcpy -w
to enable the --stay-awake
flag on scrcpy. See all flags by running scrcpy --help
.
sudo snap remove scrcpy