国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Table of Contents
Install Scrcpy on Linux Systems
Connect to An Android Device via USB in Linux
Connect to Android Device via Wifi in Linux Desktop
Scrcpy Command Examples with Options
Home System Tutorial LINUX Scrcpy - Control Your Android Device via Linux Desktop

Scrcpy - Control Your Android Device via Linux Desktop

Jun 24, 2025 am 10:37 AM

Brief: This guide shows how to install scrcpy an application that helps you connect, display and control an android device from your Linux desktop computer.

Scrcpy (pronounced “screen copy“) is a free, open-source, and cross-platform utility used to display and control an Android device from your Linux desktop. It functions on Linux, Windows, and macOS, and enables control of a device connected either via USB or over a network (TCP/IP).

Its features include screen mirroring with the device's screen turned off, adjustable screen resolution, video recording, bidirectional copy-paste support, using an Android device as a webcam (Linux only), simulated keyboard and mouse input, OTG mode, and more.

To run scrcpy, your Android device must be running at least API 21 (Android 5.0), and have adb (Android Debug Bridge) debugging enabled (USB debugging). However, it does not require root access on the Linux side.

Install Scrcpy on Linux Systems

On Debian-based systems such as Ubuntu and Linux Mint, install scrcpy directly from the default repositories by running:

<code>$ sudo apt install scrcpy</code>

For Fedora, enable the Cool Other Packages Repository (COPR) first and then install scrcpy:

<code>$ sudo dnf copr enable zeno/scrcpy
$ sudo dnf install scrcpy</code>

Users of Arch Linux can install scrcpy with this command:

<code># pacman -S scrcpy</code>

Alternatively, scrcpy is available as a snap package. For RHEL-based distributions, use these commands to install it:

<code>$ sudo yum install snapd
$ sudo systemctl enable --now snapd.socket
$ sudo ln -s /var/lib/snapd/snap /snap
$ sudo snap install scrcpy</code>

Connect to An Android Device via USB in Linux

Once installed, ensure USB debugging is enabled on your Android device (Settings=>Developer Options=>USB debugging), then connect the device to your Linux machine using a USB cable.

A prompt should appear on your Android device asking for authorization to allow USB debugging from the computer — tap Allow to continue.

Scrcpy - Control Your Android Device via Linux Desktop

Now launch scrcpy from the terminal:

<code>$ scrcpy</code>

If everything works correctly, a window will appear showing your Android device’s screen, like in the image below.

Scrcpy - Control Your Android Device via Linux Desktop

Connect to Android Device via Wifi in Linux Desktop

Start by installing the adb command-line tool if you haven't already:

<code>$ sudo apt install adb         [On <strong>Debian, Ubuntu and Mint</strong>]
$ sudo yum install adb         [On <strong>RHEL/CentOS/Fedora</strong> and <strong>Rocky Linux/AlmaLinux</strong>]
$ sudo pacman -S adb           [On <strong>Arch Linux</strong>]</code>

Once adb is installed, make sure both your computer and Android device are connected to the same Wi-Fi network. Then connect your Android device to your computer via USB.

Next, disconnect the USB cable and check the IP address of your Android device (via Settings –> Connections –> Wi-Fi –> tap on connected network) or retrieve it using the following command:

<code>$ adb shell ip route</code>

Scrcpy - Control Your Android Device via Linux Desktop

Set your Android device to listen on port 5555 for TCP/IP connections:

<code>$ adb tcpip 5555</code>

Then connect to the device wirelessly using its IP address:

<code>$ adb connect 192.168.1.4:5555</code>

Finally, start scrcpy to begin mirroring the Android screen on your Linux desktop:

<code>$ scrcpy</code>

Scrcpy - Control Your Android Device via Linux Desktop

Scrcpy Command Examples with Options

As seen in the screenshots above, scrcpy uses the device model name as the window title by default. You can customize this with the --window-title option, as shown below (replace ‘My device‘ with your preferred title):

<code>$ scrcpy  --window-title='My device'</code>

To adjust the size of the mirrored screen, use the --max-size or -m parameter:

<code>$ scrcpy -m 1024
OR
$ scrcpy --max-size=1024</code>

Screen recording during mirroring is supported via the --record or -r flag:

<code>$ scrcpy -r filename.mp4</code>

