Ubuntu 26.04 Setup
Install Vim and Configure Package Mirrors
Change the apt mirror to the Tsinghua University Mirror for faster downloads.
Update the system
Chinese Input Method
sudo apt update
sudo apt install im-config fcitx5 fcitx5-chinese-addons fcitx5-config-qt fcitx5-frontend-all
im-config -n fcitx5
Logout/login.
Then:
Add:
Go to Settings → Apps, and select fcitx5 and you should see an autostart toggle. Enable it.
Or you can try to add the entry into ~/.config/autostart manually as well.
NVIDIA Driver
If you encounter any issues during Ubuntu setup or configuration, please refer to the related articles in the Ubuntu category for detailed solutions and troubleshooting notes.
Troubleshooting NVIDIA Driver on Ubuntu 26.04
Install the clipboard utilities needed for nvim
Neovim actually doesn't have its own built-in mechanism for talking to the system clipboard. Instead, it acts like a manager and outsources the job to external clipboard utilities installed on your OS.
You just need to install the dedicated clipboard utility for Wayland. It bridges the gap between terminal applications and the Wayland compositor.
VPN Software
The best VPN/proxy client for Ubuntu in 2026 is Clash Verge Rev, which provides an Ubuntu/Debian .deb package.
Install Nerd Fonts
Download fonts from the Nerd Fonts Official Website.
(Recommendation: JetBrains Mono NF)
Method 1: Install fonts for the current user only
- Create the user font directory (if it doesn't exist):
- Move all font files (e.g.,
.ttf,.otf) into this folder: - Update the font cache:
Method 2: Install fonts system-wide (for all users)
- Create a system font directory:
- Copy font files into the directory:
- Update the system font cache: ```bash sudo fc-cache -fv
Install Zsh & Oh My Zsh
Follow this guide to install zsh and Oh My Zsh.
Install Starship Prompt (Optional!!)
Install the starship prompt by downloading the script and modifying your shell's configuration file (e.g., ~/.zshrc). Please refer to the Starship Official Guide for detailed instructions.
Install Neovim
Download the latest pre-built release of neovim and follow the steps on the official website.
NOTE: We download the pre-built release from the official website instead of installing via apt. The version available in Ubuntu's default repository is often outdated and lacks newer features or fixes.
Setting up C/C++/Haskell Development Toolchain
Because the process of setting up the environment warrants another standalone blog. Please click this link to see another note dedicated to LazyVim setup for C, C++, and Haskell.
Setting Up a Shared NTFS Partition Between Ubuntu 26.04 and Windows 11
The recommended approach is to mount the NTFS partition automatically in Ubuntu using /etc/fstab, instead of manually mounting it with sudo mount every time.
1. Disable Windows Fast Startup
Before accessing an NTFS partition from Linux, disable Windows Fast Startup.
Fast Startup uses a partial hibernation mechanism. If Windows is not completely shut down, Linux may detect the NTFS partition as "unclean" and mount it read-only or refuse to mount it.
Option 1: Disable hibernation completely
Open Windows Terminal / Command Prompt as Administrator:
This disables Windows hibernation and Fast Startup. Then perform one normal Windows shutdown afterward.
Option 2: Disable only Fast Startup
Go to:
Control Panel
→ Hardware and Sound
→ Power Options
→ Choose what the power buttons do
→ Change settings that are currently unavailable
→ Disable "Turn on fast startup"
2. Identify the NTFS Partition
Boot into Ubuntu and list storage devices:
Example:Record:
-
UUID
-
Partition label (optional)
Use the UUID rather than /dev/nvme0n1p4, because device names may change.
3. Find Your Ubuntu User and Group IDs
NTFS does not store Linux ownership information.
Find your user and group IDs:
Typical output:
These values will be used later.
4. Create the Mount Point
Create a permanent mount directory:
This directory is only the mount point. The actual files will appear here after mounting.
5. Configure Automatic Mounting with /etc/fstab
Backup the current configuration:
Edit:
Add:
UUID=YOUR_UUID /mnt/windowsshared ntfs3 uid=1000,gid=1000,fmask=0133,dmask=0022,windows_names,nofail,x-systemd.automount 0 0
Replace YOUR_UUID with the UUID obtained from lsblk -f.
Explanation of Mount Options
-
ntfs3: Uses the modern Linux kernel NTFS driver. -
uidandgid:e.g.
uid=1000,gid=1000Makes files appear owned by your Ubuntu user. -
fmask: Controls permissions of files.e.g.
fmask=0133results in-rw-r--r--for normal files. This prevents all NTFS files from appearing executable. -
dmask: Controls permissions of directories.e.g.
dmask=0022results indrwxr-xr-xfor directories. -
windows_names:Prevents Linux from creating filenames that Windows cannot handle.
e.g.
-
nofailAllows Ubuntu to boot even if the partition is unavailable.
-
x-systemd.automountMounts the partition automatically when it is accessed instead of blocking boot.
6. Test the Configuration
Reload systemd:
Mount everything from /etc/fstab:
Check the contents:
Verify:
7. Test Read and Write Access
Create a temporary file:
Remove it:
If both work, Ubuntu has read/write access.
8. Optional: Create a Shortcut
You may create a symbolic link in your home directory:
Then:
will access the shared partition.
To remove the symbolic link:
This removes only the shortcut, not the data.
Check before deleting:
Example:
9. Why Files Previously Appeared Green in ls
When the partition was mounted manually:
files may have appeared green.
This was not because Linux could not understand the file type.
The reason was usually that NTFS files were presented with Linux executable permissions:
Ubuntu's ls --color displays executable files in green.
The file contents did not change.
The mount options:
fix this by presenting:
for ordinary files.
10. Troubleshooting
Partition mounts as read-only
The usual cause is that Windows was not fully shut down.
Boot Windows and run:
Replace D: with the actual Windows drive letter.
Then shut Windows down completely.
Do not force-mount damaged NTFS partitions
Avoid:
If NTFS is dirty, repair it from Windows instead.
Final Recommended Configuration
For a normal Ubuntu 26.04 + Windows 11 dual-boot system:
Windows:
Ubuntu /etc/fstab:
UUID=<partition UUID> /mnt/windowsshared ntfs3 uid=1000,gid=1000,fmask=0133,dmask=0022,windows_names,nofail,x-systemd.automount 0 0
This provides:
- Automatic mounting
- Read/write access
- Correct Linux permissions
- Windows-compatible filenames
- Safe dual-boot behavior