Can I use Scrcpy in EasyOS?

Moderator: BarryK

Post Reply
jesudia
Posts: 50
Joined: Sat Feb 13, 2021 11:03 am
Been thanked: 6 times

Can I use Scrcpy in EasyOS?

Post by jesudia »

Is posible add scrcpy in easyos last version ?

User avatar
BarryK
Posts: 2738
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 135 times
Been thanked: 745 times

Re: Can I use Scrcpy in EasyOS?

Post by BarryK »

Yes, it looks like Easy has all the dependencies:

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

jesudia
Posts: 50
Joined: Sat Feb 13, 2021 11:03 am
Been thanked: 6 times

Re: Can I use Scrcpy in EasyOS?

Post by jesudia »

How ? Please

User avatar
p310don
Posts: 365
Joined: Tue Dec 03, 2019 7:17 am
Location: Brisbane, Australia
Has thanked: 72 times
Been thanked: 104 times

Re: Can I use Scrcpy in EasyOS?

Post by p310don »

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

viewtopic.php?p=54251

jesudia
Posts: 50
Joined: Sat Feb 13, 2021 11:03 am
Been thanked: 6 times

Re: Can I use Scrcpy in EasyOS?

Post by jesudia »

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

User avatar
BarryK
Posts: 2738
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 135 times
Been thanked: 745 times

Re: Can I use Scrcpy in EasyOS?

Post by BarryK »

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

jesudia
Posts: 50
Joined: Sat Feb 13, 2021 11:03 am
Been thanked: 6 times

Re: Can I use Scrcpy in EasyOS?

Post by jesudia »

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

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: Can I use Scrcpy in EasyOS?

Post 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.

Last edited by OscarTalks on Sun Apr 24, 2022 3:49 pm, edited 1 time in total.
User avatar
BarryK
Posts: 2738
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 135 times
Been thanked: 745 times

Re: Can I use Scrcpy in EasyOS?

Post 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 2791 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.

User avatar
p310don
Posts: 365
Joined: Tue Dec 03, 2019 7:17 am
Location: Brisbane, Australia
Has thanked: 72 times
Been thanked: 104 times

Re: Can I use Scrcpy in EasyOS?

Post 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.

User avatar
BarryK
Posts: 2738
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 135 times
Been thanked: 745 times

Re: Can I use Scrcpy in EasyOS?

Post 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.

jesudia
Posts: 50
Joined: Sat Feb 13, 2021 11:03 am
Been thanked: 6 times

Re: Can I use Scrcpy in EasyOS?

Post 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

jesudia
Posts: 50
Joined: Sat Feb 13, 2021 11:03 am
Been thanked: 6 times

Re: Can I use Scrcpy in EasyOS?

Post by jesudia »

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

User avatar
BarryK
Posts: 2738
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 135 times
Been thanked: 745 times

Re: Can I use Scrcpy in EasyOS?

Post 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>

jesudia
Posts: 50
Joined: Sat Feb 13, 2021 11:03 am
Been thanked: 6 times

Re: Can I use Scrcpy in EasyOS?

Post by jesudia »

IS posible install this in easyos last versión ?

https://1.1.1.1/

User avatar
BologneChe
Posts: 510
Joined: Sun Aug 23, 2020 12:29 am
Location: Stoneham, Québec
Has thanked: 318 times
Been thanked: 140 times

Re: Can I use Scrcpy in EasyOS?

Post 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

Born to lose; live to win

User avatar
BarryK
Posts: 2738
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 135 times
Been thanked: 745 times

Re: Can I use Scrcpy in EasyOS?

Post 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 1872 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.

puptex
Posts: 4
Joined: Fri Apr 29, 2022 12:56 pm
Has thanked: 1 time

Re: Can I use Scrcpy in EasyOS?

Post 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.

Post Reply

Return to “EasyOS”