To record without displaying the screen, use the --no-display or -N option:

<code>$ scrcpy -Nr filename.mp4</code>

Press Ctrl C to stop the recording process.

You can also change the bit rate from the default 8 Mbps using the --bit-rate or -b switch:

<code>$ scrcpy -b 4M</code>

There are many additional command-line options available. To view them all, run:

<code>$ scrcpy --help</code>

Lastly, note that certain Android devices may require enabling extra settings to fully support keyboard and mouse control. For further details, refer to the scrcpy GitHub repository.

The above is the detailed content of Scrcpy - Control Your Android Device via Linux Desktop. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1502
276
How to troubleshoot DNS issues on a Linux machine? How to troubleshoot DNS issues on a Linux machine? Jul 07, 2025 am 12:35 AM

When encountering DNS problems, first check the /etc/resolv.conf file to see if the correct nameserver is configured; secondly, you can manually add public DNS such as 8.8.8.8 for testing; then use nslookup and dig commands to verify whether DNS resolution is normal. If these tools are not installed, you can first install the dnsutils or bind-utils package; then check the systemd-resolved service status and configuration file /etc/systemd/resolved.conf, and set DNS and FallbackDNS as needed and restart the service; finally check the network interface status and firewall rules, confirm that port 53 is not

Install Guacamole for Remote Linux/Windows Access in Ubuntu Install Guacamole for Remote Linux/Windows Access in Ubuntu Jul 08, 2025 am 09:58 AM

As a system administrator, you may find yourself (today or in the future) working in an environment where Windows and Linux coexist. It is no secret that some big companies prefer (or have to) run some of their production services in Windows boxes an

How to Install NodeJS 14 / 16 & NPM on Rocky Linux 8 How to Install NodeJS 14 / 16 & NPM on Rocky Linux 8 Jul 13, 2025 am 09:09 AM

Built on Chrome’s V8 engine, Node.JS is an open-source, event-driven JavaScript runtime environment crafted for building scalable applications and backend APIs. NodeJS is known for being lightweight and efficient due to its non-blocking I/O model and

How to find my private and public IP address in Linux? How to find my private and public IP address in Linux? Jul 09, 2025 am 12:37 AM

In Linux systems, 1. Use ipa or hostname-I command to view private IP; 2. Use curlifconfig.me or curlipinfo.io/ip to obtain public IP; 3. The desktop version can view private IP through system settings, and the browser can access specific websites to view public IP; 4. Common commands can be set as aliases for quick call. These methods are simple and practical, suitable for IP viewing needs in different scenarios.

System requirements to install linux System requirements to install linux Jul 20, 2025 am 03:49 AM

Linuxcanrunonmodesthardwarewithspecificminimumrequirements.A1GHzprocessor(x86orx86_64)isneeded,withadual-coreCPUrecommended.RAMshouldbeatleast512MBforcommand-lineuseor2GBfordesktopenvironments.Diskspacerequiresaminimumof5–10GB,though25GBisbetterforad

How to Install MySQL 8.0 on Rocky Linux and AlmaLinux How to Install MySQL 8.0 on Rocky Linux and AlmaLinux Jul 12, 2025 am 09:21 AM

Written in C, MySQL is an open-source, cross-platform, and one of the most widely used Relational Database Management Systems (RDMS). It’s an integral part of the LAMP stack and is a popular database management system in web hosting, data analytics,

Ubuntu 25.04 'Plucky Puffin”: A Bold Leap Forward with GNOME 48 and HDR Brilliance Ubuntu 25.04 'Plucky Puffin”: A Bold Leap Forward with GNOME 48 and HDR Brilliance Jul 12, 2025 am 09:28 AM

Ubuntu has long stood as a bastion of accessibility, polish, and power in the Linux ecosystem. With the arrival of Ubuntu 25.04, codenamed “Plucky Puffin”, Canonical has once again demonstrated its commitment to delivering a

How to Install MongoDB on Rocky Linux and AlmaLinux How to Install MongoDB on Rocky Linux and AlmaLinux Jul 12, 2025 am 09:29 AM

MongoDB is a high-performance, highly scalable document-oriented NoSQL database built to manage heavy traffic and vast amounts of data. Unlike traditional SQL databases that store data in rows and columns within tables, MongoDB structures data in a J

See all articles