Ubuntu installs scrcpy to complete mobile phone screen projection and control (another way to use QQ WeChat in Ubuntu)

Ubuntu installs scrcpy to complete mobile phone screen projection and control (another way to use QQ WeChat in Ubuntu)

Scrcpy Installation

snap install scrcpy

adb service installation

sudo apt-get install android-tools-adb

adb configuration

Check the USB ID of your phone

Connect your phone to your computer via USB

lsusb


Find your phone's ID number, mine is 04e8:6860

Creating a device file

Change all 04e8 below to your own identification number, and the android.rules file name can be customized

mkdir ~/.android
echo 0x04e8 > ~/.android/adb_usb.ini
sudo touch /etc/udev/rules.d/android.rules
sudo gedit /etc/udev/rules.d/android.rules

In the file enter:

SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"

Modify file permissions after saving

sudo chmod 777 /etc/udev/rules.d/android.rules

Start adb service

service udev restart
adb start-server
adb devices 


If you have a device, it means it is successful. If not, check whether the developer mode of your phone is turned on. The location of the developer mode of different phones is different. You can search on Baidu

Using scrcpy

Command line input

scrcpy

The interface will pop up


How to use scrcpyClick, slide, and long press the middle mouse button to return to the main screenRight click to returnCopy text from computer to mobile phone: After copying on the computer, press Ctrl+Shift+V on the mobile screen projection interface to copy to the mobile phone clipboard, and then paste it on the mobile phoneMobile phone to computer: Copy to the clipboard on the mobile phone, press Ctrl+C on the screen projection interface, and then paste it on the computerTransfer files normally: Copy and paste directly in the file manager


Finally, I can use QQ and WeChat on Ubuntu without having to frequently switch between the keyboard and the phone.

Summarize

The above is what I introduced to you about installing scrcpy in Ubuntu to complete mobile phone screen projection and control (another way to use QQ and WeChat in Ubuntu). I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • How to control the permissions of ordinary users when mounting ext4 formatted hard disk in Ubuntu 16.04

<<:  How to optimize logic judgment code in JavaScript

>>:  Detailed analysis of MySQL master-slave delay phenomenon and principle

Recommend

How to use ES6 class inheritance to achieve a gorgeous ball effect

Table of contents introduce Implementation steps ...

Linux common text processing commands and vim text editor

Today, let's introduce several common text pr...

Examples of two ways to implement a horizontal scroll bar

Preface: During the project development, we encou...

How to shut down/restart/start nginx

closure service nginx stop systemctl stop nginx s...

Summary of common tool examples in MySQL (recommended)

Preface This article mainly introduces the releva...

A brief discussion on the principle of shallow entry and deep exit of MySQL

Table of contents 1. Overview of the page 2. Infi...

Two ways to clear table data in MySQL and their differences

There are two ways to delete data in MySQL: Trunc...

JavaScript countdown to close ads

Using Javascript to implement countdown to close ...

Summary of frequently used commands for Linux file operations

0. New operation: mkdir abc #Create a new folder ...

A brief analysis of the differences between px, rem, em, vh, and vw in CSS

Absolute length px px is the pixel value, which i...

Native JS to implement real-time clock

Share a real-time clock effect implemented with n...

Practice of using Tinymce rich text to customize toolbar buttons in Vue

Table of contents Install tinymce, tinymce ts, ti...