SMARTPHONE SCREEN TO DESKTOP

How to display your smartphone screen on big screen of linux PC or laptop.

android connect screen with android and Smartphones|lower


HOW TO PUT YOUR ANDROID SCREEN ON MONITOR OF NOTEBOOK (LINUX)

FIRST STORY OF SUCCESS

1. Install adb
2. Install scrcpy: github.com/Genymobile/scrcpy
3. Run $ adb display  // You should see the device connected by USB
4. I get an error “No permission plugdev groub ...bla bla bla”
5. $ sudo usermod -aG plugdev {username}
6. Run $ scrcpy

 

SECOND STORY OF PER ASPERA AD ASTRA

1. Download from github.com/Genymobile/scrcpy/releases/latest/

2. For lubuntu faced broblem with meson with old version.

3. Installed with $ pip3 install meson // But system doesn’t see that.

4. When I run ./install_relese.sh got error string 15 command not found

5. scrcpy doesn’t work on old linux I will try Google Chrome and Linux

6. Install chromium. $ sudo apt install chromium-browser

7. But $ sudo chromium-browser cannot run as root. It is problem.

8. $ sudo nano /usr/bin/chromium-browser → At the end of the file after “$@”, inside of if statement type “– user-data-dir” (I cannot find exaxt line “exec -a ..”) // Doesn’t work

9. $ apt install hexedit $ cd /usr/lib/chromium-browser

10. $ hexedit chromium-browser → find geteuid change to getppid // can’t find

11. $ nano /etc/chromium-browser/default → Add line CHROMIUM_FLAGS=” --user-data-dir” // Doesn’t work

12. $ sudo chromium-browser –no-sandbox // Works

13. On chromium install addon Vysor Chrome App // Doesn't work

14. I installed vysor from vysor.io // Doesn't work

15. Download from forum PDA cracked version .AppImage → $ sudo chmod +x ./Vysor.AppImage → run .AppImage // Doesn’t have enough dependencies

16. I’ve updated repositories to be able to download new packages. And I installed new meson.

17. scrcpy installed but when I run got an error “Server connection filed”. Probably I need to install dependancy openjdk-11-jdk but it 200MB. I try it later. I’ve installed openjdk and scrcpy but got adb push return 1 error
18. $ adb kill-server then $ adb start-server // I’ve got new error “server version doesn’t match client version

19. But on my HONOR phone I’ve got unathorized while run $ adb devices

20. In developer options I should revoke USB debugging authorization // But still persist error “server version doesn’t match client version

21. Probably several adb versions run simultaniously. I have to find other app that use adb and stop it

22. I have to find path to my adb then $ set ADB=/usr/bin/adb$ scrcpy // doesn’t work

23. Maybe try to install server 1.20 same with client.

24. Problem in android-sdk platform-tools in /usr/lib/android-sdk/platform-tools/

What if $ set ADB=/usr/lib/android-sdk/platform-tools/adb // USELESS

25. Delete old adb path $ sudo rm /usr/bin/adb$ sudo ln -s /usr/lib/android-sdk/platform-tools/adb /usr/bin/adb // does not work

26. Delete android-sdk // doesn’t help

27. Finally. I need to install server with same version as client. I download from github file scrcpy-server-v1.20 (for exemple). Then I have to put this file in folder /usr/local/share/scrcpy/ and substitute old file (change file name to “scrcpy-server”). But it may be other location. To check exact location $ scrcpy -Vdebug

 

SCRCPY

28. ALT+F fullscreen

29. To start with screen always ON $ scrcpy -w

 

ADB

50. Start power phone on through adb.