The nifty little program has been mentioned a few times lately on the forum, so thought I'd put some instructions here to help out anyone trying to do this.
SCRCPY (Screen Copy) is a screen mirroring application. It can work either via cable, or wirelessly.
scrcpy is in the Fatdog repository. Only recently added, so an update to gslapt is required. You'll also need ADB which is the Android Debug Bridge which can be downloaded from here:
https://developer.android.com/studio/re ... form-tools
Obviously for Fatdog (and other Puppies) download the Linux version. From there, extract the archive and copy the "adb" file from the "platform-tools" sub-directory to /usr/bin
You need to have debugging enabled on your Android device. Go to Settings > About Phone > and tap Build Number seven times. That should enable developer options.
Then connect your phone or other Android device via USB, type in
Code: Select all
scrcpy
in a terminal and you should see your phone's screen after accepting the adb confirmation.
That's the most basic thing. There are lots of options. I personally like wireless connection. Your phone and PC need to be on the same wireless network. If your phone's IP address is 192.168.1.5, then you'd use this code:
Code: Select all
scrcpy --tcpip=192.168.1.5
If you have a screen lock, simply type in the passcode and press enter to unlock your phone.
My preference is to connect to my phone without turning on the screen, so I use
Code: Select all
scrcpy --tcpip=192.168.1.5 --turn-screen-off --power-off-on-close
This connects to my phone without turning on the screen, lets me do what I need, and then locks it when I close the scrcpy window.
More info and options here:
https://github.com/Genymobile/scrcpy
and here: