新电脑(UOS)初始安装

华为 UOS 统信电脑初始安装

一、电脑认识

1、系统信息

  • 设备:华为擎云 L540(HUAWEI QingYun L540)
  • CPU 架构:ARM64 (aarch64)
  • 系统:UOS Desktop 20 专业版
  • 输入法框架:Fcitx 4.2.9
  • 搜狗拼音版本:4.2.1.305 (UOS 版)
  • 搜狗语音数据包:1.0.0

2、重要结论:华为鲲擎 L540 GPU 不支持硬件 OpenGL 加速

3、相关影响

3.1 终端

Ghostty / Kitty / WezTerm 等 GPU 加速终端均无法正常运行
(因鲲鹏显卡只有 HISI DRM 显示控制器,无硬件 OpenGL)

✅ 推荐方案:Deepin 终端(自带)+ tmux = 最佳体验
轻量、稳定、不需要折腾

3.2 Markdown 查看/编辑器

meditor 不支持

原因:Flutter 应用,华为鲲鹏无 OpenGL 硬件加速,无法运行

二、OpenCode

1、安装

官网地址: https://opencode.ai/zh/download

1.1 下载的桌面版 .deb 无法使用,提示提示软件包架构不匹配/点击打开OpenCode 提示无可渲染的OpenGL

1.2 使用命令安装

1
curl -fsSL https://opencode.ai/install | bash

2、opencode 内滚动正常,鼠标选中提示了 copy to clipboard,但实际无法粘贴

根源:复制被拦截,是opencode TUI 鼠标设置问题

解决:
1、添加配置文件:~/.config/opencode/tui.json

完整配置示例:

1
2
3
4
{
"$schema": "https://opencode.ai/tui.json",
"mouse": true
}

2、mouse 选项说明:

现象
true(默认) opencode 内滚动正常,但鼠标选中复制被拦截
false 终端原生选中复制正常,但滚动交给终端处理

当前设置:mouse: true(优先保证滑动)

3、继续opencode上次的会话

1、退出 opencode

在OpenCode会话窗口中,输入 /exit 回车

opencode_ses_1exit

2、退出后,看到他给我们的继续刚才会话的命令,然后拷贝粘贴

opencode_ses_2continue

4、opencode 会话管理(快速恢复历史会话)

用途:分页浏览历史会话并选择恢复

安装

让 AI 通过 opencode-sessions-manager skill 安装即可,自动处理脚本部署和 shell 配置。

依赖

  • sqlite3sudo apt install sqlite3

使用

1
opencode_list
操作 说明
输入序号 恢复对应会话
n / p 下一页/上一页
直接回车 开新会话
q 退出

三、终端

1、终端设置

1.1、默认工作目录设置

作用:新开终端自动进入 ~/Downloads 目录

在 ~/.bashrc 末尾添加:

1
cd ~/Downloads  # 终端默认进入 Downloads 目录

立即生效命令:source ~/.bashrc

2、终端工具

2.1、Deepin 终端(自带)

使用:Deepin 终端(自带)+ tmux = 最佳体验

2、tmux(终端复用器,分屏+会话保持,不依赖 GPU)

1
2
3
4
5
# 安装:
sudo apt install tmux

# 启动:
tmux

常用快捷键:

  • Ctrl+B % — 垂直分屏

  • Ctrl+B “ — 水平分屏

  • Ctrl+B D — 断开会话(后台继续跑)

  • tmux attach — 重连回会话

四、Markdown 查看/编辑器

1、ReText(Markdown 编辑器,PyQt 轻量,在华为鲲鹏上实测可用)

1、安装:

1
sudo apt install retext

2、启动

方式一:启动菜单找 “ReText”

方式二:在终端运行:

1
retext

2、Zettlr(Markdown 编辑器,免费开源,有 ARM64 版,Github需科学上网,暂未使用)

DEB 包下载地址:
https://github.com/Zettlr/Zettlr/releases/download/v3.6.0/Zettlr-3.6.0-arm64.deb
AppImage 下载地址:
https://github.com/Zettlr/Zettlr/releases/download/v3.6.0/Zettlr-3.6.0-arm64.AppImage

安装 DEB:
sudo dpkg -i Zettlr-3.6.0-arm64.deb

或运行 AppImage:
chmod +x Zettlr-3.6.0-arm64.AppImage
./Zettlr-3.6.0-arm64.AppImage

五、Sublime Text

让AI给我 Sublime Text 的安装包下载地址,我等下自己下载安装

附:之前用的 Sublime Text ARM64 直接下载地址:

https://download.sublimetext.com/sublime-text_build-4200_arm64.deb

六、Git 命令安装

七、opencode Skill 安装

1、superpowers

2、find-skills — 帮助发现和安装 agent skills

用途:当用户问 “how do I do X”、”find a skill for X” 时触发

方式:正常安装

3、business-env-quarter — 营商环境体验官项目方案撰写

方式:通过软链接指向 ~/Downloads/Family/Juan/business-env-quarter/

结果:~/.config/opencode/skills/Family/Juan/business-env-quarter/SKILL.md

4、opencode-skill-creator 插件(antongulin 版)

说明:专为 opencode 适配的插件+skill,npm 包名 opencode-skill-creator

GitHub:https://github.com/antongulin/opencode-skill-creator

5、【后续待办】opencode skill 安装(需科学上网连接)

5.1 anthropics/skills 含 anthropics/skill-creator 、anthropics/frontend-design

https://github.com/anthropics/skills.git

会涉及到 Node.js 和 npm 的安装

八、语音输入法

1、结论

搜狗语音不可用 ❌

考虑替代方案

方案 说明 状态
Deepin AI 助手(科大讯飞) 系统预装,iFLYTEK 语音识别 ✅ 已安装
讯飞输入法 UOS 商店可能提供 ARM64 版 ❓ 待调研
搜狗语音 UI Compositor 兼容性 bug ❌ 放弃

2、搜狗语音输入法问题排查完整记录

2.1 安装流程(日后参考)

1
2
3
4
5
6
7
8
9
10
11
# 1. 安装主输入法
sudo apt install com.sogou.sogoupinyin-uos
# 2. 安装语音数据包
sudo apt install com.sogou.sogoupinyin-uos-sogouvoice
# 3. 禁用旧版手写模块
mkdir -p ~/.config/fcitx/addon
echo "[Addon]\nEnabled=False" > ~/.config/fcitx/addon/fcitx-sogoupinyinhxm-disable.conf
# 4. 配置 OpenAL 走 PulseAudio(安全方案,不加 audio 组)
echo -e "[general]\ndrivers = pulse,alsa" > ~/.alsoftrc
# 5. 重启输入法
fcitx-remote -r

2.2 使用中发现的问题/实测结果:搜狗语音不可用 ❌

2.2.1 表现
  • 麦克风按钮:✅ 能弹出语音控制窗口
  • 录音功能:✅ 能识别语音(麦克风正常工作)
  • “完成”按钮:❌ 点击无响应,窗口卡死,无法关闭
  • 文字输出:❌ 语音识别后未输出文字
2.2.2 根因
  • 日志记录:TimerEnsureGetCompositingStatus stop m_nCheckedCount:20
  • 搜狗语音 UI 窗口无法检测系统 Compositor 状态,事件循环异常
  • 这是 SogouVoiceInput-uos v1.0.0 在 UOS ARM64 上的兼容性 bug,无法通过配置修复

End