how to run scrcpy in ubuntu
This article provides a comprehensive guide to setting up and using scrcpy, an open-source tool that allows users to mirror and control their Android devices from an Ubuntu environment. It covers the essential steps for installation, device connectio
How to Run scrcpy in Ubuntu
- Prerequisites:
-
Install ADB (Android Debug Bridge) on your Ubuntu system. Open a terminal and run the following command:
<code>sudo apt install adb</code>
Copy after login - Enable USB debugging on your Android device.
- Install scrcpy:
-
On your Ubuntu system, run the following command to install scrcpy:
<code>sudo apt install scrcpy</code>
Copy after login
What are the steps to run scrcpy in Ubuntu?
- Connect your Android device: Use a USB cable to connect your Android device to your Ubuntu system.
-
Run scrcpy: In a terminal window, run the following command to start scrcpy:
<code>scrcpy</code>
Copy after login - Authorize ADB: If prompted, authorize ADB access on your Android device.
- Control your device: The scrcpy window will now show the screen of your Android device. You can use your mouse and keyboard to control your device from your Ubuntu system.
How do I set up scrcpy to work in Ubuntu?
-
Configure key mapping: You can customize the key mapping for scrcpy by creating a configuration file. Go to
~/.config/scrcpy
directory and create a file namedconfig
. Add the following lines to the config file, replacing<key>
with the key you want to map the action to and<action>
with the desired action (e.g.,back
,home
,vol_up
):<code><key>=<action></code>
Copy after login -
Configure resolution and bitrate: You can set the default resolution and bitrate of the scrcpy window by editing the
~/bin/scrcpy
file. Add the following lines to the file, replacing<width>
and<height>
with the desired resolution and<bitrate>
with the desired bitrate:<code>--max-size=<width>x<height> --bit-rate=<bitrate></code>
Copy after login -
Create a desktop launcher: You can create a desktop launcher for scrcpy on your Ubuntu system. Go to the Activities Overview menu, click the "Show Applications" button, and search for "desktop entries." Open the "Desktop Entries" folder and create a new file with the extension
.desktop
. Add the following content to the file, replacing<path>
with the path to the <code>scrcpy</code> binary:<code>[Desktop Entry] Name=Scrcpy Exec=<path> Icon=<icon_path> Terminal=false Type=Application</code>
Copy after login
The above is the detailed content of how to run scrcpy in ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The article details steps to completely uninstall Xiaomi Game Center, remove residual files, prevent auto-reinstallation, and verify the app's removal from a device.

Your phone's camera does so much filtering, processing, and AI adjustments, it can make you question reality itself. In a world where Google can put you into photos you take, what's even real? If you'd rather avoid letting your phone decide what

Article discusses the fastest way to uninstall Xiaomi Game Center in 2025 using built-in settings, with optional third-party tools for efficiency.Character count: 159

Article details steps to completely uninstall Xiaomi Game Center from Xiaomi devices, discussing performance benefits and risks involved in the process.Character count: 159

The article provides a detailed guide on uninstalling Xiaomi Game Center, discussing standard and alternative methods, and potential performance improvements post-uninstallation.

Article discusses uninstalling stuck Xiaomi Game Center, troubleshooting, and exploring gaming alternatives. Main issue is app malfunction and removal.

The article provides a detailed guide on completely removing Xiaomi Game Center from Xiaomi devices, including uninstallation steps, disabling system integration, clearing residual data, and rebooting. It also discusses performance optimization post-

This guide addresses uninstalling Xiaomi Game Center, focusing on common issues post-uninstallation, ensuring complete removal of residual files, and preventing automatic reinstallation.
