重要的事情说三遍 一定要 timeshift 备份 备份 备份
timeshift 安装
sudo apt install timeshift
图形化界面配置即可
timeshift 恢复
- ubuntu usb 安装程序
- 开启菜单选择 try or install 。。
- 安装 timeshift
- 图像化界面恢复即可
添加 universe 源
https://packages.ubuntu.com/noble/amd64/ibus-rime/download
ibus-rime 安装
已经弃用, 现在使用 fcitx5
这个要依赖上一步, 不然可能可能找不到ibus-rime相应到包
sudo apt install ibus-rime
雾凇输入法
添加搜狗字典库
搜狗官方下载相关词库
https://gaoweix.com/im-dict-converter/
执行如下命令添加词库即可
kyle@kyle-MS-7D42:~/Downloads$ rime_dict_manager -i luna_pinyin 生活常用成语大全.dict.yaml
imported 216 entries.
kyle@kyle-MS-7D42:~/Downloads$ rime_dict_manager -i luna_pinyin 计算机词汇大全【官方推荐】.dict.yaml
obsidian
org 下载 deb 软件安装即可
遇到了git 同步问题如下
在仓库命令行 git pull 并输入用户名和密码后, 执行下面的命令,存储用户名和密码
git config --global credential.helper store
然后回到 obsidian ,就可以git 操作不报错了
obsidian 图床配置
image auto upload plugin + picgo app
之前使用剪贴板 图片上传到obsidian 总是会报错,最后测试下来是 picgo app问题
Albert 全局搜索
安装 总是失败,推荐使用 aptitude
sudo apt install aptitude
sudo aptitude install albert
sudo apt autoremove
sudo apt clean
oh zsh (命令行自动提示)
sudo apt update
sudo apt install zsh
# 安装 Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 安装 zsh-autosuggestions 和 zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
添加插件
vim ~/.zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
重新加载 Zsh 配置
source ~/.zshrc
字体使用apple 字体
依赖 gnome-tweaks
https://github.com/fefelixa/macfonts 这个地址也有apple字体
mkdir -p Fonts
cd Fonts
wget https://github.com/sahibjotsaggu/San-Francisco-Pro-Fonts/raw/master/SF-Pro-Display-Black.otf
wget https://github.com/sahibjotsaggu/San-Francisco-Pro-Fonts/raw/master/SF-Pro-Display-Bold.otf
sudo mkdir -p /usr/share/fonts/opentype
sudo cp *.otf /usr/share/fonts/opentype/
sudo fc-cache -f -v
capsLock 映射成 ctrl
依赖 gnome-tweaks
微信安装
dingTalk
dingTalk 下载 deb 软件安装即可
qq music
nvim 和 kitty
ulauncher 安装
在官网 可以通过 deb 或者 apt 安装
设置alt+space 启动快捷键
快捷键特殊处理, 根据网站 配置,安装下相应插件
方法2:
- 先取消 alt + space 系统快捷键
nodejs 和 java 版本管理工具
asdf官网
之前使用的是nvm + jenv ,现在尝试下新工具
在安装java 时候一定要注意精确版本号,不然可能不会找不到
jdk版本号查看网站
设置Alt + Q关闭程序
命令行执行 gsettings set org.gnome.desktop.wm.keybindings close "@as []"
命令行再执行 gsettings set org.gnome.desktop.wm.keybindings close "['<Alt>q']"
恢复默认设置 gsettings reset org.gnome.desktop.wm.keybindings close
通过chrome浏览器安装 gnome-shell extension 时候,点击install 不生效
先要执行下面的命令
sudo apt install chrome-gnome-shell
# 对于基于 Debian 的系统
屏幕放缩
我的屏幕是 需要1.25 倍才能看得正好,不然会很小
sudo apt install gnome-tweaks
- 打开如下图,配置即可。 需要注意 有时候屏幕文字不清晰是上面这个 Antialiasing 配置问题。
## flameshot 设置快捷键
sudo apt install flameshot
我的这个笔记本老 N 卡,用的x11 , 所以配置flameshot gui
,在wayland 上不一样
远程仓库同步配置文件夹
因为文件夹已经存在
- .config 文件夹
git init
git remote add origin <remoteurl>
git pull origin master
ozsh plugins
mise plugin
- install mise
curl https://mise.jdx.dev/install.sh | sh
- plugins=(mise)
安装微软雅黑字体
最想安装到是apple 字体, 但是安装了几个后并不能在web上很好到显示, 故折中方案 雅黑字体
微软雅黑
kdeconnect ios 与linux 共享粘贴版
sudo apt update
sudo apt install kdeconnect
ios 上安装对应软件即可
fcitx5
安装后诊断 命令:
fcitx5-diagnose
这个输入法真的好用,尤其是自带的拼音中文输入法
sudo apt update
sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-frontend-gtk3 fcitx5-frontend-qt5 fcitx5-frontend-qt6
sudo apt install fcitx5-configtool
sudo apt install fonts-noto-cjk # 安装字体
swayland 中 配置环境变量
mkdir -p ~/.config/environment.d
vim ~/.config/environment.d/env.conf
添加如下 数据
GTK_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
QT_IM_MODULE=fcitx
x11 中,编辑or 创建 ~/.xprofile
export GTK_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx
export GLFW_IM_MODULE=ibus # 尤其这行 关键, 不然kitty 可能不能响应输入法
设置开机自动启动
主题安装
推荐这个主题 https://github.com/tonyfettes/fcitx5-nord
, 主题选不好,输入的时候会有遮挡
类 i3wm 配置
通过下面的插件 真的太棒了
参考这个视频
just perfection 用来关闭动画, 不然切换头晕
space bar 显示顶部workspace 编号
switcher 是一款类似 ulauncher 快速打开程序
tactile 窗口布局工具 super + T
我把系统自带的 extension 关掉了
apple 字体
根据参考地址即可实现,效果很棒棒
maple-font
ping-fang
inter-font
apple-emoji
后续问题排查
突然发现字体有点丑,排查确定是monospace 字体渲染
fonts.conf 配置
<match>
<test name="family">
<string>monospace</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>Maple Mono NF</string>
<string>Maple Mono NF CN</string>
<string>Apple Color Emoji</string>
</edit>
</match>
执行检测命令后
❯ fc-match monospace
AppleColorEmoji.ttf: "Apple Color Emoji" "Regular"
显然,字体没用Maple Mono
修改如下:
不同版本的字体文件,有些字体名称有变更导致的
<match>
<test name="family">
<string>monospace</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>Maple Mono</string>
<string>Apple Color Emoji</string>
</edit>
</match>
修改后,明显舒服多了
后续待安装
switcher extension 和 fcitx5 遮挡问题
apple 字体
inter 字体修改为 apple 字体尝试下,感觉网页英文有时候显示怪怪的
zram
一台电脑完美实现,但是没有总结出启用规律,还把公司电脑直接跪了,幸好timeshift 备份了。 明天去看看怎么恢复把