Ubuntu 22.04 Configuration Notes
Install NVIDIA Driver
DO NOT INSTALL THIRD PARTY GRAPHICS DRIVERS IN UBUNTU INSTALLATION INTERFACE!!!
Software Sources -> Additional Drivers
-> Using NVIDIA driver ... nvidia-driver-510 (proprietary, tested)
Then execute:
sudo ubuntu-drivers autoinstall
Zsh & Oh My Zsh
sudo apt install zsh git
wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
chmod +x install.sh
./install.sh
Set fnmode For Compact Keyboards
The function keys on some compact keyboards (e.g. my Keychron K6) doesn't work, this may be caused by wrong default fnmode value.
To change it temporarily, execute:
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
To change it permanently, execute:
echo options hid_apple fnmode=0 | sudo tee -a /etc/modprobe.d/hid_apple.conf
sudo update-initramfs -u -k all
Then reboot.
Note that file /etc/modprobe.d/hid_apple.conf
may not exists initially, this will create a new file for it.
Replace openjdk with oracle-jdk
My path to oracle-jdk 16.0.2 is: /usr/lib/jvm/jdk-16.0.2/bin/java
.
So firstly set an alternative for java:
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-16.0.2/bin/java" 1
Then, use this command to switch default alternative for java:
sudo update-alternatives --config java
deepin-wine
https://github.com/zq1997/deepin-wine
Install fcitx-googlepinyin
Source: here
sudo apt install fcitx-bin fcitx-googlepinyin
Then:
Settings -> Region & Language -> Manage Installed Languages
-> Install/Remove Languages [ select Chinese (simplified) / Chinese (traditional) ]
-> Keyboard input method system [select fcitx]
-> Apply System wide
-> logout and login(or restart the OS)
-> Fcitx Config Tool
-> +
-> unselect Only show current language
-> search google pinyin & add
Use Dedicated GPU (Nvidia) for Games in Steam Proton
Try adding this into the games' launch options:
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json %command%
.
No comments yet...