11
2024
08
20:28:50

How To Install Scrcpy In Linux And windows

image depicting wireless files transfer

How to Control Any Android Device Wirelessly with PC Using Scrcpy on Windows or Linux

Today, I'm excited to introduce you to an incredible tool called "Scrcpy," short for Screen Copy. With this tool, your Android device and PC can seamlessly merge, allowing you to fully control your Android device from your PC. It's like turning your PC into your Android device itself. With Scrcpy, you unlock a range of features:

  • Capture screenshots on apps that are screenshot protected.

  • Play games directly on your phone from your PC.

  • Install APK files stored on your PC to your Android device using drag and drop functionality.

  • Transfer files from your PC to phone using drag and drop, and much more.

In this article, I'll guide you through the process of installing and setting up Scrcpy on both Linux and Windows operating systems. Regardless of whether you're a Windows or Linux user, you can enjoy the functionalities that Scrcpy has to offer.

First, I'll show you how to install Scrcpy on Linux, and then I'll demonstrate how to install it on Windows.

 To get Scrcpy up and running on your Linux PC, visit the Linux installation page on the official GitHub repository at [github.com/Genymobile/scrcpy](https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md). There, you'll find a list of commands for installing Scrcpy on different Linux distributions:
  • Ubuntu or Debian users can install it using the apt install scrcpy command.

  • Arch users can install it using pacman -S scrcpy.

  • Fedora users can install it using DNF by running dnf copr enable zeno/scrcpy && dnf install scrcpy.

  • Users of Snap package manager can install it by running snap install scrcpy.

In some cases, Debian users may need to install the required packages or dependencies before successfully running Scrcpy. You can do this by running the following command:

sudo apt install ffmpeg libsdl2-2.0-0 adb wget \
                 gcc git pkg-config meson ninja-build libsdl2-dev \
                 libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
                 libswresample-dev libusb-1.0-0 libusb-1.0-0-dev

If you encounter issues installing Scrcpy using your distro's package manager, you can clone the Git source code and run the installation script with the provided command:

git clone https://github.com/Genymobile/scrcpy
cd scrcpy
./install_release.sh

Ensure that ADB (Android Debug Bridge) is installed on your PC. You can easily do this by running the appropriate command based on your Linux distribution.

Once Scrcpy is installed, you can run it using the command scrcpy after connecting your Android device with USB debugging enabled using a USB cable.

scrcpy

You'll be prompted with a popup window asking you to authorize USB debugging from the connected computer. Click "Allow" to proceed, and your device's screen should be mirrored on your PC immediately.

You can also run the Scrcpy command with options. For example:

scrcpy --max-size=500

The --max-size option allows you to specify the resolution of the screen cast. This option is useful when running a wireless Scrcpy connection on a poor Wi-Fi or wireless network connection.

Another useful Scrcpy option is -S, which disables your phone's physical screen backlight while it's being controlled on your PC, helping to save battery and improve concentration.

To connect Scrcpy wirelessly, first connect your Android device to your computer via USB cable and run the command:

adb tcpip 5555

This activates wireless debugging on the Android device. Disconnect the USB connection and obtain the Android device's IP address by connecting your phone and computer to the same Wi-Fi network. Open the Termux app on your phone and run the command ifconfig to reveal the IP address of your phone.

ifconfig

Once you have the IP address, establish a wireless ADB connection from your computer to your phone by running the command:

adb connect 'device_ip_address':5555

Finally, run the scrcpy command, and you should be able to view and control your Android device wirelessly.

scrcpy

Enjoy the freedom!

Now, let's move on to installing Scrcpy on a computer running the Windows operating system.

To install Scrcpy on Windows, visit the Scrcpy Windows download page and download the appropriate version for your PC architecture (32-bit or 64-bit). Once downloaded, unzip the file and open its folder. You'll find all the Scrcpy program files inside. Run the Scrcpy command by opening the current folder path in your command prompt terminal.

scrcpy

Connect your Android device with USB debugging enabled, and your device's screen should be mirrored on your PC.

To connect Scrcpy wirelessly on Windows, terminate your current Scrcpy session on your terminal using the Ctrl + C command. Then, run the command:

adb tcpip 5555

Open Termux on your Android device and run the command ifconfig to obtain your device's IP address on the current network interface. After disconnecting your phone from USB, run the command:

adb connect 192.168.43.1

Once the connection is successful, run the scrcpy command, and you should be able to wirelessly view and control your Android device.

scrcpy

For more information on Scrcpy's use cases, you can visit the Scrcpy documentation on their GitHub repository. Thanks for reading, and feel free to drop a comment if you encounter any issues setting up Scrcpy.




推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

本文链接:https://www.hqyman.cn/post/7506.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:
打赏





休息一下~~


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

请先 登录 再评论,若不是会员请先 注册

您的IP地址是: