How to Display Android Screen on Ubuntu 20.04

How to Display Android Screen on Ubuntu 20.04

Displaying the Android screen on a computer is usually done for application demos, I need it to make a tutorial.

0.Configuration on Android

First activate the Developer Options feature on an Android phone. To activate it, go to Settings -> About phone -> Android version. Tap Android version 7 times.

Then come back and go back to Settings, already active Developer optons menu. I am using Redmi Note 8 with Android 9 (MIUI 11), the menu Developer options is located at Settings -> Additional settings.

Under Developer options, enable USB debugging.

Android - Developer options
Android – Developer options

1.Install adb

Install adb and fastboot on Ubuntu 20.04.

2.Install scrcpy

To display the Android screen on Ubuntu uses a utility application called scrcpy developed by Genymobile, the same company that developed Genymotion Android emulator.

3.Connect Android to Ubuntu

The next step is to connect your Android phone to Ubuntu using a USB cable.

4.Run scrcpy

After that run scrcpy through the terminal.

If successful, the scrcpy application window will open and display the Android screen.

The Android screen appears on Ubuntu
The Android screen appears on Ubuntu

5.Connection via Wireless Network

Displaying the Android screen on Ubuntu can also be connected via a wireless network connection. Connect the USB cable first, then run the command adb.

Enable tcpip on Android phone and open port 5555.

After that unplug the USB cable, then run adb again to connect via the IP address of the Android phone.

After that, run scrcpy again. The Android phone screen has appeared on Ubuntu via a wireless network.

6.Multiple Android Screens

scrcpy can display multiple Android phone screens at once.

Show all connected Android devices.

Example of the results of the above command.

Then run scrcpy followed by the serial number of the device.

Displays the screen of the Android phone connected with a USB cable.

Displays the screen of an Android phone connected to a wireless network.

2 Android screen
2 Android screen

7.Record Screen

scrcpy supports a feature to record the screen and save it in mp4 or mkv format.

Good luck 🙂

Default image
Musa Amin
I am a Linux System Administrator and also write many tutorials about Linux, Cloud, and Open Source. Hire me via email hai[at]musaamin.web.id.

Leave a Reply