Operating System - HP-UX
1824169 Members
3220 Online
109669 Solutions
New Discussion юеВ

VNC, X "invalid color name" problem on hpux 11.31

 
SOLVED
Go to solution
Bob_Vance
Esteemed Contributor

VNC, X "invalid color name" problem on hpux 11.31

I have used VNC on HPUX 11.11 & 11.23 for years and, particularly, version 4.1.2 for quite a while.
I have just installed VNC 4.1.2 on Itanium Blade w hpux 11.31 and am having color problems.
Under VNC with twm, all the windows title bars are black, rather than the nice red that I'm used to.

The programs run, it's just the borders. E.g., swinstall comes up with its own window background in blue, as usual, but the twm window title bar is black.


When I set a twm startup file to specify colors,
e.g.,

Color
{
MenuBackground "gray50"
MenuForeground "white"
BorderColor "red" { "XTerm" "yellow" }
TitleForeground "green"
TitleBackground "blue"
}

it gets errors:

... twm: invalid color name "black"
... twm: invalid color name "white"
... twm: invalid color name "gray50"
... twm: invalid color name "white"
... twm: invalid color name "red"
... twm: invalid color name "green"
... twm: invalid color name "blue"
... twm: invalid color name "yellow"
... twm: invalid color name "yellow"
... twm: invalid color name "yellow"

In fact, all X programs that I've tried get error,
e.g.
charley ## xterm -bd black &
... Warning: Color name "black" is not defined

or

charley ## xclock -hands yellow
... Warning: Color name "yellow" is not defined



So, it seems to be an X thing, rather than just twm.
The color file exists:

charley ## ll /etc/X11/rgb.txt
-r--r--r-- 1 bin bin 21578 Mar 11 1996 /etc/X11/rgb.txt

and has the right definitions.


I'm obviously not an X expert ;>), so any ideas are welcome.

bv
"The lyf so short, the craft so long to lerne." - Chaucer
4 REPLIES 4
Michael Steele_2
Honored Contributor
Solution

Re: VNC, X "invalid color name" problem on hpux 11.31

Hi
Well, lets see if you've got the default colordatabase to begin with:

/usr/lib/X11/rgb.txt

Does it look like this?
RED GREEN BLUE
aquamarine 112 219 147
black
blue
blue violet
brown
cadet blue
corol
Support Fatherhood - Stop Family Law
Bob_Vance
Esteemed Contributor

Re: VNC, X "invalid color name" problem on hpux 11.31

That was it!!
Apparently, normally,
"/usr/lib/X11/rgb.txt"
should be a smlink to
"/etc/X11/rgb.txt"
.
Even though the actual file
"/etc/X11/rgb.txt"
exists on the 11.31 sysem, the symlinks in /usr/lib/X11/ were not there.

On a working 11.23 system, I had earlier done a find for rgb.txt on /usr. But had I only looked for "-type f" and did not include symlinks, so I did not notice that
"/usr/lib/X11/rgb.txt" should exist.
"The lyf so short, the craft so long to lerne." - Chaucer
Bob_Vance
Esteemed Contributor

Re: VNC, X "invalid color name" problem on hpux 11.31

Ooops I posted before fini instead of preview.

So I fixed the problem with:

(for F in rgb.dir rgb.pag rgb.txt
do ln -s /etc/X11/$F /usr/lib/X11/$F
done
)

This brings up another issue.

NONE of the symlinks, like X0devices, exist in /usr/lib/X11, except
... config -> /usr/contrib/imake/config
.
It's as if the X system is not initialized or something.

By whom and when are these symlinks set up?
Do you know how to "repair" or initialize it.

bv

"The lyf so short, the craft so long to lerne." - Chaucer
Michael Steele_2
Honored Contributor

Re: VNC, X "invalid color name" problem on hpux 11.31

Hi

You should report this to HP as a bug to fix
Support Fatherhood - Stop Family Law