System · Ubuntu Setup Notes

Jan 19, 2025 | Tech Software

Index
Index

Notes

Basics and Nvidia Drivers

  • To allow NVIDIA drivers to load at boot time on a Thinkpad, configure in the boot menu
    • Security > Secure Boot > Secure Boot [off]
  • Try reinstalling Ubuntu w/o connecting to WIFI (no updates or 3rd-party software installation during the process) if the previously installed system does not enter the login page
  • Reboot if new drivers are installed

Intel Arc Drivers

On display Fractional Scaling, Google Chrome and VsCode may appear blurry, to resolve such issue:

  • on Google Chrome, in the address bar, type chrome://flags, find Preferred Ozone platform, select Wayland;
  • on VsCode, when launching from terminal, use code --ozone-platform=wayland; for the desktop icon to launch with such option, update its .desktop file as follows.

Alternatively, you can change system display platform from Wayland to X11 as follows. Note that it works fine on Ubuntu 22.04, but not very well on Ubuntu 24.04.

Generic Apps and Configs

  • LibreOffice to Chinese display, in Writer or any other app:
    • Tools -> Options -> Languages and Locales (expand downward) -> General -> User interface: -> Chinese (simplified) -> OK

Git Config and SSH

Basic Git configuration settings:

To test if SSH over the HTTPS port is possible, run the following SSH command; for reference, see official documentation Using SSH over the HTTPS port.

To set the port 443 connection in your SSH configuration file, edit the file at ~/.ssh/config (create one if there's none), and add this section:

You can test if this works by connecting once more to GitHub.com:

If git pull/push/clone freezes with http/https access, setup proxy (remove --global for local setup) as follows

Bash Git Prompt

Bash and Zsh Sourcing

  • Sourcing commands to be manually added to ~/.bashrc and ~/.zshrc

Cursor

  • Cursor download page
  • See also in Local File Copies, Version: 2.5.20-1771535021, Architecture: amd64

Warp

  • Official download page
  • See also in Local File Copies, Version: 0.2026.02.18.08.22.stable.02, Architecture: amd64

Google Chrome

  • Official download page
  • See also in Local File Copies, Version: 131.0.6778.264-1, Architecture: amd64
  • [Deprecated] to avoid Fcitx4 or IBUS pinyin disfunction in Chrome, you may hold Chrome upgrade

pCloud

Clash Verge

  • Official page
  • See also in Local File Copies, Version: Rev v2.4.2

Fcitx5 and Pinyin

No compatibility issues with web browsers, recommended over Fcitx 4 or IBUS. For reference, see muzing's post.

Install packages:

Change settings to use Fcitx 5

  • Settings > Region & Language > Manage Installed Languages
    • Install / Remove Languages > Chinese (simplified) [✓]
    • Keyboard input method system > Fcitx 5
    • Apply System-Wide
  • Log Out

Configure Fcitx 5:

  • Input Method > Available Input Method: > Pinyin > [<] > (✓)Apply
  • Global Options > Hotkey > Trigger Input Method: > Super + Left Alt > (✓)Apply

Configure auto startup on system login (the program doesn't configure auto startup by default):

  • Super > Startup Applications > Add
    • Name: > fcitx5
    • Command: > fcitx5
    • Comment: > fcitx5 input startup
    • Add
  • Close

To get a more native look (IBUS-like) for Fcitx5 Pinyin, try GNOME extension Input Method Panel.