登陆VNC灰色界面的解决方法
时间:2014-12-27 00:59 来源:linux.it.net.cn 作者:IT
灰色的屏幕解决方法:
打开家目录下启动脚本
[root@shpx ~]# vi .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 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
gnome-session &
将
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
的注释去掉。
将
twm &
改成
gnome-session &
保存并退出,并
启动/重启vncserver服务即可出现久违的桌面了。
[root@shpx ~]# /sbin/service vncserver restart
(责任编辑:IT)
灰色的屏幕解决方法: 打开家目录下启动脚本 [root@shpx ~]# vi .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 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” & gnome-session & 将 unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc 的注释去掉。 将 twm & 改成 gnome-session & 保存并退出,并 启动/重启vncserver服务即可出现久违的桌面了。 [root@shpx ~]# /sbin/service vncserver restart (责任编辑:IT) |