2moe / tmoe

TMOE, More Optional Environments.
https://doc.tmoe.me
Other
863 stars 80 forks source link

VNC无法正常启动 #170

Open endeavouryt opened 2 years ago

endeavouryt commented 2 years ago

Are you rooted?

No

Desktop environment

other

Container type

proot

Configuration

container value
os puppy
arch x64

host value
os android 10
arch arm64
terminal ?
tmoe latest

Describe the bug

输入startvnc命令后启动VNC viewer连接,仅能显示一个鼠标,无法正常启动桌面

Screenshots

![Uploading Screenshot_20220512_201001_com.realvnc.viewer.android.jpg…]()

How to reproduce

  1. 在跨CPU架构选项下选择x64
  2. 安装puppy
  3. 安装完毕后,输入startvnc
  4. 启动VNC viewer连接

Expected behavior

正常显示桌面

Error Logs

No response

Additional context

No response

endeavouryt commented 2 years ago

我在同样的设备下又尝试了一下ubuntu-22.04(arm64),可以显示桌面,但VNC仍然不能使用(只能移动鼠标但是不能进行点击等操作)。(刚刚连接VNC的最初几秒是正常的,随后就会卡死) ![Uploading Screenshot_20220512_205833_com.realvnc.viewer.android.jpg…]()

2moe commented 2 years ago

你发的截图是空的

2moe commented 2 years ago

之前也会卡死吗?

endeavouryt commented 2 years ago

感谢回复。不好意思,我不太会上传图片。这个问题是今天出现的,昨天还没有类似的问题。VNC viewer的话,应用程序User land里面的lxde的VNC模式可以正常调用和使用。我重新上传了一下两张截图,不知道这一次能否查看 Screenshot_20220512_201001_com realvnc viewer android

Screenshot_20220512_205833_com realvnc viewer android

2moe commented 2 years ago
cd ~/.vnc
cat x.log vnc.log

然后发一下日志

2moe commented 2 years ago

如果解决不了的话,那就重启手机。 然后试试 ubuntu 18.04 和 icewm 。

endeavouryt commented 2 years ago

下面是Ubuntu-22.04的日志:

Message: 22:29:45.882: main.vala:101: Session is (null) Message: 22:29:45.883: main.vala:102: DE is (null) Message: 22:29:45.883: main.vala:106: No session set, fallback to LXDE session Message: 22:29:45.883: main.vala:112: No desktop environnement set, fallback to LXDE Message: 22:29:45.962: main.vala:133: log directory: /home/lyt/.cache/lxsession/LXDE Message: 22:29:45.963: main.vala:134: log path: /home/lyt/.cache/lxsession/LXDE/run.log

(mate-terminal:22630): dbind-WARNING **: 22:29:45.997: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(mate-terminal:22630): WARNING : 22:29:49.721: Unable to set locale modifiers with XSetLocaleModifiers() _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

Xvnc TigerVNC 1.12.0 - built 2022-03-25 17:06 Copyright (C) 1999-2021 TigerVNC Team and many others (see README.rst) See https://www.tigervnc.org for information on TigerVNC. Underlying X server release 12101003, X.Org

Thu May 12 22:29:45 2022 vncext: VNC extension running! vncext: Listening for VNC connections on all interface(s), port 5902 vncext: created VNC server for screen 0 [mi] mieq: warning: overriding existing handler (nil) with 0x3000152ca0 for event 2 [mi] mieq: warning: overriding existing handler (nil) with 0x3000152ca0 for event 3

Thu May 12 22:29:47 2022 Connections: accepted: 127.0.0.1::60494

Thu May 12 22:29:48 2022 SConnection: Client needs protocol version 3.8 SConnection: Client requests security type VncAuth(2) VNCSConnST: Server default pixel format depth 24 (32bpp) little-endian rgb888 VNCSConnST: Client pixel format depth 6 (8bpp) rgb222

Thu May 12 22:29:49 2022 VNCSConnST: Client pixel format depth 24 (32bpp) little-endian rgb888

Thu May 12 22:30:13 2022 VNCSConnST: closing 127.0.0.1::60494: Clean disconnection EncodeManager: Framebuffer updates: 73 EncodeManager: RRE: EncodeManager: Solid: 38 rects, 1.43295 Mpixels EncodeManager: 694 B (1:3885.42 ratio) EncodeManager: ZRLE: EncodeManager: Bitmap RLE: 9 rects, 109.76 kpixels EncodeManager: 13.9102 KiB (1:21.6981 ratio) EncodeManager: Indexed RLE: 66 rects, 1.10276 Mpixels EncodeManager: 418.637 KiB (1:7.80725 ratio) EncodeManager: Full Colour: 48 rects, 261.678 kpixels EncodeManager: 768.063 KiB (1:1.33159 ratio) EncodeManager: Total: 161 rects, 2.90715 Mpixels EncodeManager: 1.17313 MiB (1:6.01542 ratio) Connections: closed: 127.0.0.1::60494 ComparingUpdateTracker: 3.41693 Mpixels in / 816.109 kpixels out ComparingUpdateTracker: (1:4.18685 ratio)

在puppy下面这个命令不起作用,会提示没有这个文件或目录。重启后安装了Ubuntu-18.04,但是未能成功安装gui桌面,在进入tmoe-tool的界面后,显示会突然变成英文(如下)

Screenshot_20220512_231540_com termux

而且点击gui安装会报错“/usr/local/bin/debian-i: 行 939: /usr/local/etc/tmoe-linux/git/share/old-version/tools/gui/gui: 没有那个文件或目录 Press enter to return,press Ctrl+C to exit.” 之前安装Ubuntu-22.04的时候也碰到了相同的问题,但在tmoe-tool中选择更新即可恢复中文界面并安装gui。在Ubuntu-18.04下选择更新会有如下的结果:

/usr/local/bin/debian-i: 行 955: check_tmoe_linux_desktop_link: 未找到命令 已删除'/usr/local/bin/debian-i' '/usr/local/bin/debian-i' -> '/usr/local/etc/tmoe-linux/git/share/old-version/tools/app/tool' git pull --rebase --stat origin master --allow-unrelated-histories fatal: 有歧义的参数 'origin/master':未知的版本或路径不存在于工作区中。 使用 '--' 来分隔版本和路径,例如: 'git <命令> [<版本>...] -- [<文件>...]' remote: Enumerating objects: 39493, done. remote: Counting objects: 100% (39493/39493), done. remote: Compressing objects: 100% (10526/10526), done. remote: Total 39488 (delta 26551), reused 37245 (delta 24887), pack-reused 0 接收对象中: 100% (39488/39488), 7.48 MiB | 984.00 KiB/s, 完成. 处理 delta 中: 100% (26551/26551), 完成. 来自 https://gitee.com/mo2/linux * branch master -> FETCH_HEAD fatal: 有歧义的参数 '':未知的版本或路径不存在于工作区中。 使用 '--' 来分隔版本和路径,例如: 'git <命令> [<版本>...] -- [<文件>...]' First, rewinding head to replay your work on top of it... 请告诉我你是谁。 运行 git config --global user.email "you@example.com" git config --global user.name "Your Name" 来设置您账号的缺省身份标识。 如果仅在本仓库设置身份标识,则省略 --global 参数。 fatal: 无法自动探测邮件地址(得到 'root@localhost.(none)')No rebase in progress? 正在获取 origin remote: Enumerating objects: 30086, done. remote: Counting objects: 100% (30086/30086), done. remote: Compressing objects: 100% (6964/6964), done. remote: Total 30082 (delta 20327), reused 29952 (delta 20278), pack-reused 0 接收对象中: 100% (30082/30082), 6.31 MiB | 9.10 MiB/s, 完成. 处理 delta 中: 100% (20327/20327), 完成. 来自 https://gitee.com/mo2/linux [新标签] v1.0 -> v1.0 [新标签] v1.1beta -> v1.1beta [新标签] v1.3268 -> v1.3268 [新标签] v1.3275 -> v1.3275 [新标签] v1.4177 -> v1.4177 [新标签] v1.4539 -> v1.4539 [新标签] v1.4597 -> v1.4597 [新标签] v1.4678 -> v1.4678 HEAD 现在位于 0fff92c74 chore(ubuntu): get kinetic from lxcfatal: 有歧义的参数 '':未知的版本或路径不存在于工作区中。 使用 '--' 来分隔版本和路径,例如: 'git <命令> [<版本>...] -- [<文件>...]' First, rewinding head to replay your work on top of it... 生成补丁: 100% (5232/5232), 完成. 请告诉我你是谁。 运行 git config --global user.email "you@example.com" git config --global user.name "Your Name" 来设置您账号的缺省身份标识。 如果仅在本仓库设置身份标识,则省略 --global 参数。 fatal: 无法自动探测邮件地址(得到 'root@localhost.(none)')No rebase in progress? '/usr/local/bin/tmoe' -> '/usr/local/etc/tmoe-linux/git/share/old-version/share/app/tmoe' '/usr/local/bin/tome' -> 'tmoe' (o゜▽゜)o☆ Thank you for using Tmoe-linux tool. Update completed, press enter to return.

返回后tmoe-tool界面仍为英文,gui仍无法安装,报错信息和之前相同。

2moe commented 2 years ago

这个可能是我把默认分支切到 doc 的锅,现在已经切换回 master 了。

2moe commented 2 years ago

用以下命令简单修复一下。

cd /usr/local/etc/tmoe-linux
rm -rfv git
git clone --depth=1 -b master https://gitee.com/mo2/linux git
endeavouryt commented 2 years ago

感谢您的回复。在执行上述命令后界面恢复中文,gui也可以安装。但是在安装ice(或fvwm),启动VNC后会遇到相同的问题。界面依然在数秒后卡死,仅能移动鼠标光标,不能进行其它操作。其中ice(或fvwm)安装过程中出现的选项均选择了默认项。

2moe commented 2 years ago

vnc 的日志里并没有出现特别严重的 ERROR。 而且我也无法复现这个问题。

卡死一般都与 android 本身的限制有关。 在使用 termux 的情况下,部分手机系统需要允许 termux 后台运行和开机自启。 有些系统使用了更严格的后台管理机制,比如 color OS, 之前有 color OS 用户跟我反馈过,vnc 进不去,就算进去了,也会被杀后台。

其次,与容器内部的服务有关。 比如说与 "power manager" 相关的东西,它会尝试去调用宿主本身的东西,在 rootless 环境下,可能会导致整个容器进程崩溃。

最后与资源占用有关,如果部分系统资源已经被占满了,或者是无法被调用,那么它会变卡。

如果说之前没问题,但是现在有问题。 那么大概是这段时间发生了什么事情,得要找出根源才能解决问题。

如果手机可以 root 的话,那么试一下 chroot/unshare 。

endeavouryt commented 2 years ago

好的,感谢您的回复,我再自行尝试一下吧,谢谢!

2moe commented 2 years ago

导致它卡住的因素是多方面的。 还有一个因素:dbus,我没有在上文中提到。 你可以去看看文档,我之后会补充一些与“卡住”相关的内容的。

2moe commented 2 years ago

不知是否与此 issue 有关 https://github.com/2moe/tmoe/issues/172

Mubanjun commented 1 year ago

在termux的issue里有几个置顶issue,其中有一篇是讲如何修复这个问题的,要是手机没过保就喽开开发者模式试试?我这个ColorOS12运行起来没啥问题,ColorOS13受安卓13行为变更限制,需要等Termux官方更新支持FDU才行

现有解决方案:重新修复signal9试试,去手机管家给他个启动管理三件套再在设置里给他个忽略电池优化的特殊权限试试