System · Ubuntu Setup Notes, Secondary
Aug 9, 2025
|
Archived
Work
Software
System
VsCode Settings
Configure C/C++ IntelliSense to find missing headers:
press ctrl + shift + p ,
search for C/C++: Edit Configurations (UI),
add paths to section Include path
Fold/Unfold code blocks:
press ctrl + shift + p ,
search for Fold or Unfold,
look for Fold/Unfold All, Fold Level X, ...
press ctrl + shift + [ , or ctrl + shift + ]
to fold/unfold code blocks individually
Install ruby-rubocop dependency:
sudo apt install ruby-dev
sudo gem install rubocop
Wrap/unwrap opened file tabs:
press ctrl + , , search for workbench.editor.wrapTabs, then
check/uncheck to apply changes
Change tab and indent size:
press ctrl + shift + p , search for
Preferences: Open User Settings, search for Editor: Tab Size, and apply changes
press ctrl + shift + p , search for Editor: Indent Size, apply
changes to make it different from Editor: Tab Size if desirable
WindTerm
Make a .desktop file for an app icon
Proxy and Chains
To enable proxy globally and test connections
Ubuntu Realtime Kernel (22.04)
Pre-Commit and Virtualenv (22.04)
IBus Pinyin
Settings > Region & Language > Manage Installed Languages
Install / Remove Languages > Chinese (simplified) [✓]
Keyboard input method system > IBus
Apply System-Wide
Log Out
Settings > Keyboard > + Add Input Source...
Chinese > Chinese (Intelligent Pinyin) > Add
super + space > 中 > Preferences
Pinyin mode > Cloud Input Option > [✓] Enable Cloud Input
Sogou Pinyin (22.04)
Settings > Region & Language > Manage Installed Languages
Install / Remove Languages > Chinese (simplified) [✓]
Keyboard input method system > Fcitx 4
Apply System-Wide
Log Out
Qv2ray
See also in Local File Copies, AppImage v2.7.0
See also in Local File Copies, icon png
See also in Local File Copies, Subscription Tutorial
Note that Qv2ray requires libfuse, Ubuntu 24.04 doesn't have it installed by default, in that case,
you need to install it via:
sudo apt install libfuse-dev
otherwise, you will see the error message for missing libfuse if you run Qv2ray executable from
terminal.
Make a .desktop file for an app icon
Find and Wildcards
Some useful find commands, where /path and file can take wildcard characters
*, ?, and []
Purpose
Command
Notes
Find by name
find /path -name "file" 2>/dev/null
Case-sensitive name matching
Case-insensitive find
find /path -iname "file" 2>/dev/null
Matches FILE, File, file, etc.
Recently modified files (days)
find /path -mtime -7 2>/dev/null
Files modified in last 7 days
Recently modified files (minutes)
find /path -mmin -30 2>/dev/null
Files modified in last 30 minutes
Find large files
find /path -size +100M 2>/dev/null
Files >100MB
Find regular files only
find /path -type f -name "*.txt" 2>/dev/null
-type f indicates regular files
Find directories
find /path -type d -name "dir" 2>/dev/null
-type d indicates directories
Find symbolic links
find /path -type l 2>/dev/null
-type l indicates symbolic links
Find sockets
find /path -type s 2>/dev/null
-type s indicates socket files
Basic wildcard characters explained
Wildcard
Function
Example
*
Matches any number of characters (including zero)
*.txt → all .txt files
?
Matches exactly one single character
file?.log → file1.log, fileA.log
[]
Matches any one character within the brackets; supports character lists [abc],
ranges
[a-z], and exclusion [!abc]
image[1-3].jpg → image1.jpg, image2.jpg, image3.jpg
[!0-9]* → files not starting with a digit