Mirror Android Screen On Ubuntu - muhammed-ajmal/Install-Config GitHub Wiki
Step 1:
sudo apt-get update
sudo apt-get install android-tools-adb
sudo apt-get install ffmpeg
sudo apt-get install frei0r-plugins
Step 2:
Turn Up Developer Mode and turn on usb debugging in android device
adb devices
adb shell screenrecord --output-format=h264 - | ffplay -
if you get error while installing adb this error "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem." run this command
sudo dpkg --configure -a