Requirements
- There are at least version 5.0 of Android devices
- We need to enable ADB debugging. On some devices, you also need to enable USB debugging in safe mode options. In fact, this feature is critical for USB devices through Android management.
- ADB and Fastboot installed.
To download and install it, simply run the following command:
After installation, use the following command to check the version of ADB:
Output similar to the following results:
Android Debug Bridge version 1.0.39
Version 1:8.1.0+r23-5~18.04
Installed as /usr/lib/android-sdk/platform-tools/adb
Connected to the computer via the USB android device may also be connected by wireless. However, this connection has no effect.
Step 1, install scrcpy snap package.
Ubuntu 16.04 provides Snapd package, so no installation. If you are installing Scrcpy, run the following command directly:
The snapshot package has been updated to the latest available version of scrcpy. It also installs a snapshot of the core operating procedures required dependencies.
Step 2, connect the phone via USB.
When you're done, you can simply use the USB cable to connect the phone.
Step 3, start Scrcpy.
Then run the following command from a terminal:
scrcpy
Please note, Android device's screen must be unlocked. In addition, by accepting the pop-up window on the phone to confirm the USB connection.
Start scrcpy
After the program starts, you can manage and transfer Android screen in Ubuntu.
To stop Scrcpy server, simply run this command.
scrcpy.adb kill-server
If the final decision to uninstall it, run it from the terminal:
sudo snap remove scrcpy
to sum up
Finally, we have learned how to cast your Android screen in Ubuntu 18.04. As you can see, this is a simple process that allows you to manage Android devices from the Ubuntu computer.