Window mgr. font pb when using vnc for solaris 2.5 on solaris 2.7?

Guy Zelck guy.zelck "at" EDS.COM
Wed, 10 Nov 1999 11:48:52 +0000


Hello all,

I found the answer to my problems and I think they're well worth to put
in the FAQ to avoid hours of searching.
But first I'll reply to a couple of suggestions I received. Here they
come:


> As a quick test for font access and assuming the font-server will run o=
n
> your computer, try this line in vncserver after the line that reads "#
> Add font path and color database stuff here, e.g.:"
>
> $cmd .=3D " -fp tcp/localhost:7100";
>
> Good Luck,
>
> Larry.
>
I tried this to make sure but I knew my previous hardcoded font
locations were recognized by Xvnc.  (verified with 'xset q'). So the
result was the same.  It were the
Window mgrs. that received a font they did not recognize and hence would
not start up. The font server mechanism works though, it is started by
inetd on my solaris 2.7 sparc E-250 and Xvnc is willing to start.

> Albert Karlsson wrote
>
> Hi
> why not comile it yourself?
> get a compiler (gcc) at http://www.sunfreeware.com/
> that=B4s what I did.....
> mvh
> /A
>
Again I tried all options so I took the trouble to compile after
download of all the gnu stuff. Compilation succeeded but problem
remained.

The solution or the problem if you wish has to do with 'locale'
settings.
I am not very familiar with these things and the manuals are rather
cryptic.
The settings I had were (the installation of sol2.7 put these in place
but that's what we need):
LC_MONETARY=3Dnl_BE.ISO8859-15
LC_TIME=3Dnl_BE.ISO8859-15
LC_MESSAGES=3DC
LC_CTYPE=3Dnl_BE.ISO8859-15
LC_COLLATE=3Dnl_BE.ISO8859-15
LC_NUMERIC=3Dnl_BE.ISO8859-15

I call /usr/openwin/lib/xdm/Xsession from xstartup and that script sets
all kinds of variables that are needed like XFILESEARCHPATH and then
calls a script set_locale_env which doesn't exist (is openwin-sys its
replacement?). The path to the fonts should thus be adapted to your
locale (each language has its own font directories). It's rather
complicated (I don't fully grasp it myself) but here's what I did to
make things work:
I edited xstartup to add the following lines:
LC_COLLATE=3Den_US
LC_CTYPE=3Den_US
LC_MESSAGES=3DC
LC_MONETARY=3Den_US
LC_NUMERIC=3Den_US
LC_TIME=3Den_US
and did an 'export' of each of them.
When I then started 'vncserver' and connected: magic.
The 'en_US' values miss the '.charset' extension, perhaps it is this
extension that confuses the Xsession script. Of course I now work with
the wrong locale settings.

Anyway, I hope I can make a few others happy.

Guy. (guy.zelck "at" eds.com)



---------------------------------------------------------------------
The VNC mailing list - see http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------