It takes time setting up work computers. Some might be missed. To accelerate and standardize the post-Ubuntu-installatuion process, I create this post to take notes about the driver, software, and customization.
Table of Contents
Driver Installation
- Read for detail: “Build the Linux Kernel Module to Enable RTL8812AU USB Wireless Dongles”[1].
- Read for detail: “Build the Linux Kernel Module to Enable RTL8192EU USB Wireless Dongles”[2].
- Read for detail: “Build the Linux Kernel Module to Enable RTL8811CU/RTL8821CU USB Wireless Dongles”[3].
- Read for detail: “Install and Configure Linux Driver for Brother MFC-J430w”[4]. Although it’s written for OpenSuSE, they have similar steps. I will write a new tutorial for Ubuntu later this year.
Software Installation
Install from Ubuntu Software
- UFW
- GNOME Tweaks
- Psensor
- VLC
- GIMP
- Chromium
- System Profiler and Benchmark
I trust the source from “ubuntu-bionic-universe”, “ubuntu-bionic-updates-universe”, and “snap store”. Although some packages from the “snap store”[5] have permission issues[6], it usually provides a newer version.
Install from apt-get
- Read for Detail: “Install and Use Chinese Input in Ubuntu”[7].
- htop
- Xsane
- intel_gnu_top
For Ubuntu 20.04LTS and earlier, install Rime for fcitx, htop, and XSane:
$sudo apt-get update
$sudo apt-get install fcitx fcitx-rime htop xsane intel-gpu-tools
For Ubuntu 22.10LTS, both fcitx4 and fcitx5 are not fully compatible. Install Rime for IBus, htop, and XSane:
$sudo apt-get update
$sudo apt-get install ibus-rime htop xsane
$sudo gsettings set org.freedesktop.ibus.general switcher-delay-time -1
For Ubuntu 22.04LTS and later, install Rime for fcitx5, htop, and XSane:
$sudo apt-get update
$sudo apt-get install fcitx5 fcitx5-rime htop xsane intel-gpu-tools
For Google Pinyin, htop, and XSane:
$sudo apt-get update
$sudo apt-get install fcitx fcitx-googlepinyin htop xsane
For Mainline, add the repository before installation[8]:
$sudo add-apt-repository ppa:cappelikan/ppa
$sudo apt update
$sudo apt install mainline
Install from the Downloaded Package
- Chrome
- VirtualBox
- FreeFileSync
Open with “Software Install” for easier installation.
Customization
UFW Commands
$sudo ufw disable
$sudo ufw enable
$sudo ufw status
I don’t open any service to others. Just activate the firewall for basic protection. nixCraft explains more customization in detail[9].
GNOME Settings
22.10 (GNOME 43.0 with fcitx5 only)
- Appearance
- “Style”→”Dark”
- Ubuntu Desktop
- “Desktop Icons”→”Size”→”Large”
- “Position of New Icons”→”Top Left”
- “Icon size”→”34” (for vertical resolution less than 800px)
- “Position on screen”→”Right”
- Multitasking
- “Workspaces”→”Fixed number of workspaces”
- “Number of Workspaces”→”8”
- Sound
- “Over-Amplification”→”On”
- “Output Device”→”HDMI / DisplayPort 2 – Build-in Audio”
- Power
- “Screen Blank”→”15 minutes”
- “Automatic suspend”→ When idle “On” and Delay “20 minutes”
- “Power Button Action”→”Suspend”
- Region & Languages
- “Formats”→”United Kingdom”
- Accessibility
- “Seeing”→”Large Text”→ Enable
- “Cursor Size”→”Larger”
22.04LTS (GNOME 42.x with IBus only. Wait for Update)
- Appearance
- “Window colors”→”Dark”
- “Icon size”→”34” (for vertical resolution less than 800px)
- “Position on screen”→”Right”
- Sound
- “Over-Amplification”→”On”
- Power
- “Blank screen”→”15 minutes”
- “Automatic suspend”→ When idle “On” and Delay “20 minutes”
- “Power Button Action”→”Suspend”
- Keyboard
- “Input Sources”→”+”→Search for “RIME”→”Other”→ Select “RIME”→”Add”
- “Keyboard Shortcuts”→”View and Customize Shortcuts”→”Typing”→”Switch to next input source”→”Ctrl+Space” (for iBus)
- Region & Languages
- “Formats”→”United Kingdom”
- Accessibility
- “Seeing”→”Large Text”→ Enable
- “Cursor Size”→”Larger”
20.04LTS
- Appearance
- “Window colors”→”Dark”
- “Icon size”→”34” (for vertical resolution less than 800px)
- “Position on screen”→”Right”
- Sound
- “Over-Amplification”→”On”
- Power
- “Blank screen”→”15 minutes”
- “Automatic suspend”→ When idle “On” and Delay “20 minutes”
- “Power Button Action”→”Suspend”
- Keyboard Shortcuts
- “Typing”→”Switch to next input source”→”Ctrl+Space”
- Region & Languages
- “Formats”→”United Kingdom”
- Accessibility
- “Seeing”→”Large Text”→ Enable
- “Cursor Size”→”Larger”
18.04 LTS
- Background & Lock Screen
- “Colors”→”Black”
- Dock
- “Icon size”→”34” (for vertical resolution less than 800px)
- “Position on screen”→”Right”
- Sound
- “Over-Amplification”→”On”
- Power
- “Blank screen”→”15 minutes”
- “Automatic suspend”→ When idle “On” and Delay “20 minutes”
- “When the Power Button is pressed”→”Suspend”
- Devices
- “Keyboard”→”Keyboard Shortcuts”→”Typing”→”Switch to next input source”→”Ctrl+Space”
- Region & Languages
- “Formats”→”United Kingdom”
- Accessibility
- “Seeing”→”Large Text”→ Enable
- “Cursor Size”→”Larger”
GNOME Tweaks
22.10
- Top Bar
“Battery Percentage”→”On”- “Weekday”→”On”
- “Date”→”On”
20.04 LTS
- Appearance→Themes
- “Applications”→”Adwaita-dark”
- “Cursor”→”DMZ-Black”
- “Icons”→”Ubuntu-mono-dark”
- Top Bar
- “Battery Percentage”→”On”
- “Weekday”→”On”
- “Date”→”On”
- Workspaces
- Static Workspaces
- “Number of Workspaces”→”8”
18.04 LTS
- Appearance→Themes
- “Applications”→”Adwaita-dark”
- “Cursor”→”DMZ-Black”
- “Icons”→”Ubuntu-mono-dark”
- Desktop
- “Show Icons”→”On”
- “Home”→”On”
- “Network Servers”→”On”
- “Trash”→”On”
- “Mounted Volumes”→”On”
- Top Bar
- “Application Menu”→”On”
- “Battery Percentage”→”On”
- “Date”→”On”
- Workspaces
- Static Workspaces
- “Number of Workspaces”→”8”
GNOME Nautilus Preferences
- Views
- In “List View”, enable the “Allow folders to be expanded”.
Text Editor Preferences
- Font & Colors
- “Color Schema”→”Cobalt”
Chrome Preferences
- Appearance
- “Font size”→”Large”
- “Page zoom”→”125%”
Chrome Extensions
Tab Session Manager
- Enable “Save device name to session”.
- Set new “Device name” as “$device_name Chrome”.
- Enable the “Enable cloud sync (Beta)” with Google.
uBlock Origin
- Import and append my filters.
FireFox Preferences
In “Settings”, set “Zoom” as “Default zoom” 120% and enable “Zoom text only”.
On Intel GPU systems, open “about:config” page to enable both video and video decode acceleration:
- Search and set “layers.acceleration.force-enabled” to “true”.
- Search and set “media.ffmpeg.vaapi.enabled” to “true”.
FireFox Extensions
Tab Session Manager
- Emable “Save device name to session”.
- Set new “Device name” as “$device_name Firefox”.
- Enable the “Enable cloud sync (Beta)” with Google.
uBlock Origin
- Import and append my filters.
Déjà Dup
Set “Storage location” to external device and name the folder as the device name.
Remove “~Downloads” and add following folders to “Folders to ignoer”:
- Rubbish Bin
- ~/.cache
- ~/.config/google-chrome
- ~/.mozilla
- ~/snap
Rime for fcitx Installation and Preferences
After installation, change the input method:
- Run the command: $im-config. If it is not available, run “$sudo apt-get install im-config” to install.
- Select “fcitx” as the “user configuration”.
- Reboot.
- “Settings” → “Region & Language” → “Manage Installed Languages”.
- “Fcitx” should be selected in the “Keyboard input method system”.
- Click on Fcitx’s icon on top, “Configure” → “+” in the “Input Method” tab → Disable “Only Show Current Language” → Add an input method by searching “rime” and select “Rime”.
- Make sure the accelerator in the “Trigger Input Method” in the “Global Config” tab is assigned. It must be different from the “Switch to next input source” in the GNOME Control Center (“Settings” → “Devices” → “Keyboard”) which is used by IBus.
- To change the background color of the candidate area, open the “Input Method Configuration” dialog in step 6. In the “Appearance” tab, enable the “Show Advanced Options” and manually set the “Skin Name” to ‘dark’. Selecting “skin/dark/fcitx_skin.conf” in the “Skin” list doesn’t work.
To customize displayed candidates, look for “page_size: 5” in “~/.config/fcitx/rime/build/default.yaml”. Only 1 to 9 is allowed. MUST have a space between the colon and the number.
If the “~/.config/fcitx/rime/build/luna_pinyin.schema.yaml ” exists, the “page_size” setting would overwrite the defaul in luna pinyin(朙月拼音). Edit the “luna_pinyin.schema.yaml” instead.
Restart Fcitx to apply.
On 2020/6/23, Fcitx has no problems with GoogleDoc but sometimes a double entry in OneNote or crash.
Dock
Pin order top-down:
- Chrome
- Firefox
- Chromium
- Calculator
- GIMP
- Text Editor
- Files
- VLC
- Ubuntu Software
- Software Updater
- VirtualBox
- Terminal
- Psensor
- System Monitor
- VirtualBox
- Screenshot
Psensor
Preferences
- Startup
- Enable “Launch on session startup”
- Graph
- Enable “Smooth curves”
- “Monitor duration”→”300”
- “Update interval”→”5”
- Sensors
- “Measure update interval”→”5”
Scan All Sensors
$sudo sensors-detect
Sensor Preferences
- acpitz = ACPI Thermal Zone
- isa = ISA Adapter
- TIN = Temperature Index
- AUXTIN[10] = Auxiliary Temperature Index
- AUXTIN0 = Motherboard = SYS
- AUXTIN1 = MCH = Northbridge
- AUXTIN2 = CPU
- AUXTIN3 = Sensor near GPU/VRMs
- “SMBUSMASTER is the inner die CPU temperature while CPUTIN is the one reported through the motherboard sensors so SMBUSMASTER should be more precise[11]“.
- “Composite looks to be SSD temperatures, more specifically NVMe drives[12].”
- Enable “Display sensor in the label” for CPU, ISA Adapter, and ACPI thermal zone when found.
- For those with none or incorrect information, uncheck both “Graph”→”Display sensor in the list of sensors” and “Application Indicator”→”Display sensor in the menu”.
Read the FAQ[13] to learn more.
There is no need to run “sensors-detect” after Ubuntu 16.04. It detects automatically[14].
Mischelous
System Monitor
- Preferences→Processes
- “Update interval in seconds”→”5”
- Preferences→Resources
- “Update interval in seconds”→”5”
- Enable “Draw CPU chart as stacked area chart”
- Enable “Show network speed in bits
Force GRUB Menu to Display and Duration
Open the grub configuration file, set GRUB_TIMEOUT_STYLE=menu and GRUB_TIMEOUT=10. Update the /boot/grub/grub.cfg configuration file.
$sudo vi /etc/default/grub
...
GRUB_TIMEOUT_STYLE=menu #hidden
GRUB_TIMEOUT=10
...
$sudo update-grub
Zswap
Accelerators
They are all customizable in GNOME Settings→Devices→Keyboard→Keyboard Shortcuts.
Screenshots
Save a screenshot to Pictures | [Print Screen] |
Save a screenshot of an area to Pictures | [Shift] + [Print Screen] |
Save a screenshot of a window to Pictures | [Alt] + [Print Screen] |
Copy a screenshot to Clipboard | [Ctrl] + [Print Screen] |
Copy a screenshot of an area to Clipboard | [Ctrl] + [Shift] + [Print Screen] |
Copy a screenshot of a window to Clipboard | [Ctrl] + [Alt] + [Print Screen] |
Navigation
Switch to workspace 1 | [Super] + [Home] |
Switch to last Workspace | [Super] + [End] |
Move to a workspace above | [Super] + [Page Up] |
Move to a Workspace below | [Super] + [Page Down] |
Issues
Slow Startup
For any unusually slow startup, read for detail: “Fix Slow Boot with Linux”[15].
Fail to Launch Gnome Desktop
Try to fix gnome by reinstalling[16]:
$sudo apt-get install --reinstall ubuntu-desktop
gnome may be launched by command line:
$gnome-terminal
Need to reinstall rime after reinstalling ubuntu-desktop.
Won’t Wake Up from Suspend
The Ubuntu 20.04LTS running on my i5-9400F and nVIDIA GT720 won’t wake up from suspend mode. It’s related to the proprietary driver nvidia-driver-470. Disabling nvidia-suspend solves this issue but the authentication dialog will pop up twice from suspend every time.
Check Ubuntu with nVIDIA’s Proprietary Driver won’t Wake Up from Suspend for detail.
To disable:
$sudo systemctl disable nvidia-suspend
Tearing on Portrait Mode
There are tearing using the portrait mode in Ubuntu 20.04 running wayland on i5-9500. The solution is to load the dri3 module and enable the “TearFree” option in 20-intel.conf or 20-intel-graphics.conf:
$sudo nano /etc/X11/xorg.conf.d/20-intel.conf
Section "Module"
Load "dri3"
EndSection
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
Option "DRI" "3"
EndSection
References
- Build the Linux Kernel Module to Enable RTL8812AU USB Wireless Dongles
- Build the Linux Kernel Module to Enable RTL8192EU USB Wireless Dongles
- Build the Linux Kernel Module to Enable RTL8811CU/RTL8821CU USB Wireless Dongles
- Install and Configure Linux Driver for Brother MFC-J430w
- snapcraft: Getting started
- AskUbuntu: Which VLC player should I install? [duplicate]
- Install and Use Chinese Input in Ubuntu
- UbuntuHandbook: Mainline – Another Tool to Install Latest Kernel in Ubuntu / Linux Mint
- nixCraft: How To Configure Firewall with UFW on Ubuntu 20.04 LTS
- Tom’s Guide HWMonitor CPUID: What is CPUTIN, AUXTIN, SYSTIN and TMPIN3?
- Reddit: What is the SMBUSMASTER in a Ryzen machine and why is it so hot?
- Boinc: What do the different temperatures mean?
- wpitchoune.net: PSENSOR FREQUENTLY ASKED QUESTIONS
- AskUbuntu: How do I get the CPU temperature?
- Fix Slow Boot with Linux
- AskUbuntu: Cannot open “Display” settings, error “Could not get screen information”
- Ubuntu with nVIDIA’s Proprietary Driver won’t Wake Up from Suspend