Install scrcpy in Ubuntu to complete the screen casting and control of mobile phone (another way for Ubuntu to use QQ wechat)

Time:2021-7-12

Scrcpy installation

snap install scrcpy

ADB service installation

sudo apt-get install android-tools-adb

ADB configuration

Check the phone’s USB identification number

The mobile phone connects to the computer via USB

lsusb

I’m 04e8:6860

Create device file

All of the following04e8Change it to your ID,android.rulesThe 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

Enter in the file:


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

Modify file permissions after saving


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

Start the ADB service


service udev restart
adb start-servert
adb devices

If you don’t see if the developer mode of your own mobile phone is turned on or not, the developer mode of different mobile phones is located in different places, so you can choose Baidu by yourself

Using scrcpy

Command line input

scrcpy

The interface will pop up

How to use scrcpy: left click, slide and long press the middle mouse button to return to the main screen. Right click to return to copy text from computer to mobile phone: after copying from computer, pressCtrl+Shift+VCopy to the mobile phone clipboard, and then paste the mobile phone to the computer: copy the mobile phone to the clipboard, and pressCtrl+CKey, and then to the computer normal paste transfer file: directly copy and paste in the file manager

Finally, you can use QQ and wechat on Ubuntu. You don’t need to switch between keyboard and mobile phone frequently

summary

The above is Xiaobian’s introduction of installing scrcpy in Ubuntu to complete the screen casting and control of mobile phone (another way of using QQ wechat in Ubuntu). I hope it can help you. If you have any questions, please leave me a message and Xiaobian will reply you in time. Thank you very much for your support to developer!
If you think this article is helpful to you, please reprint, please indicate the source, thank you!