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

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:  Best Linux IP Address Management Tools In 2023

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

Open Source Alternatives To Windows Software In 2020 Open Source Alternatives To Windows Software In 2023 Linux
Useful Examples Of Find Command In Linux Useful Examples Of Find Command In Linux Linux
Uncommit Git's Last Commit | Undo The Last Commit Uncommit Git’s Last Commit | Undo The Last Commit Linux
How To Fix The dpkg Interrupted Error In Linux? [Updated] How To Fix The dpkg Interrupted Error In Linux? [Updated] Linux
Slackware 15.0 Officially Released Slackware 15.0 Officially Released Linux
Raspberry Pi OS (64-bit) Now Available Raspberry Pi OS (64-bit) Now Available Linux

Recent Posts

  • New Job Search October 10, 2025
  • 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

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]
  • Data Scientist (AI)

    • Washington DC
    • Promise
    • Full Time
  • User Experience Writer

    • New York, NY
    • Bask Health
    • Full Time
  • Automotive Service Writer

    • San Antonio, TX
    • Vara Chevrolet
    • Full Time
  • Auto Collision Service Writer

    • Sumter, SC
    • Better Collision Centers
    • Full Time
  • Data Scientist – TS/SCI Poly

    • Maryland
    • Plug
    • Full Time
  • Data Scientist

    • Washington DC (Remote)
    • NS2 Mission
    • Full Time
  • Service Writer

    • Henrico, VA
    • BIG O TIRES - RICHMOND (VA)
    • Full Time
  • Crypto Software Engineering Manager (Global – Remote – Non.US)

    • Austin, TX
    • Token Metrics
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme