Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with terminal emulators and color
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dobysirius
n00b
n00b


Joined: 27 Nov 2005
Posts: 69
Location: Sofia, Bulgaria

PostPosted: Tue Mar 14, 2006 3:22 pm    Post subject: Problems with terminal emulators and color Reply with quote

Until very recently, everything worked fine. But at some point, whenever I launch xterm I would get
Code:
$ xterm
Warning: Color name "black" is not defined
xterm: Cannot allocate color green

Consequently, green would be displayed as black in xterm. Other colors are visible (blue, for example), but others show up as black and produce another
Code:
xterm: Cannot allocate color red

Color works perfectly fine in Konsole. I tried aterm, however, and the problem appears there too:
Code:
$ aterm
aterm: can't load color "Black", colorID = 2, (29)
aterm: can't load color "Black", colorID = 2, (29)
aterm: can't load color "Red3", colorID = 3, (29)
aterm: can't load color "Red3", colorID = 3, (29)
aterm: can't load color "Green3", colorID = 4, (29)
aterm: can't load color "Green3", colorID = 4, (29)
aterm: can't load color "Yellow3", colorID = 5, (29)
aterm: can't load color "Yellow3", colorID = 5, (29)
aterm: can't load color "Blue3", colorID = 6, (29)
aterm: can't load color "Blue3", colorID = 6, (29)
aterm: can't load color "Magenta3", colorID = 7, (29)
aterm: can't load color "Magenta3", colorID = 7, (29)
aterm: can't load color "Cyan3", colorID = 8, (29)
aterm: can't load color "Cyan3", colorID = 8, (29)
aterm: can't load color "AntiqueWhite", colorID = 9, (29)
aterm: can't load color "AntiqueWhite", colorID = 9, (29)
aterm: can't load color "Grey25", colorID = 10, (29)
aterm: can't load color "Grey25", colorID = 10, (29)
aterm: can't load color "Red", colorID = 11, (29)
aterm: can't load color "Red", colorID = 11, (29)
aterm: can't load color "Green", colorID = 12, (29)
aterm: can't load color "Green", colorID = 12, (29)
aterm: can't load color "Yellow", colorID = 13, (29)
aterm: can't load color "Yellow", colorID = 13, (29)
aterm: can't load color "Blue", colorID = 14, (29)
aterm: can't load color "Blue", colorID = 14, (29)
aterm: can't load color "Magenta", colorID = 15, (29)
aterm: can't load color "Magenta", colorID = 15, (29)
aterm: can't load color "Cyan", colorID = 16, (29)
aterm: can't load color "Cyan", colorID = 16, (29)
aterm: can't load color "White", colorID = 17, (29)
aterm: can't load color "White", colorID = 17, (29)
aterm: can't load color "black", colorID = 21, (29)

I then get an aterm window with only black as foreground and gray as background, other colors showing up as either gray or black.

I don't think I've touched anything since this started happening, it used to work perfectly. Apart from the terminal emulators, I've no color problems with X. (And Konsole's colors are fine, as mentioned above)
Back to top
View user's profile Send private message
pointsman
n00b
n00b


Joined: 19 Mar 2006
Posts: 4

PostPosted: Sun Mar 19, 2006 3:10 pm    Post subject: Reply with quote

Same problem here. I've been in the process of migrating to xorg 7.0, and when I finally got the ati-driver to stop with the kernel panics and black-screens, this happens. After reading your post I emerged Konsole, and it worked.

Anyone got any hints on how to get xterm & aterm working again?
_________________
He is the pointsman. He is called that because he throws the lever that changes the points. And we go to Happyville, instead of to Pain City.
Back to top
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Sun Mar 19, 2006 3:33 pm    Post subject: Reply with quote

In your xorg.conf, change:

Code:
RgbPath "..."

to
Code:
RgbPath "/usr/share/X11/rgb"
Back to top
View user's profile Send private message
pointsman
n00b
n00b


Joined: 19 Mar 2006
Posts: 4

PostPosted: Sun Mar 19, 2006 6:46 pm    Post subject: Reply with quote

Thank you very much! Worked like a charm.
_________________
He is the pointsman. He is called that because he throws the lever that changes the points. And we go to Happyville, instead of to Pain City.
Back to top
View user's profile Send private message
askwar
n00b
n00b


Joined: 10 Jul 2004
Posts: 35
Location: Wuppertal, Germany

PostPosted: Wed May 10, 2006 8:46 am    Post subject: What about VNC? Reply with quote

Hi!

Since recently, I'm seeing the same errors. I'm also using modular X (ie. X7). In my /etc/X11/xorg.conf, I've got:
Code:
    RgbPath     "/usr/share/X11/rgb"

There's such a file:
Code:
[10:18:07 vz6tml@dewup-ww02:~] $ ls -la /usr/share/X11/rgb*
-rw-r--r-- 1 root root 17371 10. Mai 10:07 /usr/share/X11/rgb.txt

[10:29:58 vz6tml@dewup-ww02:~] $ epm -qf /usr/share/X11/rgb.txt
rgb-1.0.0


But when I start xterm, I get:
Code:
[10:18:48 vz6tml@dewup-ww02:~] $ xterm
Warning: Color name "black" is not defined
xterm: Cannot allocate color red
xterm: Cannot allocate color magenta
xterm: Cannot allocate color cyan
xterm: Cannot allocate color green
xterm: Cannot allocate color green3


