Page 1 of 1

Can I use Scrcpy in EasyOS?

Posted: Sun Apr 10, 2022 1:26 pm
by jesudia

Is posible add scrcpy in easyos last version ?


Re: Can I use Scrcpy in EasyOS?

Posted: Mon Apr 11, 2022 11:54 am
by BarryK

Yes, it looks like Easy has all the dependencies:

https://github.com/Genymobile/scrcpy/bl ... r/BUILD.md


Re: Can I use Scrcpy in EasyOS?

Posted: Tue Apr 12, 2022 7:59 am
by jesudia

How ? Please


Re: Can I use Scrcpy in EasyOS?

Posted: Tue Apr 12, 2022 10:25 am
by p310don

@jesudia follow these instructions should work the same in EasyOS:

viewtopic.php?p=54251


Re: Can I use Scrcpy in EasyOS?

Posted: Tue Apr 12, 2022 11:01 am
by jesudia

These instructions are for Fatdog and debian-ubuntu but for easyos last versions how would be ?


Re: Can I use Scrcpy in EasyOS?

Posted: Wed Apr 13, 2022 12:07 am
by BarryK

Note, EasyOS already has adb, so everything should be good to go.


Re: Can I use Scrcpy in EasyOS?

Posted: Thu Apr 14, 2022 11:23 am
by jesudia

Is posible install scrcpy.deb ? If not where is the file for install ?


Re: Can I use Scrcpy in EasyOS?

Posted: Thu Apr 14, 2022 8:12 pm
by OscarTalks

Scrcpy
Load the EasyOS devx via Menu > Setup > SFSget
Grab the source code from https://github.com/Genymobile/scrcpy/releases/tag/v1.23
Extract the source tarball archive
Enter extracted source top level directory
Open the script install_release.sh as text
Add --prefix=/usr to the meson options (Line 15)
( Now reads meson "$BUILDDIR" --prefix=/usr --buildtype=release --strip -Db_lto=true \ )
Run the script from the directory with ./install_release.sh
That installs scrcpy
Looks like adb is a daemon - so if necessary, start it - try adb & in terminal
My problem is that I don't normally use an android phone
So don't have one available to connect and test
When I run scrcpy in terminal it returns:-

Code: Select all

# scrcpy
scrcpy 1.23 <https://github.com/Genymobile/scrcpy>
ERROR: Could not find any ADB device
ERROR: Server connection failed
#

Note - see below for .pet of scrcpy by BarryK, the one I attached previously has now been removed.


Re: Can I use Scrcpy in EasyOS?

Posted: Mon Apr 18, 2022 3:18 am
by BarryK

@jesudia ,
I have also compiled scrcpy and created a PET:

https://bkhome.org/news/202204/scrcpy-d ... evice.html

A photo:

scrcpy1.jpg
scrcpy1.jpg (81.7 KiB) Viewed 2359 times

I can see various scenarios where this would be very useful, for example...

Clipboard copy and paste.

Snapshots of the phone screen.

Creating instructional video doing something on phone.

Drag and drop a file to phone.

Use computer keyboard for typing input.


Re: Can I use Scrcpy in EasyOS?

Posted: Mon Apr 18, 2022 7:47 am
by p310don

I can see various scenarios where this would be very useful, for example...

I have found a few software vendors are making free android versions of their programs, otherwise they're SAAS models that cost $X per month. I use one in particular on my phone, that I don't want to pay for. It took me about an hour to do what needed to be done on my phone, now it takes me about ten minutes on my phone via scrcpy. Most of the extra time was undoing my mistakes from fat fingers on a touch screen.


Re: Can I use Scrcpy in EasyOS?

Posted: Mon Apr 18, 2022 9:43 am
by BarryK

I see the the scrcpy man page, it also supports APK drag and drop. You drag it onto the phone screen, and it installs. Cool.

Yeah, I also have apps on my phone that aren't available for Linux, paid or free.

"Safe-in Cloud" is one of them, a great password manager.


Re: Can I use Scrcpy in EasyOS?

Posted: Sun Apr 24, 2022 2:00 pm
by jesudia

Thank you very much by your PET of scrcpy, i would like make sfs of others .deb, i do not know if this IS posible


Re: Can I use Scrcpy in EasyOS?

Posted: Sun Apr 24, 2022 2:03 pm
by jesudia

I would like know how do .PET of .deb for easyos, i am interested for do this with puffin-internet-terminal.deb


Re: Can I use Scrcpy in EasyOS?

Posted: Mon Apr 25, 2022 2:55 am
by BarryK
jesudia wrote: Sun Apr 24, 2022 2:03 pm

I would like know how do .PET of .deb for easyos, i am interested for do this with puffin-internet-terminal.deb

You can right-click on a .deb file and use Xarchive to open it up. Make sure you expand into a folder, named like <name>-<version>

Xarchive will also create folder <name>-<version>/DEBIAN, and you need to look in there for anything useful, such as the post-install script -- see if you need to apply anything. Then delete the DEBIAN folder.

Then you can use 'dir2pet' utility.

# dir2pet <name>-<version>


Re: Can I use Scrcpy in EasyOS?

Posted: Sun May 01, 2022 11:58 am
by jesudia

IS posible install this in easyos last versión ?

https://1.1.1.1/


Re: Can I use Scrcpy in EasyOS?

Posted: Sun May 01, 2022 1:04 pm
by BologneChe

@jesudia
You can get this in the browsers settings. I know it's possible in Firefox, Chrome/Chromium.

For Firefox : https://support.mozilla.org/fr/kb/dns-via-https-firefox


Re: Can I use Scrcpy in EasyOS?

Posted: Fri May 06, 2022 3:02 pm
by BarryK

There is now a GUI frontend for scrcpy:

https://bkhome.org/news/202205/easyshar ... aring.html

es-screen-sharing-android.png
es-screen-sharing-android.png (31.39 KiB) Viewed 1438 times

It is really neat that you can enable screen-sharing and file-sharing at the same time, as shown by the two ticked checkboxes. I tested with a video playing on the phone, and simultaneously drag a file from phone to PC, doesn't seem to be any conflict.

This will be in the next release of EasyOS, probably version 3.4.8.


Re: Can I use Scrcpy in EasyOS?

Posted: Mon May 09, 2022 6:48 pm
by puptex

I am not getting scrcpy tcpip to work using Barrys pet. The USB connection works fine but I get the following when I try using tcpip

Code: Select all

scrcpy --tcpip=192.168.0.16
scrcpy 1.23 <https://github.com/Genymobile/scrcpy>
INFO: Connecting to 192.168.0.16:5555...
unable to connect to 192.168.0.16:5555:5555
ERROR: Could not connect to 192.168.0.16:5555
ERROR: Server connection failed

anyone getting this to work?
Update:
Ok, so I got this to work on my Moto I suspect certain phones have somewhat different behavior. My laptop is connected by ethernet and my phone connected to wifi on same network.

Went to https://github.com/Genymobile/scrcpy and they have a manual connection procedure

Code: Select all

Manual

Alternatively, it is possible to enable the TCP/IP connection manually using adb:

    Plug the device into a USB port on your computer.
    Connect the device to the same Wi-Fi network as your computer.
    Get your device IP address, in Settings → About phone → Status    
    Enable adb over TCP/IP on your device: adb tcpip 5555.
    Unplug your device.

    Connect to your device: adb connect DEVICE_IP:5555 (replace DEVICE_IP with the device IP address you found).

    Run scrcpy as usual.

So after performing the above procedure to do a new connection I do
# adb start-server
# adb connect 192.168.0.16:5555
# scrcpy

Thats it.