rgb.txt missing; in VNC and FreeNX: xcolor and TK apps not working.

Reported by Rik.v.a. on 2009-01-30
4
Affects Status Importance Assigned to Milestone
X.Org X server
New
Undecided
Unassigned
Ubuntu
Undecided
Unassigned

Bug Description

This might be related to this bug, but is *not* a duplicate: http://bugzilla.ubuntu.com/show_bug.cgi?id=13921

This is in Ubuntu Desktop Intrepid Ibex.

I am trying to run Crossover Office over FreeNX. This is a paravirtualised machine so I have no access to the Xorg console #7. The exact error when trying to run, is:

"cxsetup:error: error initializing Tk: 'this isn't a Tk applicationunknown color name "Black"'. Check the DISPLAY variable (:1000.0) and your access permissions (see xauth or xhost)."

The problem might be that there is no rgb.txt in /etc/X11 or /usr/X11R6/lib/X11. There is a broken symlink in one of those directories, but the file is missing.
No big problem, I just copied the rgb.txt file from a Debian Etch machine to /etc/X11 and /usr/X11R6/lib/X11, but this did not fix the problem (rebooting does not help). I did a lot of searching on the Internet and installed xcolors. However, I can't run xcolors. The output is:

"Warning: Color name "snow" is not defined
xcolors: Not enough room in color map.
To see colors after this, use the -start option to name a starting color.
xcolors: no colors to display"

FYI, snow is the first line in rgb.txt (255 250 250 snow)

I also tried a VNC session instead of a FreeNX session, this made no difference.

I was able to run xcolors (after copying rgb.txt from another machine) and Crossover Office on another physical Ubuntu machine, without using FreeNX or VNC.

Rik.v.a. (rik) on 2009-01-30
description: updated
Peter Chubb (peterc-gelato) wrote :

This also affects netpbm. Try for example,
    ppmlabel -colour green "label" somefile.ppm
and get output
   ppmlabel: can't open color names database file named /usr/lib/X11/rgb.txt, /etc/X11/rgb.txt, or /usr/X11R6/lib/X11/rgb.txt and Environment variable RGBDEF not set. Set RGBDEF to the pathname of your rgb.txt file or don't use color names.

I suspect there may be other affected programs too. x11-common installs a dangling symlink to /etc/X11/rgb.txt, but according to the changelog in /usr/share/xorg/changelog.gz the UBUNTU maintainers removed /etc/X11/rgb.txt because the x server itself no longer needs it.

draco (draco31-fr) wrote :

See bug #300935 for more information about the side effect.
I mark this bug as duplicate
Thank you for the report

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers