在ubuntu上使用vncserver。
#apt-get install vnc4server
#vncserver
没有正常启动,查看日志信息如下:
10/12/07 10:11:54 Xvnc version 3.3.7 – built May 24 2007 12:47:11
10/12/07 10:11:54 Copyright (C) 2002-2003 RealVNC Ltd.
10/12/07 10:11:54 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
10/12/07 10:11:54 All Rights Reserved.
10/12/07 10:11:54 See http://www.realvnc.com for information on VNC
10/12/07 10:11:54 Desktop name 'X' (wp1998-linux:1)
10/12/07 10:11:54 Protocol version supported 3.3
10/12/07 10:11:54 Listening for VNC connections on TCP port 5901
10/12/07 10:11:54 Copyright (C) 2002-2003 RealVNC Ltd.
10/12/07 10:11:54 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
10/12/07 10:11:54 All Rights Reserved.
10/12/07 10:11:54 See http://www.realvnc.com for information on VNC
10/12/07 10:11:54 Desktop name 'X' (wp1998-linux:1)
10/12/07 10:11:54 Protocol version supported 3.3
10/12/07 10:11:54 Listening for VNC connections on TCP port 5901
Fatal server error:
could not open default font 'fixed'
查看了下vncserver的配置文件/etc/vnc.conf,显示默认字体目录配置在/usr/X11R6/lib/X11/fonts,但是此目录并未有字体文件,将x字体目录设为vncserver字体目录后启动正常。
$ vncserver -fp /usr/share/fonts/X11/misc