Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win10 安裝 SUSE Linux 子系統完整教學:WSL 中運行 openSUSE Leap 42.2 / SLES 12 SP2 圖文步驟

編輯:關於 Windows

微軟 WSL (Windows Subsystem for Linux) 原生支援 Ubuntu,但 SUSE 資深工程師 Hannes Kühnemund 教導在 WSL 中運行 openSUSE/SLES:

前置需求

  • 64 位元 Win10 Build 14393+ (週年更新)。
  • 啟用「適用於 Linux 的 Windows 子系統」(WSL Beta) 功能。
  • 開發者模式啟用 (設定 → 更新與安全性 → 開發者專用)。
  • 已安裝並啟用 Ubuntu 子系統 (先決條件)。

安裝 openSUSE Leap 42.2 步驟

  1. PowerShell 下載 docker 用戶空間:
    wget -O openSUSE-42.2.tar.xz https://github.com/openSUSE/docker-containers-build/blob/openSUSE-42.2/docker/openSUSE-42.2.tar.xz?raw=true
  2. 啟動 Bash (Ubuntu) 執行:
    sudo mkdir rootfs
    sudo tar -C rootfs -Jxf openSUSE-42.2.tar.xz
    exit
  3. 備份原 Ubuntu rootfs:
    cd %localappdata%\lxss
    rename rootfs rootfs.ubuntu
  4. 複製 openSUSE rootfs:
    move .home rootfs .
  5. 設定預設使用者為 root:
    lxrun /setdefaultuser root
  6. 重新啟動 Bash,即進入 openSUSE 環境。

進階個人化

  • 替換 Bash 圖示為 SUSE Logo:重命名 bash.ico 並置換。
  • 重命名開始選單捷徑為「Bash on SUSE on Windows」。

同樣適用 SLES 12 SP2,無需虛擬機/雙開機即可在 Win10 原生運行 SUSE Linux。

Copyright © Windows教程網 All Rights Reserved