Use scrcpy to Mirror Android Devices On Your Desktop

scrcpy is a great open source application that “provides display and control of Android devices connected via USB or over TCP/IP.” In other words, one may screen-mirror and control their Android device from their desktop with scrcpy!
Platforms: Windows, Mac and Linux
Key features:
- Screen mirroring and recording
 - Copy-paste in both directions
 - Android device as a webcam (Linux only)
 - Physical keyboard simulation
 - Physical mouse simulation
 
Preparing your Android device
- Go to ‘Developer options’
 - Enable USB debugging
 - Enable USB debugging (Security settings) -Allow granting permissions and simulating input via USB debugging
 - Enable Wireless debugging
 - Connect your Android device to machine via USB
 - Ensure your device is on the same network as your machine
 
Installing scrcpy for Linux:
1. On Debian and Ubuntu:
sudo apt install scrcpy
2. Run:
adb tcpip 5555
3. Now run:
adb connect <your android's ip address>:5555
4. Disconnect the USB connection and run scrcpy