How to project Android phone screen to your ubuntu computer?
The easiest and most reliable way to project and control your Android screen on Ubuntu is using Scrcpy. It requires enabling USB Debugging on your phone, connecting with a USB cable, and running a simple command.
1. Enable Developer Options on Android
- Open your phone's Settings, go to About Phone (or System), and tap the Build Number 7 times.
- Go back to the main Settings menu, open Developer Options, scroll down, and toggle USB Debugging to ON.
2. Install Scrcpy on Ubuntu
Open
your Ubuntu terminal (Ctrl+Alt+T) and install Scrcpy and the Android
Debug Bridge (ADB) tool using the default package manager:
bash
sudo apt update
sudo apt install scrcpy adb -y
Use code with caution.
3. Connect and Mirror
- Plug your Android phone into your Ubuntu PC using a USB cable.
- A prompt will appear on your phone asking to authorize the computer. Select Always allow from this computer and tap Allow.
- In your Ubuntu terminal, simply type:
bash
scrcpy
Use code with caution.
A
window will instantly pop up showing your phone's screen. You can now
control your phone using your computer's mouse and keyboard.
For a quick visual breakdown of the installation and device setup steps:
For a quick visual breakdown of the installation and device setup steps:
Show all
Yes, I want to project wirelessly instead of using a USB cable, please.
To project your Android screen wirelessly using Scrcpy, your phone and Ubuntu computer must be connected to the same Wi-Fi network. You will still need a USB cable for the initial setup every time your phone restarts.
1. Enable Wireless ADB Mode
- Connect your phone to your Ubuntu PC with a USB cable.
- Open your terminal and find your phone's IP address by running:(Note down the IP address shown, for example:bash
adb shell ip route | awk '{print $9}'Use code with caution.192.168.1.50) - Set the ADB connection mode to TCP/IP over port 5555:bash
adb tcpip 5555Use code with caution.
2. Disconnect and Run Wirelessly
- Unplug the USB cable from your phone.
- Connect your PC to your phone over Wi-Fi using the IP address from earlier:(Replacebash
adb connect 192.168.1.50:5555Use code with caution.192.168.1.50with your phone's actual IP address) - Start mirroring your screen:bash
scrcpy -eUse code with caution.
Troubleshooting Tip
If
the video lags or stutters over your Wi-Fi, you can lower the bitrate
and resolution by launching Scrcpy with this command instead:
bash
scrcpy --bit-rate 2M --max-size 1024
Use code with caution.
If you encounter any connection errors or want to learn how to automatically connect next time without typing the IP address, let me know!
Show all
AI Mode response is ready