Screen Mirroring from Android phone to Linux

Use scrcpy(screen copy) to mirror an Android device – and see/use it from your linux system.

Setup

Install scrcpy

sudo apt-get install scrcpy

Connect your phone to your system using a USB cable. Make sure USB Debugging is enabled.

Run command…

adb tcpip 5555
adb connect <your android's ip address>:5555

Disconnect the USB Cable. Then run…

scrcpy

This should open a window where you can see the phone screen.

Usage

You’ll not have to do the USB connection again. Just run these commands to see the screen…

adb connect <your android's ip address>:5555
scrcpy

Keep in mind your phone IP might change. And phone reboot might end the adb tcpip 5555 demon. So that might have to be done again.

Source

Author: Binny V A
A philosopher programmer who specializes in backend development and stoicism.

Leave a Reply

Your email address will not be published. Required fields are marked *