关于CentOS下VNC黑屏,xstartup权限不够,淡痛的问题。。。/

liuzhengkang 2011-12-12 11:15:49
问题描述:远程连接vnc里黑屏,鼠标为交叉十字。
相关配置文件:
xstartup:

# 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 &
gnome-session &

vncservers:

# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600 "


修改权限: chmod 777 /root/.vnc/xstartup


坑哥啊,查看日志文件还是显示下面的错误:

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/localhost.localdomain:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

Xvnc Free Edition 4.1.2
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 70101000, The X.Org Foundation

Fri Jan 18 00:44:51 2002
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: Listening for HTTP connections on port 5801
vncext: created VNC server for screen 0
sh: /root/.vnc/xstartup: 权限不够


求救各位大虾,这是怎么回事。泪奔了。。。
...全文
1681 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuzhengkang 2011-12-18
  • 打赏
  • 举报
回复
/root/.vnc/xstartup: 权限不够
是因为临时文件太多,删除临时文件,就可以了。
准备结贴了,顶吧,接分。
liuzhengkang 2011-12-12
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 lgxwqq111 的回复:]

试试root启动xstartup
[/Quote]
问题是我都是以root用户登录,并且操作的。没有创建其它用户。
freetstar 2011-12-12
  • 打赏
  • 举报
回复
试试root启动xstartup

19,620

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