加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-14 02:44:12 所属栏目:Linux 来源:网络整理
导读: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
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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读