04 July 2026

How to install Google Pinyin on Ubuntu 24.4

I want to install Google Pinyin on Ubuntu 24.4, but it says 'E: Unable to locate package fcitx5-googlepinyin'

The package fcitx5-googlepinyin does not exist. The original Google Pinyin engine (fcitx-googlepinyin) belongs to the legacy Fcitx 4 framework, which is no longer actively maintained.

On Ubuntu 24.04, the modern framework is Fcitx 5. Instead of a standalone Google Pinyin package, all Pinyin variants (along with a "Cloud Pinyin" feature that mimics Google's smart candidate suggestions) have been consolidated into a single package called fcitx5-chinese-addons.

Here is the correct, step-by-step method to install and configure it on Ubuntu 24.04.

Step 1: Install Fcitx 5 and the Chinese Addons

Open your terminal (Ctrl + Alt + T) and run the following command to update your package list and install Fcitx 5 along with its Chinese language engines:

Bash
sudo apt update
sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-frontend-gtk3 fcitx5-frontend-qt5

Step 2: Set Fcitx 5 as the System Input Method

By default, Ubuntu uses the IBus framework. You need to tell the system to switch to Fcitx 5:

  1. Run the input method configuration tool:

    Bash
    im-config -n fcitx5
    
  2. For the changes to properly hook into your desktop environment (especially under Wayland/GNOME), log out of your Ubuntu session and log back in (or simply restart your computer).

Step 3: Configure Pinyin and Cloud Suggestions

Once you log back in, you can add the Pinyin keyboard and enable the smart cloud engine:

  1. Open your application launcher, search for Fcitx 5 Configuration (or run fcitx5-configtool in the terminal).

  2. Under the Input Method tab, click the + (Add) button.

  3. Uncheck “Only Show Current Language” if you are using an English system. Search for Pinyin, select it, and add it to your active input methods.

  4. To get the smart word predictions that Google Pinyin used to have, switch to the Addons tab in the configuration window.

  5. Look for Cloud Pinyin, click its configuration gear icon, and ensure it is enabled (you can set the cloud provider to Baidu or Google depending on your connectivity).

Step 4: Start Typing

You can now toggle between your standard keyboard layout and your new Pinyin layout using the default shortcut: Ctrl + Space.


Gemini is AI and can make mistakes.


03 July 2026

How to project Android phone screen to your ubuntu computer?

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
  1. Open your phone's Settings, go to About Phone (or System), and tap the Build Number 7 times.
  2. 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
  1. Plug your Android phone into your Ubuntu PC using a USB cable.
  2. A prompt will appear on your phone asking to authorize the computer. Select Always allow from this computer and tap Allow.
  3. 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:
If you want to project wirelessly instead of using a USB cable, let me know, and I can give you the steps to switch ADB to TCP/IP mode.
  • How to screen mirror android phone to Ubuntu PC? [duplicate]
    scrcpy for Mirroring: scrcpy allows screen mirroring and device control of Android devices on Ubuntu via USB or TCP/IP. The Androi...
    Ask Ubuntu
  • Mirror Android Phone To Ubuntu Desktop Using scrcpy 2.4
    When connecting your phone to the computer, check the 'always allow from this computer' option and then tap 'allow'.
    Related video thumbnail
    3m
    YouTube·joezomby1
  • Mirror Android Screen To Ubuntu 22.04 Desktop
    When connecting the phone to the computer, a popup will appear; select "always allow USB debugging" and then "allow".
    Related video thumbnail
    2m
    YouTube·joezomby1
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
  1. Connect your phone to your Ubuntu PC with a USB cable.
  2. Open your terminal and find your phone's IP address by running:
    bash
    adb shell ip route | awk '{print $9}'
    
    Use code with caution.
    (Note down the IP address shown, for example: 192.168.1.50)
  3. Set the ADB connection mode to TCP/IP over port 5555:
    bash
    adb tcpip 5555
    
    Use code with caution.
2. Disconnect and Run Wirelessly
  1. Unplug the USB cable from your phone.
  2. Connect your PC to your phone over Wi-Fi using the IP address from earlier:
    bash
    adb connect 192.168.1.50:5555
    
    Use code with caution.
    (Replace 192.168.1.50 with your phone's actual IP address)
  3. Start mirroring your screen:
    bash
    scrcpy -e
    
    Use 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!
  • Do I have to plug in the usb cable to activate wireless connection every time? · Issue #4198 · Genymobile/scrcpy
    Jul 28, 2023 — You must connect an USB cable only once after each phone reboot (you can't keep the TCP/IP mode across reboots without a rooted de...
    GitHub
  • How to Tether Any Smartphone to Linux for Mobile Internet
    Sep 14, 2023 — The methods described here require you to connect the mobile device to your PC with a working USB cable before activating tetherin...
    MakeUseOf
  • Connecting to Android Devices Over Wi-Fi in Android Studio
    Nov 30, 2024 — This guide will walk you through the steps required to set up ADB over Wi-Fi. Step-by-Step Guide 1. Enable Wireless Debugging To b...
    Repeato
Show all
AI Mode response is ready