红联Linux门户
Linux帮助

vnc连接后只能看到终端

发布时间:2015-12-29 09:59:30来源:linux网站作者:mengfanteng

我在windows安装了VNC Viewer,远程链接ubunt12.04服务器,发现远程桌面只有一个终端,没有桌面。从网上查了一些资料,问题得以解决,记录如下:


修改~/.vnc/xstartup为:

#
Uncomment the following two lines for normal desktop:

unset

SESSION_MANAGER

unset

DBUS_SESSION_BUS_ADDRESS

#
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"
&

#xterm
-geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

#x-window-manager
&

export

DESKTOP_SESSION=Ubuntu-2d

export

GDMSESSION=ubuntu-2d

export

STARTUP="/usr/bin/gnome-session
--session=ubuntu-2d"

$STARTUP


vnc与window之间复制ubuntu12.04:http://www.linuxdiyf.com/linux/16882.html

VNC远程登陆ubuntu12.04远程桌面只有终端问题:http://www.linuxdiyf.com/linux/16676.html

Redhat Enterprise Linux 6.4配置VNC远程登录访问桌面:http://www.linuxdiyf.com/linux/13013.html

RedHat Enterprise Linux配置VNC多用户访问的方法:http://www.linuxdiyf.com/linux/13005.html

X11VNC在Ubuntu 14.04服务器版上开启远程桌面的使用:http://www.linuxdiyf.com/linux/10447.html