gpt4 book ai didi

Red Hat Enterprise Linux Server 5.3 (Tikanga) 上带有 X 光标的 VNC 黑屏

转载 作者:行者123 更新时间:2023-12-03 12:44:37 25 4
gpt4 key购买 nike

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












想改进这个问题?将问题更新为 on-topic对于堆栈溢出。

6年前关闭。




Improve this question




使用 vncserver :1 启动 VNC 服务器,客户端可以连接到服务器,但它只显示带有 X 光标的黑屏。
.vnc/xstartup的内容是:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

这是一个问题吗?

最佳答案

这在我身上发生了 2 次,我已经能够修复它 2 次。很可能只需要步骤 2. 然后 3. 是必需的,但是一旦我找到了一种可行的方法,我就不愿意改变......

  • .vnc/xstartup 文件归根用户所有,因此我将所有权更改为用户:chown user /home/user/.vnc/xstartup
  • .vnc/xstartup 文件是 664 (-rw-rw-r--.) - 我假设 vnc 使用“其他”权限来连接并允许交互,所以我将权限更改为 755:chmod 755 /home/user/.vnc/xstartup
  • 重新启动 vncserver 守护进程:service vncserver stop; service vncserver start
  • 关于Red Hat Enterprise Linux Server 5.3 (Tikanga) 上带有 X 光标的 VNC 黑屏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19639221/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com