How to remotely display my Android on my PC?
Solution 1
Scrcpy
Scrcpy is an open source alternative that sounds promising, but I get across this bug. I didn't want to use TeamViewer, LogMeIn or AirDroid.
This alternative also let you remotely use the phone from Ubuntu.
-
Install adb:
sudo apt install adb
. - Install scrcpy (if you meet the requirements):
brew install scrcpy
(yes, brew) orapt install scrcpy
. -
Enable adb debugging, the device should be listed on
adb devices
. Maybe you need to move to PTP and a little more.
When you get the message the Allow USB debugging? The computer's RSA key fingerprint is: [a fingerprint] is possible to check it with following command (the public key might be in ~/.android
or ~/snap/scrcpy/current/.android/
):
cut -d" " -f1 adbkey.pub | openssl base64 -A -d -a | openssl md5 -c
Also, scrcpy --help
:
- Tap BACK, HOME and APP_SWITCH with these shortcuts.
- scrcpy 1.9+: Ctrl + o turn device screen off (keep mirroring). Bidirectional shared clipboard.
- scrcpy 1.10+: use it wirelessly.
- scrcpy 1.12+: Ctrl + r rotate the screen.
The project is very active, keep track of releases and update often.
If you like GUIs, try guiscrcpy (source), a scrcpy front-end written in Python pip3 install --upgrade guiscrcpy --user
. Maybe some day will be the open source alternative to Microsoft's Your Phone.
Screen Stream over HTTP
A nice open source alternative, also on F-Droid.
LiveScreen
Easy and no sign up crap. Just install it and on the app switch screen sharing on:
Then on your browser (hopefully Firefox) pointing to your mobile's IP:
Furthermore
- Nice related AskUbuntu answer.
- Waydroid or Anbox, both a container-based approach to boot a full Android system on a regular GNU/Linux system
Solution 2
You can use Teamviewer (sign-up needed)
you will get a secure connection between them and are able to control the screen and phone fully.
Solution 3
I was able to do it easily with Ashot. It's an open source project, programmed in Java, so you just download and run (assuming you have Android Studio already set up).
When you extract the folder, run java -jar AShot-1.1.jar
. It will ask you for the Android SDK. Browse to it, and select your path (something like /home/yourUserName/Android/Sdk/
). It should connect automatically and display the Android screen that is connected via USB. If you get an error in connection, copy the adb
executable from platform-tools/
to tools/
and try again.
To copy:
cd Android/Sdk
cp platform-tools/adb tools/
It has a slight delay, so it's not good for streaming video, but good enough for presentations.
Related videos on Youtube
JulianLai
Updated on September 18, 2022Comments
-
JulianLai almost 2 years
There is a thing which is called miracast, it can mirror the display of the Android phone to another monitor, but my screen doesn't have this function, am I possible to do it in Ubuntu?
-
Jos almost 8 yearsTake a look at Airdroid.
-
Liso over 7 yearsIs this topic still up? @JulianLai
-
-
JulianLai almost 8 yearsThanks, but is there any way to do it without Chrome browser?
-
nsandersen over 7 yearsThe Google Cast plugin in Chrome appears to be for sending rather than receiving?
-
Adam Harrison over 7 yearsYes you need the app for sending
-
fghj almost 7 yearsThis plugin not supported anymore
-
munish about 4 yearsScrcpy works ...it works on amazon fire also