Surface-Pro6 Zorin-OS安装
n\n注意:若已启用 Secure Boot,重启后会进入蓝色 MOK 管理界面:\n1) 选择 Enroll MOK → Continue → Yes → 输入你设置的密码(若有提示)\n2) Reboot 完成后,系统将使用 linux-surface 内核。\n\n祝使用愉快!./zorin_surface_pro6_oneclick.sh # 说明: # - 将安装 linux-surfa
1️⃣ 准备工作
备份 Windows 10 中的重要文件(尤其是桌面、文档、下载里的东西)。
准备一个 8GB 以上 U 盘。
去 Zorin OS 官网 下载 Zorin OS 17 Core ISO 镜像(Pro版本需要付费)。
下载 Rufus(Windows 下制作启动盘:https://rufus.ie/zh/)。
2️⃣ 制作启动盘
在 Windows 10 下运行 Rufus → 选择你的 U 盘和 ISO 文件
分区类型选 GPT,目标系统选 UEFI
点击开始制作。
3️⃣ 安装系统
插入 U 盘 → 重启 → 在 Surface 上按 音量加 + 电源键 进入启动菜单 → 选择 U 盘启动。
进入 Zorin OS 安装界面后,可以先选择 Try Zorin OS 测试触控、WiFi、蓝牙是否正常,再点桌面图标 Install Zorin OS。
分区方案:
如果完全替换 Windows → 选 Erase disk and install Zorin OS
如果双系统 → 选 Install alongside Windows(要提前在 Windows 中留出空闲空间)。
4️⃣ 装完优化(Surface 专属)
**·**系统更新:
sudo apt update && sudo apt upgrade -y
**·**安装 Surface Linux 内核(增强触控、手写笔、旋转支持):
sudo sh -c ‘echo “deb [arch=amd64] https://pkg.surfacelinux.com/debian release main” > /etc/apt/sources.list.d/linux-surface.list’
curl -s https://pkg.surfacelinux.com/debian/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/linux-surface.gpg
sudo apt update
sudo apt install linux-image-surface linux-headers-surface iptsd
安装完成后重启。
· Zorin OS 17 Surface Pro 6 完整优化脚本
#!/usr/bin/env bash
**# Zorin OS 17 (Ubuntu 22.04 base) · Surface Pro 6 一键优化脚本
作用:一键装驱动、触控/手写笔、旋转、功耗优化、常用软件
使用: # 1) 保存为 zorin_surface_pro6_oneclick.sh
-
chmod +x zorin_surface_pro6_oneclick.sh
-
./zorin_surface_pro6_oneclick.sh # 说明: # - 将安装 linux-surface 内核;若启用 Secure Boot,将在重启时弹出 MOK 注册界面,请务必按提示完成登记。 # - 脚本仅适配 Zorin OS 17.x(基于 Ubuntu 22.04)。**
set -euo pipefail
log() { echo -e “\n\e[1;32m[✔]\e[0m $1\n”; }
warn() { echo -e “\n\e[1;33m[!]\e[0m $1\n”; }
err() { echo -e “\n\e[1;31m[✘]\e[0m $1\n”; }
require_root() {
if [[ $EUID -ne 0 ]]; then
err “请用 sudo 运行本脚本:sudo ./zorin_surface_pro6_oneclick.sh”
exit 1
fi
}
confirm() {
read -rp "继续执行?(y/N): " yn
[[ “${yn,}” == “y” ]] || { warn “已取消”; exit 0; }
}
#-----------------------------
- 前置检查
#-----------------------------
require_root
log “检测系统信息…”
. /etc/os-release || true
if [[ “IDLIKE:−"!=∗"debian"∗]]∣∣[["{ID_LIKE:-}" != *"debian"* ]] || [[ "IDLIKE:−"!=∗"debian"∗]]∣∣[["{VERSION_ID:-}” != “22.04” && “UBUNTUCODENAME:−"!="jammy"]];thenwarn"本脚本面向ZorinOS17.x/Ubuntu22.04(jammy)。当前:ID={UBUNTU_CODENAME:-}" != "jammy" ]]; then warn "本脚本面向 Zorin OS 17.x / Ubuntu 22.04 (jammy)。当前: ID=UBUNTUCODENAME:−"!="jammy"]];thenwarn"本脚本面向ZorinOS17.x/Ubuntu22.04(jammy)。当前:ID={ID:-?} VERSION_ID=${VERSION_ID:-?}”
confirm
fi
#-----------------------------
- 基础更新 & 常用源
#-----------------------------
log “更新系统与启用 Multiverse 源…”
add-apt-repository -y multiverse || true
apt update -y
DEBIAN_FRONTEND=noninteractive apt upgrade -y
#-----------------------------
- 安装 linux-surface 内核与触控/手写笔支持
参考:https://github.com/linux-surface/linux-surface
#-----------------------------
log “添加 linux-surface 软件仓库与密钥…”
install -d /etc/apt/keyrings
curl -fsSL https://pkg.surfacelinux.com/debian/pubkey.gpg | gpg --dearmor -o /etc/apt/keyrings/linux-surface.gpg
cat >/etc/apt/sources.list.d/linux-surface.list <<‘EOF’
deb [arch=amd64 signed-by=/etc/apt/keyrings/linux-surface.gpg] https://pkg.surfacelinux.com/debian release main
EOF
apt update -y
log “安装 linux-surface 内核与组件(可能较久)…”
DEBIAN_FRONTEND=noninteractive apt install -y
linux-image-surface linux-headers-surface
libwacom-surface iptsd linux-surface-secureboot-mok
确保触控/传感器服务
systemctl enable --now iptsd || true
systemctl enable --now iio-sensor-proxy || true
#-----------------------------
- 触控/平板体验增强
#-----------------------------
log “安装触控键盘与多指手势工具…”
DEBIAN_FRONTEND=noninteractive apt install -y onboard touchegg gnome-shell-extension-manager || true
systemctl enable --now touchegg || true
gsettings:启用触控键盘自动弹出(GNOME/Zorin 桌面)
su -l $(logname) -c “gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true” || true
#-----------------------------
- 图形/多媒体与性能功耗优化
#-----------------------------
log “安装 Intel 媒体加速与功耗优化…”
DEBIAN_FRONTEND=noninteractive apt install -y
intel-media-va-driver-non-free vainfo vdpauinfo
tlp tlp-rdw powertop
systemctl enable --now tlp || true
powertop 自动校准(可选,耗时)
if command -v powertop >/dev/null 2>&1; then
warn “将运行 powertop --auto-tune 以应用省电参数(可在重启后再次执行)。”
powertop --auto-tune || true
fi
#-----------------------------
- 常用软件(办公/娱乐/工具)
#-----------------------------
log “安装常用应用…”
DEBIAN_FRONTEND=noninteractive apt install -y
vlc gimp krita obs-studio
steam
fonts-noto-cjk fonts-noto-color-emoji
fcitx5 fcitx5-chinese-addons fcitx5-config-qt fcitx5-configtool
设置 Fcitx5 为默认输入法
su -l $(logname) -c “im-config -n fcitx5” || true
Flatpak 与 Flathub(可补充 ONLYOFFICE 等)
log “启用 Flathub 应用仓库并安装 ONLYOFFICE(可选)…”
DEBIAN_FRONTEND=noninteractive apt install -y flatpak gnome-software-plugin-flatpak || true
su -l $(logname) -c “flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo” || true
su -l $(logname) -c “flatpak install -y flathub org.onlyoffice.desktopeditors” || true
#-----------------------------
- 清理与信息提示
#-----------------------------
apt autoremove -y
apt clean
log “全部完成!建议现在重启。\n\n注意:若已启用 Secure Boot,重启后会进入蓝色 MOK 管理界面:\n 1) 选择 Enroll MOK → Continue → Yes → 输入你设置的密码(若有提示)\n 2) Reboot 完成后,系统将使用 linux-surface 内核。\n\n验证方式:重启后在终端运行 ‘uname -a’,应包含 ‘surface’ 字样。\n\n祝使用愉快! : )”
更多推荐



所有评论(0)