LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=en_US.UTF-8
https://cdimage.ubuntu.com/jammy/daily-live/current/jammy-desktop-arm64.iso
sudo ufw disable
sudo ufw status
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
sudo timedatectl set-timezone Asia/Shanghai
date
# 同步时间
sudo apt install ntpdate -y
sudo ntpdate cn.pool.ntp.org
修改字体优先级
sudo vim /etc/fonts/conf.avail/64-language-selector-prefer.conf
注意:在 Ubuntu 23.10 或更新版本的系统上修改文件:
sudo vim /etc/fonts/conf.d/64-language-selector-cjk-prefer.conf
将 `JP` 和 `KR` 所在行往下调整即可,调整成如下所示:
```xml
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans CJK SC</family>
<family>Noto Sans CJK TC</family>
<family>Noto Sans CJK HK</family>
<family>Noto Sans CJK JP</family>
<family>Noto Sans CJK KR</family>
<family>Lohit Devanagari</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif CJK SC</family>
<family>Noto Serif CJK TC</family>
<family>Noto Serif CJK JP</family>
<family>Noto Serif CJK KR</family>
<family>Lohit Devanagari</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Noto Sans Mono CJK SC</family>
<family>Noto Sans Mono CJK TC</family>
<family>Noto Sans Mono CJK HK</family>
<family>Noto Sans Mono CJK JP</family>
<family>Noto Sans Mono CJK KR</family>
</prefer>
</alias>
</fontconfig>
参照官方文档:https://pinyin.sogou.com/linux/help.php
# 禁用ctrl+shift+f
vim ~/.config/sogoupinyin/conf/env.ini
# 找到这行ShortCutFanJian=1,改为ShortCutFanJian=0
vim ~/.config/fcitx/conf/fcitx-chttrans.config
# 找到 #Hotkey=CTRL_SHIFT_F,取消注释,并改为 #Hotkey=CTRL_SHIFT_]
# 保存之后,重新登录即可
rfkill unblock all
sudo /etc/init.d/networking restart
sudo rm /etc/udev/rules.d/70-persistent-net.rules
sudo reboot
下载 Solaar
sudo apt install solaar
下载完成之后,插入 USB 接收器,M720 切换至未被占用的 Channel,并重新启动(Off => On)。
打开 Solaar 应用
solaar
如果没有发现 M720 鼠标,则重启 Ubuntu,重启之后再次打开 Solaar 之后,可以看到列表中出现 Solaar,点击 “Pair the device” 即可。
好像是 Ubuntu 23.10 后支持。
VMWare Fusion 开启宿主机复制粘贴功能,桌面版 Ubuntu 系统安装插件:
sudo apt install open-vm-tools open-vm-tools-desktop -y
安装完之后,重启虚拟机即可。
sudo apt update
sudo apt upgrade -y
sudo apt install update-manager-core -y
sudo vim /etc/update-manager/release-upgrades
# modify Prompt=lts to Prompt=normal
sudo sed -i 's/jammy/lunar/g' /etc/apt/sources.list
sudo apt update
sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo apt update
sudo apt upgrade -y
sudo do-release-upgrade
RIME 输入法:
sudo apt install ibus-rime
安装完成后,需要注销当前用户重新登录或者直接重启生效。
配置:
输入时按 F4
,可以直接在输入界面配置,例如配置默认使用简体,默认使用英文等。
取消 Ctrl+~
的呼出配置(因为与 VS Code 快捷键冲突):
vim .config/ibus/rime/default.custom.yaml
# 配置内容
patch:
schema_list:
- schema: "luna_pinyin_simp"
switcher/caption: "[输入法配置]"
switcher/option_list_separator: "/"
switcher/hotkeys:
- "F4"
"menu/page_size": 9
punctuator/full_shape:
"#": "#"
"`": { commit: "`" }
"/": "/"
punctuator/half_shape:
"#": "#"
"`": { commit: "`" }
"/": "/"
ascii_composer/good_old_caps_lock: false
ascii_composer/switch_key:
Shift_L: noop
Shift_R: noop
Control_L: noop
Control_R: noop
Caps_Lock: commit_code
# 使配置生效
touch ~/.config/ibus/rime/; ibus restart
横排显示候选:
sudo vim /usr/share/rime-data/ibus_rime.yaml
# 配置
style:
horizontal: true
# 使配置生效
touch ~/.config/ibus/rime/; ibus restart
下载:
sudo apt install gnome-tweaks -y
应用界面找到 Tweak 应用运行,或者直接终端输入 gnome-tweak
运行。
配置: