LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-18-2009, 03:41 AM   #1
rehan999
Member
 
Registered: Aug 2007
Posts: 134

Rep: Reputation: 15
Unhappy xterm colour error


good morning

I am using redhat enterprise linux version 5.3.

when i user
#xterm -bg black

Warning: Color name "black" is not defined
Warning: Color name "red" is not defined
Warning: Color name "green" is not defined

Gives color warning and does not set the correct background.

Can any one please help me.

Thanks and Regards.
 
Old 02-18-2009, 03:52 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Check in your /etc/X11/xorg.conf and look at the Files section. You should see an entry like this:
Code:
        RgbPath      "/usr/X11R6/lib/X11/rgb"
in this example I have the file /usr/X11R6/lib/X11/rgb.txt containing the definitions of colors. Check if the file specified in your xorg.conf exists and if not either copy the rgb.txt from where it actually resides or change the entry in xorg.conf. To look for that file in your system just use find
Code:
find / -name rgb.txt
 
Old 02-18-2009, 04:36 AM   #3
rehan999
Member
 
Registered: Aug 2007
Posts: 134

Original Poster
Rep: Reputation: 15
Thanks for your reply.

i see the entry RgbPath "/usr/X11R6/lib/X11/rgb" in /etc/X11/xorg.conf file but when i try to cd to
#cd /usr/X11R6/
ls
i see only bin.


Thanks and Regards
 
Old 02-18-2009, 04:40 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Strange. The file /usr/X11R6/lib/X11/rgb.txt is provided by the package xorg-x11-libs. Check if you have this package installed and eventually look at the list of installed files:
Code:
# rpm -q xorg-x11-libs
# rpm -ql xorg-x11-libs | grep rgb
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm error display not set fordwrench Slackware 13 12-04-2012 07:28 AM
xterm Xt error: Can't open display: centguy Linux - Software 2 01-14-2009 10:40 PM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM
Xterm Error Not Able To Display ujnam Linux - Software 2 11-01-2004 06:50 AM
xterm: Error 32 problem Abe_the_Man Linux - General 2 12-23-2003 01:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration