Introduction
My notes of smaug whose OS is openSUSE Tumbleweed with KDE Plasma and pina whose OS is openSUSE Tumbleweed with Xfce .
Zypper
Mirror
Select the openSUSE mirror from tuna.
sudo zypper mr -da
sudo zypper ar -cfg 'https://mirrors.tuna.tsinghua.edu.cn/opensuse/tumbleweed/repo/oss/' mirror-oss
sudo zypper ar -cfg 'https://mirrors.tuna.tsinghua.edu.cn/opensuse/tumbleweed/repo/non-oss/' mirror-non-oss
sudo zypper ref
Codecs
sudo zypper ar -cfp 90 'https://mirrors.tuna.tsinghua.edu.cn/packman/suse/openSUSE_Tumbleweed/Essentials/' packman-essentials
sudo zypper dup --from packman-essentials --allow-vendor-change
Update
sudo zypper dup --no-allow-vendor-change
YaST
Network
Hostname/DNS → Static Hostname = ‘pina’
Boot Loader
Bootloader Options → Timeout in Seconds = ‘1’
Language
- English (US)
- Simplified Chinese
- Japanese
Virtualization
Install KVM server and KVM tools with the network bridge br0 of wicked.
Btrfs
Mount a subvolume of /dev/sda5.
sudo mount /dev/sda5 /mnt
sudo btrfs subvolume list /mnt
sudo mount /dev/sda5 /mnt/home -o subvolid=263
sudo umount /mnt/home /mnt
Wake-on-LAN
sudo ethtool enp3s0
sudo systemctl enable [email protected]
# /etc/systemd/system/[email protected]
[Unit]
Description=Wake-on-LAN for %i
Requires=network.target
After=network.target
[Service]
ExecStart=/usr/sbin/ethtool -s %i wol g
Type=oneshot
[Install]
WantedBy=multi-user.target
KDE Plasma
Session
Default session is Plasma X11, but change it to Plasma Wayland.
Locale
Set environment variable $LANG to C.UTF-8.
# System
sudo localectl set-locale LANG=C.UTF-8
# KDE
rm ~/.config/plasma-localerc
Then get these two configuration files.
# /etc/locale.conf
LANG=C.UTF-8
# ~/.config/plasma-localerc
[Formats]
LANG=C.UTF-8
Fcitx 5
sudo zypper in fcitx5 fcitx5-chinese-addons fcitx5-mozc
When session is Plasma X11, need this command to use fcitx5.
cp /usr/etc/X11/xim.d/fcitx5 ~/.xim
Check ~/.xim.template, /etc/X11/xinit/xinitrc.common, /usr/etc/X11/xim and /usr/etc/X11/xim.d/fcitx5.
Fingerprint
sudo zypper in fprintd fprintd-pam
fprintd‐enroll
fprintd‐list $username
sudo pam-config -a --fprintd
For SDDM login, press enter in the empty password field, then the fingerprint reader starts working.
KDE Connect
sudo zypper in kdeconnect-kde
Xfce
pipewire-pulse
Set audio output to HDMI.
pactl list cards
pactl set-card-profile alsa_card.pci-0000_00_1b.0 output:hdmi-stereo+input:analog-stereo
Locale
Reference
~/.config/xfce4/xinitrc
#!/bin/sh
test -s $HOME/.i18n && . $HOME/.i18n
. /etc/xdg/xfce4/xinitrc
~/.i18n
unset GDM_LANG
export LANG=C.UTF-8
Applications
Clash
sudo zypper in clash
systemctl --user enable --now clash.service
ddcutil
sudo zypper in ddcutil
sudo modprobe i2c_dev
echo 'i2c_dev' | sudo tee /etc/modules-load.d/i2c_dev.conf
# get display infomation
sudo ddcutil detect
# get brightness
ddcutil -b $bus getvcp 10
# set brightness
ddcutil -b $bus setvcp 10 $brightness
intel-gpu-tools
sudo zypper in intel-gpu-tools
sudo intel_gpu_top
Firefox
Manage Certificates: Menu → Settings → View Certificates… → Servers → Add Exception…
Chrome
flatpak install flathub com.google.Chrome
# enable proxy in Chrome
# export http_proxy https_proxy all_proxy
flatpak run flathub com.google.Chrome
Manage Certificates on chrome://settings/certificates.
VS Code
flatpak install flathub com.visualstudio.code
# alias for com.visualstudio.code in ~/.alias
alias code='flatpak run com.visualstudio.code'
# User Settings (JSON) for Flatpak version
# to make the integrated terminal automatically use the host system's shell
{
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "host-spawn",
"args": [
"bash"
]
}
}
}
Jellyfin Media Player
flatpak install flathub com.github.iwalton3.jellyfin-media-player