vnc4server does *not* work for me with version 4.1.1+X4.3.0-10:

$ cat ~/.vnc/gando.dlitz.net\:1.log Xvnc Free Edition 4.1.1 - built May 15 2006 20:53:26
 Copyright (C) 2002-2005 RealVNC Ltd.
 See http://www.realvnc.com for information on VNC.
 Underlying X server release 40300000, The XFree86 Project, Inc
Wed Jul 5 18:33:36 2006
  vncext:      VNC extension running!
  vncext:      Listening for VNC connections on port 5901
  vncext:      created VNC server for screen 0
 error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Fatal server error:
 could not open default font 'fixed'
 xrdb: Connection refused
 xrdb: Can't open display 'gando.dlitz.net:1'
 xsetroot:  unable to open display 'gando.dlitz.net:1'
 /home/dwon/.vnc/xstartup: 6: twm: not found
 xterm Xt error: Can't open display: gando.dlitz.net:1

On Wed, Jul 05, 2006 at 10:19:24PM +0200, Ola Lundqvist wrote:
Hi

If this is the kind of solution you want, then you can very well just
use vnc4server instead as this is that kind of wrapper (that works).

Regards,

// Ola

On Fri, Jun 30, 2006 at 11:11:27PM -0600, Dwayne C. Litzenberger wrote:
As an interim measure, I've attached a shell script wrapper for Xvnc4 that (probably incorrectly) works around the problem.

Cheers,
- Dwayne

--
Dwayne C. Litzenberger <[EMAIL PROTECTED]>

#!/bin/sh

# Debian Xvnc4 rgb/font path workaound hack
# by Dwayne C. Litzenberger <[EMAIL PROTECTED]>
#
# Public domain.  No warranty.

set -e

get_font_path() {
    perl <<'EOF'

open(FILE, "< /etc/X11/xorg.conf") or die("Could not open xorg.conf");

@defaultfonts = (
    '/usr/share/fonts/X11/misc/',
    '/usr/share/fonts/X11/TTF/',
    '/usr/share/fonts/X11/OTF',
    '/usr/share/fonts/X11/Type1/',
    '/usr/share/fonts/X11/CID/',
    '/usr/share/fonts/X11/100dpi/',
    '/usr/share/fonts/X11/75dpi/',
);

@fonts = ();
while (<FILE>) {
    if (/^Section\s*"Files"\s*$/i) {
        $enable=1;
    }

    if ($enable and /^\s*FontPath\s*"([^"]+)"\s*/i) {
        push @fonts, $1;
    }

    if (/^\s*EndSection\s*$/i) {
        $enable=0;
    }
}

push @fonts, @defaultfonts;

print join(',', @fonts) . "\n";
exit(0);

EOF
}

exec /usr/bin/Xvnc4 -co /usr/share/X11/rgb -fp "`get_font_path`" "$@"


--
--------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------


--
Dwayne C. Litzenberger <[EMAIL PROTECTED]>


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to