码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu 14.04 vnc use gnome

时间:2015-03-16 22:50:42      阅读:924      评论:0      收藏:0      [点我收藏+]

标签:

New ‘jenkinsmaster.cc:3 (root)‘ desktop is jenkinsmaster.cc:3

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/jenkinsmaster.cc:3.log

cat jenkinsmaster.cc\:1.log

Xvnc Free Edition 4.1.1 - built Nov 18 2014 16:07:18
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40300000, The XFree86 Project, Inc


Mon Mar 16 21:57:03 2015
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: created VNC server for screen 0
error opening security policy file /etc/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
x-terminal-emulator: Unknown option ‘ls‘.
x-terminal-emulator: Use --help to get a list of available command line options.
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:2944): WARNING **: software acceleration check failed: Child process exited with code 1

** (gnome-session:2944): CRITICAL **: We failed, but the fail whale is dead. Sorry....

Mon Mar 16 21:57:32 2015
Connections: accepted: 0.0.0.0::5644
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VncAuth(2)

Mon Mar 16 21:57:35 2015
VNCSConnST: Server default pixel format depth 16 (16bpp) little-endian rgb565
VNCSConnST: Client pixel format depth 16 (16bpp) little-endian rgb565

最终解决方案

 

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

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

技术分享

完整的xstartp脚本内容

技术分享
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

#unset SESSION_MANAGER
#unset DBUS_SESSION_BUS_ADDRESS
#startxfce4 &

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

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

[ -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" &
gnome-session &
View Code

 

ubuntu 14.04 vnc use gnome

标签:

原文地址:http://www.cnblogs.com/ruiy/p/4343055.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!