Scrcpy is a software to connect to your android device (phone or tablet) from your ubuntu pc.
It is really fast and stable.All you have to do is install the software with using apt
$ sudo apt install scrcpy
and then connect your android device to your pc via usb cable.Enable adb usb debugging.and run the tool
INFO: scrcpy 1.12.1 <https://github.com/Genymobile/scrcpy>
/usr/share/scrcpy/scrcpy-server: 1 file pushed. 7.9 MB/s (24773 bytes in 0.003s)
INFO: Initial texture: 1080x1920
and Thumbs up! they really made a good software.I appreciate.Thanks to Genymobile!
Github page https://github.com/Genymobile/scrcpy