Ubuntu14.04使用VNC解决gnome-session-is-accelerated: No composite extension

Ubuntu14.04目前仍是非常不稳定,使用VNC的时候,只有一个终端,检查日志以后,发现了如下错误:

$ cat /home/brett/.vnc/bt-desktop:1.log
……
gnome-session-is-accelerated: No composite extension.
gnome-session-check-accelerated: Helper exited with code 256
gnome-session-is-accelerated: No composite extension.
gnome-session-check-accelerated: Helper exited with code 256
  
** (process:6694): WARNING **: software acceleration check failed: Child process exited with code 1
  
** (gnome-session:6694): CRITICAL **: We failed, but the fail whale is dead. Sorry....
……

 

 

简单看了下,可能是gnome-session无法识别到OpenGL硬件加速导致的。该问题普遍存在于DELL大部分系列的服务器上。这个帖子提供了一种解决办法,但我试了下,貌似是无效的。

解决办法:

    

$ sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
 
$ vim ~/.vnc/xstartup  #修改此文件,写入以下内容
#!/bin/sh
 
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
  
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &

 

root@controller:~/.vnc# vi 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 &
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &

 

然后重新启动VNC终端即可

 

 

 

你可能感兴趣的:(vnc,vnc256)