Vnc 查看器显示黑屏。以下是配置: 请找出问题所在?
cat /root/.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 &
====================================================================
vi /etc/sysconfig/vncservers
VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 1024x768"
Run Code Online (Sandbox Code Playgroud)
================================================== ================
运行级别:
chkconfig --list vncserver
vncserver 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Run Code Online (Sandbox Code Playgroud)
Aha*_*Aha 11
我想我应该回答我自己的问题……以防其他人遇到类似的问题。我刚刚将 localhost 添加到 xhost,瞧!我花了很多时间寻找这个解决方案,所以也许这会对你们中的一些人有所帮助。
chmod 775 xstartup
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
74128 次 |
| 最近记录: |