How to cast Android screen in Ubuntu 18.04

Windows Articles

Configure Samba File share Services with Ubuntu 20.04 LTS

Here, Today! let's discuss samba file share service with Ubuntu 20.04 LTS. If you need to share files between Linux and MS Windows...

Install Matomo on Ubuntu 20.04

Hello, friends. In this post, you will learn how to install Matomo on Ubuntu 20.04. It's quite useful to measure the traffic to our...

How to change DNS in Windows 10

Hi! Today we will talk a bit about networks. In fact, we will touch on a topic related to connectivity. Specifically we will see...

The new Windows 10 file explorer will arrive with 21H2 update.

Hello! Microsoft does not stop working (except at Christmas) to continue polishing to Windows 10. In fact, users are gradually receiving the 20H2 update....

How to create an FTP server in Android

Hello! How are you? Currently sharing files from your PC to Android can be more comfortable and easy, without the need to use a...

Hey, what’s up. Android is the most widely used mobile operating system in the world. Also, it’s an open-source system run by Google, but it’s based on Linux. Currently, its most recent version is number 10. On the other hand, the possibility of casting the screen is present since version 5.0. Well, in this post we will see how to cast an android screen in Ubuntu 18.04. With this intention, we’ll use Scrcpy. This is a free, open-source application that allows you to view and control Android devices connected via USB or wirelessly. It offers 30 ~ 60 FPS with a resolution that can go up to 1920×1080. In addition, the communication between the server and the client is done through ADB. But perhaps its most interesting feature is that it does not require Root on android. So let’s get down to business.

Prerequisites

  • An Android device with at least 5.0 version
  • It is necessary to enable ADB debugging. On some devices, it is also necessary to enable USB debugging in the security options. In fact, this function is essential to manage the Android device via USB.
  • ADB and Fastboot installed. To download and install it, simply run this command:
sudo apt-get install android-tools-adb android-tools-fastboot

After installation, check the version of ADB with the following command:

adb version

We must obtain a result similar to this:

  • An android device connected to the computer via USB It is also possible to connect via wireless. However, the connection loses effectiveness.

Step 1. Install the scrcpy snap package.

The Snapd package is present from Ubuntu 16.04 so there is no need to install it. So to install Scrcpy please run the following command:

sudo snap install scrcpy

This snap package is updated with the latest version of scrcpy available. It also installs the snap core dependency needed to run the program.

Step 2. Connect the phone via USB.

Once the preparations are done, you just have to connect the phone with the USB cable.

Step 3. Start Scrcpy.

Then from the terminal, you run the following command:

scrcpy

Please note that the Android device screen must be unlocked. Also, confirm the USB connection by accepting the pop-up window on your phone.

Starting scrcpy
Starting scrcpy

Once the program is started, it is possible to manage and transmit the Android screen in Ubuntu.

To stop the Scrcpy server, just run this command.

scrcpy.adb kill-server

And if you finally decide to uninstall it, then from the terminal run it:

sudo snap remove scrcpy

Conclusion

Finally, we have seen how to cast the android screen in Ubuntu 18.06. As you can see, it is a simple procedure that allows you to manage the android device from the Ubuntu machine. This is all for the moment, before saying goodbye I invite you to see our post about fixing errors in Windows 10.

More articles

4 COMMENTS

  1. This is fantastic! It works for me perfectly on mint and with a Samsung Galaxy Tab S3 . which refuses to connect to projectors and tvs.

    Mirroring to the mint laptop will allow me to project that way instead.

    I have tried many other solutions, this is the first one which works for me via cable.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Configure Samba File share Services with Ubuntu 20.04 LTS

Here, Today! let's discuss samba file share service with Ubuntu 20.04 LTS. If you need to share files between Linux and MS Windows...

Install Matomo on Ubuntu 20.04

Hello, friends. In this post, you will learn how to install Matomo on Ubuntu 20.04. It's quite useful to measure the traffic to our...

How to change DNS in Windows 10

Hi! Today we will talk a bit about networks. In fact, we will touch on a topic related to connectivity. Specifically we will see...

The new Windows 10 file explorer will arrive with 21H2 update.

Hello! Microsoft does not stop working (except at Christmas) to continue polishing to Windows 10. In fact, users are gradually receiving the 20H2 update....

How to create an FTP server in Android

Hello! How are you? Currently sharing files from your PC to Android can be more comfortable and easy, without the need to use a...
x