红联Linux门户
Linux帮助

VNC

发布时间:2011-05-11 22:45:15来源:红联作者:surron
VNC Viewer为什么连接后,不能显示桌面,而只有一个Terminal窗口
文章评论

共有 2 条评论

  1. surron 于 2011-05-28 15:27:31发表:

    谢谢了
    已经解决了

  2. yhzm1314 于 2011-05-12 01:25:44发表:

    你安装的是 vnc4server ?
    修改 ~/.vnc/xstartup

    添加 # 号注释掉 x-window-manager & 这一行,然后添加一行
    gnome-session &

    修改好以后的配置文件如下:

    #!/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-session &




    切换到 root
    chmod 755 /etc/X11/xinit/xinitrc