One (maybe) important note is, that I ALWAYS use VNC (namely the net-misc/vnc-4.0-r1 server) to connect to the system. Client is RealVNC 4.1.1 on Windows XP.

Does vnc use xorg.conf at all?

How to solve this problem?

Thanks,
Alexander
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sun May 14, 2006 3:19 pm    Post subject: Reply with quote

Same problem here. Things Ive tried since changing to xorg-7 and getting this prob. In CL, consoles, ALT-F1 and such run fine.

INFO Portage 2.1_rc1 (default-linux/x86/2005.1, gcc-4.1.0, glibc-2.4-r2, 2.6.15.1 i686)
CFLAGS= "-march=athlon-xp -Os -pipe "

1 different kernel
2 removeing nvidia-kernel
3 removing .Xdefaaults
- 3A. Many edits of .Xdefaults includeing coping tvw/Xterm-color into Xdefaults and then wacking on it some.
4 Changineg Bg/Fg from Black/white to white/black
5 re-emerge ncurses and xterm
6 umpteen checks that " RgbPath "/usr/share/X11/rgb" " is real and in xorg.conf.

Any ncurses based prog like "mc" or kernel "make menuconfig" when run in xterm, becaome white screens with no decrenable text. I normally run with black background and white text.
vim does give me one color a mudy maude for keywords and white text for the rest
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
askwar
n00b
n00b


Joined: 10 Jul 2004
Posts: 35
Location: Wuppertal, Germany

PostPosted: Sun May 14, 2006 6:48 pm    Post subject: Reply with quote

Hi!

Could you (and anybody else with this problem) please add a comment to the bug xorg 6.8.1.902 undefined color "black", so that the devs see that there is something that needs to be fixed?

Thanks!
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sun May 14, 2006 11:30 pm    Post subject: Reply with quote

I just emerged rxvt-2.10.7-r3 and it works fine, well color promt is back, ls outputs color and mc works.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
askwar
n00b
n00b


Joined: 10 Jul 2004
Posts: 35
Location: Wuppertal, Germany

PostPosted: Mon May 15, 2006 5:19 am    Post subject: Reply with quote

But in xterm you still get that error, don't you?

When I start gnome-terminal, I also don't get that error. But with some applications, I DO get that error. And sometimes it's not possible to switch the application.

None the less: Could you maybe add a comment to the xorg 6.8.1.902 undefined color "black"?
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Mon May 15, 2006 5:26 am    Post subject: Reply with quote

I already did, add comment to bug. I'm haveing no probs with "rxvt" but xterm is still screwd.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
askwar
n00b
n00b


Joined: 10 Jul 2004
Posts: 35
Location: Wuppertal, Germany

PostPosted: Wed May 17, 2006 6:43 am    Post subject: Reply with quote

Thanks for adding a comment.

The real problem for me is, that it's not only xterm which is screwed (I actually couldn't care less about xterm...), but much more, that other applications (like stm on HP-UX, to which I connect over SSH) are also broken. That's making my work harder - but why am I using ~x86 in the first place, eh? :)
Back to top
View user's profile Send private message
chaonis
n00b
n00b


Joined: 05 Apr 2005
Posts: 36

PostPosted: Thu May 18, 2006 5:57 pm    Post subject: Reply with quote

similar problem. Xorg works great under local connection (startx, xdm), but not in VNC environment.

So far I found these two problems:
* xterm gives the warning, but still runs...
mc under xterm gives a black screen, however, the keys still works since I can use F10 to quit the program
* mrxvt gives the warning and terminated.

I am wondering if vncserver is using /etc/X11/xorg.conf. Actually, it must, since when I enable/disable composite option, I can see the changes in XXXXX:1.log file. However, the vnc log gives so little info that I can barely use it for troubleshooting. Anybody knows anyway to activate the more verbose log?

my env:
xorg 7.0-r1 freshly install ( not from 6.8 upgrade)
rgb 1.0.0
kernel 2.6.15-gentoo r7b
tightvnc 1.2.9-r1
Back to top
View user's profile Send private message
chaonis
n00b
n00b


Joined: 05 Apr 2005
Posts: 36

PostPosted: Thu May 18, 2006 6:11 pm    Post subject: Reply with quote

OK. seems like tight-vnc or maybe other vnc servers still goes to /usr/lib/X11 for the rgb file.

I added the symlink in that folder and all works now:

Code:

cd /usr/lib/X11
ln -sf /usr/share/X11/rgb.txt


By the way, I am using ~amd64 build. Those cheap ($120) Compaq SR1710nx boxes work really great!! :D
Back to top
View user's profile Send private message
jekyll
n00b
n00b


Joined: 07 Mar 2006
Posts: 63

PostPosted: Sat Jun 10, 2006 8:02 am    Post subject: Reply with quote

chaonis wrote:
OK. seems like tight-vnc or maybe other vnc servers still goes to /usr/lib/X11 for the rgb file.

I added the symlink in that folder and all works now:

Code:

cd /usr/lib/X11
ln -sf /usr/share/X11/rgb.txt


By the way, I am using ~amd64 build. Those cheap ($120) Compaq SR1710nx boxes work really great!! :D


THANK YOU chaonis! I couldn't figure out what was wrong! Now, my colors are working quite nicely in vnc (RealVNC 4.1.2 - gentoo 2.6.16-r7).

-jekyll
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum