tmoe icon indicating copy to clipboard operation
tmoe copied to clipboard

chroot容器使用kali和debian安装xfce桌面都只有一个终端,背景全黑无法点击

Open moecly opened this issue 2 years ago • 11 comments

Are you rooted?

Yes

Desktop environment

🐭 xfce

Container type

chroot

Configuration

container value
os kali dev
arch arm64

host value
os android 13
arch arm64
terminal termux
tmoe latest

Describe the bug

Screenshots

Screenshot_20230131_185216

How to reproduce

1.安装debian的chroot容器 2.安装xfce桌面 3.使用vnc viewer打开

Expected behavior

Error Logs

Additional context

moecly avatar Jan 31 '23 10:01 moecly

执行startxfce4会报这个错误

/usr/bin/startxfce4: X server already running on display :2
xrdb: Connection refused
xrdb: Can't open display ':2'
dbus-update-activation-environment: error: unable to connect to D-Bus: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.

不知道有没有影响

moecly avatar Feb 01 '23 07:02 moecly

在那个终端里执行xfce4-session是什么结果

fish4terrisa-MSDSM avatar Feb 03 '23 01:02 fish4terrisa-MSDSM

在那个终端里执行xfce4-session是什么结果

xfce4-session: Cannot open display: .                      Type 'xfce4-session --help' for usage.

我试了lxde和xfce都不行,lxqt就正常显示

moecly avatar Feb 22 '23 15:02 moecly

图片 选择 Weekly builds --> xfce --> kali --> 节点: azure 然后下载 kali-xfce_arm64_2023-02-23_13-27-rootfs.tar.zst

我这边没问题。不管是 root 用户还是普通用户都能显示出画面。 Screenshot_20230224-204901_70

2moe avatar Feb 24 '23 12:02 2moe

你之前是不是用过xrdb,我没怎么试过。是不是那时的设置没关(你的DISPLAY变量设置的有问题。试着在vnc里面的终端运行export DISPLAY=:0再执行startxfce4xfce4-session试试:-)

fish4terrisa-MSDSM avatar Mar 01 '23 04:03 fish4terrisa-MSDSM

你之前是不是用过xrdb,我没怎么试过。是不是那时的设置没关(你的DISPLAY变量设置的有问题。试着在vnc里面的终端运行export DISPLAY=:0再执行startxfce4xfce4-session试试:-)

不清楚,容器都是新的,设置DISPLAY变量startxfce4也不行

moecly avatar Mar 10 '23 10:03 moecly

这里感觉是你的x配置有问题。很明显,现在你的x实现为xrdb,而非xvnc,所以我怀疑是不是你用过rdb。如果不是的话,或许可以看一下/bin下是否有xvnc文件,如果存在,可以临时执行sudo cp /bin/xrdb /bin/xrdb.orig sudo cp /bin/xvnc /bin/xrdb(标准错误操作.jpg)试下,也许可以运行。。。不过我建议试试重新安装和配置vnc和xfce

fish4terrisa-MSDSM avatar Mar 11 '23 08:03 fish4terrisa-MSDSM

这里感觉是你的x配置有问题。很明显,现在你的x实现为xrdb,而非xvnc,所以我怀疑是不是你用过rdb。如果不是的话,或许可以看一下/bin下是否有xvnc文件,如果存在,可以临时执行sudo cp /bin/xrdb /bin/xrdb.orig sudo cp /bin/xvnc /bin/xrdb(标准错误操作.jpg)试下,也许可以运行。。。不过我建议试试重新安装和配置vnc和xfce

bin下没有xvnc,有xrdb,但是我现在换了lxde桌面可以用vnc正常连接,xfce还是不行

moecly avatar Mar 12 '23 04:03 moecly

这里感觉是你的x配置有问题。很明显,现在你的x实现为xrdb,而非xvnc,所以我怀疑是不是你用过rdb。如果不是的话,或许可以看一下/bin下是否有xvnc文件,如果存在,可以临时执行sudo cp /bin/xrdb /bin/xrdb.orig sudo cp /bin/xvnc /bin/xrdb(标准错误操作.jpg)试下,也许可以运行。。。不过我建议试试重新安装和配置vnc和xfce

bin下没有xvnc,有xrdb,但是我现在换了lxde桌面可以用vnc正常连接,xfce还是不行

没有xvnc感觉可能是那个问题。lxde后装的,估计已经使用vnc了。顺带一提,xvnc没有的感觉是因为没有tigervnc。在我这边执行Xvnc -version结果如下:

/home/fish4terrisa〉Xvnc -version                                                               03/13/2023 11:59:44 上午

Xvnc TigerVNC 1.13.0 - built Feb  4 2023 22:12:23
Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101006

所以xvnc应该是tigervnc的binary。所以,没有xvnc应该是没有配置好tigervnc。至于为什么你lxde能用。。。。。。我不能理解欸。。。:)

fish4terrisa-MSDSM avatar Mar 13 '23 04:03 fish4terrisa-MSDSM

这里感觉是你的x配置有问题。很明显,现在你的x实现为xrdb,而非xvnc,所以我怀疑是不是你用过rdb。如果不是的话,或许可以看一下/bin下是否有xvnc文件,如果存在,可以临时执行sudo cp /bin/xrdb /bin/xrdb.orig sudo cp /bin/xvnc /bin/xrdb(标准错误操作.jpg)试下,也许可以运行。。。不过我建议试试重新安装和配置vnc和xfce

bin下没有xvnc,有xrdb,但是我现在换了lxde桌面可以用vnc正常连接,xfce还是不行

没有xvnc感觉可能是那个问题。lxde后装的,估计已经使用vnc了。顺带一提,xvnc没有的感觉是因为没有tigervnc。在我这边执行Xvnc -version结果如下:

/home/fish4terrisa〉Xvnc -version                                                               03/13/2023 11:59:44 上午

Xvnc TigerVNC 1.13.0 - built Feb  4 2023 22:12:23
Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101006

所以xvnc应该是tigervnc的binary。所以,没有xvnc应该是没有配置好tigervnc。至于为什么你lxde能用。。。。。。我不能理解欸。。。:)

的确是tigervnc包里的。

/home/fish4terrisa〉sudo pacman -F Xvnc                                                         03/13/2023 12:05:07 下午
community/tigervnc 1.12.0-3 [已安装: 1.13.0-1]
    usr/bin/Xvnc

所以看下你tigervnc是不是安装好了吧。。。

fish4terrisa-MSDSM avatar Mar 13 '23 04:03 fish4terrisa-MSDSM

这里感觉是你的x配置有问题。很明显,现在你的x实现为xrdb,而非xvnc,所以我怀疑是不是你用过rdb。如果不是的话,或许可以看一下/bin下是否有xvnc文件,如果存在,可以临时执行sudo cp /bin/xrdb /bin/xrdb.orig sudo cp /bin/xvnc /bin/xrdb(标准错误操作.jpg)试下,也许可以运行。。。不过我建议试试重新安装和配置vnc和xfce

bin下没有xvnc,有xrdb,但是我现在换了lxde桌面可以用vnc正常连接,xfce还是不行

没有xvnc感觉可能是那个问题。lxde后装的,估计已经使用vnc了。顺带一提,xvnc没有的感觉是因为没有tigervnc。在我这边执行Xvnc -version结果如下:

/home/fish4terrisa〉Xvnc -version                                                               03/13/2023 11:59:44 上午

Xvnc TigerVNC 1.13.0 - built Feb  4 2023 22:12:23
Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101006

所以xvnc应该是tigervnc的binary。所以,没有xvnc应该是没有配置好tigervnc。至于为什么你lxde能用。。。。。。我不能理解欸。。。:)

的确是tigervnc包里的。

/home/fish4terrisa〉sudo pacman -F Xvnc                                                         03/13/2023 12:05:07 下午
community/tigervnc 1.12.0-3 [已安装: 1.13.0-1]
    usr/bin/Xvnc

所以看下你tigervnc是不是安装好了吧。。。

好的好的,非常感谢

moecly avatar Apr 15 '23 02:04 moecly