Skip to content
Technology News Information & Jobs

Technology News Information & Jobs

Ubuntu Tutorials, Ubuntu How To , Linux Tips, Tech Jobs

  • Work with US
  • Search Jobs
  • Post a Job
  • Contact Us
  • Ubuntu
    • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Themes
  • Linux
  • Laptops
  • Tutorials
  • Job Dashboard
  • Toggle search form
How To Control Android Smartphone From Linux

How To Control Android Smartphone From Linux

Posted on March 19, 2019November 16, 2021 By admin No Comments on How To Control Android Smartphone From Linux

A new version of Scrcpy is available to download. Now it supports physical USB keyboard simulation on Android. In this tutorial post, We are going to talk about the method to control Android smartphones from Linux using a tool called scrcpy.

How To Control Android Smartphones From Linux

Scrcpy lets you display and control your Android smartphones. It is cross-platform and is available on GNU/Linux, Windows, and macOS.

One of the important requirements for this tool is that Android smartphones must have Android 5.0 or above installed.

How To Install Scrcpy In Linux

It’s kind of technical but not so hard too.  You need to build it manually in Linux. You need adb. It is available in the Android SDK platform tools. Meanwhile, The client also requires FFmpeg and LibSDL2.

For Debian/Ubuntu Operating system

Run the following command:

sudo apt install ffmpeg libsdl2-2.0.0
sudo apt install make gcc pkg-config meson ninja-build \
                 libavcodec-dev libavformat-dev libavutil-dev \
                 libsdl2-dev

sudo apt install openjdk-8-jdk

For the Fedora Operating system

Run the following command:

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install SDL2-devel ffms2-devel meson gcc make
sudo dnf install java

 

To build the server, You need to install the Android Studio and set ANDROID_HOME to its directory.

export ANDROID_HOME=~/android/sdk

There is also another option if you don’t want to build the server, you can use the prebuilt server.

READ More Relevant Stuff:  Linux Command Cheat Sheet For 2023: Download For Free

Now, Run the following command to clone the project:

git clone https://github.com/Genymobile/scrcpy
cd scrcpy

Now build it:

meson x --buildtype release --strip -Db_lto=true
cd x
ninja

Now, You can install scrcpy with the following command:

sudo ninja install

Now, To control Android smartphones, You need to plug in and run the following command:

scrcpy

How to run scrcpy wirelessly?

Steps to run scrcpy wirelessly:
1. Connect the device to the same Wi-Fi as your computer
2. Get your device IP address
3. Enable adb over TCP/IP on your device: adb tcpip 5555
4. Connect to your device: adb connect DEVICE_IP:5555 (replace DEVICE_IP)
5. Unplug your device
6. Run scrcpy as usual

To switch back to USB mode: adb usb

 

Linux Tags:android, linux, smartphone

Post navigation

Previous Post: List Of 30+ Best Linux Games That You Should Play in 2019
Next Post: Latest MATE 1.22 Linux Desktop Is Out Now

Related Posts

How To Upgrade To Ubuntu 23.04 From Ubuntu 22.10 How To Upgrade To Ubuntu 23.04 From Ubuntu 22.10 Linux
Fedora Linux 38 Beta Released Fedora Linux 38 Beta Released Linux
Mbps To MB/s Converter Mbps To MB/s Converter Linux
How To Fix /bin/rm: cannot execute [Argument list too long] How To Fix /bin/rm: cannot execute [Argument list too long] Fix
TUXEDO InfinityBook Pro 14 Gen7 Full Specifications TUXEDO InfinityBook Pro 14 Gen7 Full Specifications Laptops
Multiple Ways To Install Security Updates On RedHat And CentOS Multiple Ways To Install Security Updates On RedHat And CentOS Linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Enable Hibernate in Ubuntu 22.04 LTS May 20, 2024
  • Popular Ubuntu Games: Top 5 Games To Play March 17, 2024
  • WordPress | Your site doesn’t include support for the “generateblocks/container” block GenerateBlocks Plugin February 11, 2024
  • Ubuntu Autoremove Command Debian Autoremove Command February 10, 2024
  • How To Mount Windows 11 Shares on Debian Linux December 7, 2023
  • Anonymous Browsing 101: A Deep Dive Into Residential Proxies November 20, 2023
  • How To Correctly Install Uninstall Linux Ubuntu Nvidia Drivers Fast October 31, 2023
  • Ethical Web Design: The Dos and Don’ts October 28, 2023
  • Understanding the Role of Security Operations Center October 25, 2023
  • The Positive Effects of AI Tools and Online Services on Students Successful Essay-Writing Skills October 3, 2023
  • Linux Wget Examples September 27, 2023

Categories

  • Android
  • Apple
  • Blogs
  • Debian
  • Fix
  • Gadgets
  • Game
  • Google
  • How To Ubuntu
  • Internet
  • Laptops
  • Linux
  • Linux Commands
  • Linux Game
  • Linux Mint
  • News
  • Operating Systems
  • Security
  • Technology
  • Themes
  • Tools
  • Tutorials
  • Ubuntu
  • ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Windows 11
  • Wordpress
  • Search Jobs
  • Post a Job
  • Job Dashboard
  • Contact Us
  • About US
  • Cookie Policy
  • Terms and Conditions
  • Privacy Policy
  • Sitemap
  • Write For US

Tags

android apps centos ChatGPT command Commands Debian deepin Desktop docker Fedora fix game games Gaming gnome google kernel linux linux commands linux kernel Linux laptops Linux Mint Linux themes minecraft NVIDIA Python Raspberry Pi sysadmin themes ubuntu ubuntu 18.04 Ubuntu 18.04 LTS Ubuntu 20.04 ubuntu 20.04 lts Ubuntu 22.04 LTS Ubuntu games Ubuntu kernel ubuntu themes ubuntu tutorial VirtualBox Windows Windows 11 Wine WSL
itsubuntu.com is an Equal Opportunity Employer. For Advertisement, Jobs, Guest posts, and any other thoughts, email us at [email protected]
  • Technical Writer

    • Foster, CA
    • Manpower Engineering
    • Temporary
  • Business & Creative Writer – Contract, Project-Based

    • Wichita, KS
    • The Exceptional Plan
    • Full Time
  • Azure Cloud Engineer

    • Dallas, TX
    • The Intersect Group
    • Full Time
  • Technical Writer

    • Atlanta, GA
    • Robert Half
    • Full Time
  • HR/Office Staff

    • Oakland, CA
    • Studio T-SQ., Inc.
    • Full Time
  • Azure DBA

    • Washington DC
    • ADPMN Inc
    • Full Time
  • Senior Data Scientist I

    • New York, IA (Remote)
    • Carta
    • Full Time
  • Contract Technical Writer

    • Oak Ridge, TN
    • CPS/Comtech
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme