vnc viewer灰屏黑屏问题

先用xhell远程登录服务器,执行以下命令

编辑xstartup文件:  vi  /home/zhenglf/.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 &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &

    gnome-panel &
    gnome-settings-daemon &
    metacity &
    nautilus &
    gnome-terminal &

 

vncserver -kill :39

vncserver -geometry 1920x1080 :39

1920x1080为客户端屏幕分辨率

 

 

vnc viewer灰屏黑屏问题_第1张图片

你可能感兴趣的:(Linux(Centos7),基础知识)