简介

Termux 开始重新开发他们归档的项目 termux-wayland。即使使用 KDE 等离子等桌面环境,它的工作速度也足够快

这是我为 termux 设置最快的 linux GUI 环境的指南(比 VNC 更快)。

设置termux

官方 f-droid termux 可能对此不起作用,因此请从https://github.com/termux/termux-app/actions获取 termux

xwayland(Wayland 的二进制文件)和termux-x11(从 termux 启动 termux-x11 应用程序的脚本)在x11-repo

pkg install x11-repo -y
pkg install xwayland termux-x11

进入全屏模式 退出全屏模式

设置 termux 完成✌️

安装 Termux:Xwayalnd 应用程序

目前,此应用程序可用此处

  • 或获取我的旧快照 termux-x11所以下载并安装它

使用 Termux:Xwayland 运行proot-distroLinux

假设您安装了带有 xfce4 的 proot-distro 的 ubuntu

在你的 termux 中执行

termux-x11

进入全屏模式 退出全屏模式

这将使用所有必需的 ENV 变量启动 termux-x11

  1. 现在回到 termux 并登录到你喜欢的发行版(对于本教程,假设它是udroid``proot-distro)和--shared-tmp选项。默认情况下,Wayland 套接字存储在 termux$TMPDIR中,因此使用--shared-tmp将 root linux 中的/tmp绑定到 termux 应用程序的$TMPDIR
proot-distro login udroid --shared-tmp

进入全屏模式 退出全屏模式

  1. 现在导出DISPLAY值为:0的环境变量,termux-x11开始显示在:0(默认)
export DISPLAY=:0

进入全屏模式 退出全屏模式

1.最后启动你的桌面环境(xfce4效果更好)

dbus-launch --exit-with-session startxfce4

进入全屏模式 退出全屏模式

现在就是这样,如果您打开最小化的 Termux:x11 应用程序,您会看到 xfce4 正在运行

更多来源

https://github.com/RandomCoderOrg/ubuntu-on-android

ubuntu-on-android ( udroid )

https://github.com/termux/termux-x11

官方 termux-x11 仓库

https://github.com/wayland-project/wayland

官方 Wayland 资源

https://at.projects.genivi.org/wiki/display/DIRO/Wayland+Application+on+Android

Docs Wayland 在 android 中的实现

Logo

更多推荐