linux – VNC查看器问题 – 显示黑屏

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"

================================================== ===============

运行级别:

chkconfig --list vncserver
vncserver       0:off   1:off   2:on    3:on    4:on    5:on    6:off

解决方法

我想我应该回答我自己的问题……万一其他人遇到类似的问题.我刚刚将localhost添加到xhost,瞧!我带了很多狩猎来找到这个解决方案,所以也许这会帮助你们几个人.
chmod 775 xstartup

相关文章

insmod和modprobe加-f参数导致Invalid module format错误 这...
将ArchLinux安装到U盘 几个月前入门Arch的时候上网搜了不少安...
1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...