Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/DIR_COLORS missing but I still have colors?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 739
Location: Cincinnati, Ohio, USA

PostPosted: Wed Mar 17, 2004 8:26 pm    Post subject: /etc/DIR_COLORS missing but I still have colors? Reply with quote

I just installed Gentoo on a box and every time I log in as a non-root user, I get this:

Code:
dircolors: `/etc/DIR_COLORS': No such file or directory


However, I still have colored directories and filenames. Weird. I installed from stage1-x86-20040218 and went with ~x86 for my system emerge. I have baselayout-1.8.6.13-r1 install. I have reemerged baselayout, bash, and anything else I can think of to get a DIR_COLORS file.

Why don't I have one in the first place? Why do I have color nonetheless? Finally, where can I get a DIR_COLORS file to put in /etc to make this nag go away?

Thanks!
Back to top
View user's profile Send private message
Angrybob
Guru
Guru


Joined: 19 Apr 2003
Posts: 575

PostPosted: Wed Mar 17, 2004 10:36 pm    Post subject: Reply with quote

here it is, dont know where it came from though:-

Code:

# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
#
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/DIR_COLORS,v 1.3 2003/07/17 1 8:32:44 azarah Exp $
 
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
 
# Below, there should be one TERM entry for each termtype that is colorizable
TERM linux
TERM linux-c
TERM mach-color
TERM console
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM xterm
TERM xterm-debian
TERM rxvt
TERM screen
TERM screen-w
TERM vt100
TERM Eterm
 
# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
NORMAL 00       # global default, although everything should be something.
FILE 00         # normal file
DIR 01;34       # directory
LINK 01;36      # symbolic link.  (If you set this to 'target' instead of a
                # numerical value, the color is as for the file pointed to.)
FIFO 40;33      # pipe
SOCK 01;35      # socket
DOOR 01;35      # door
BLK 40;33;01    # block device driver
CHR 40;33;01    # character device driver
ORPHAN 40;31;01 # symlink to nonexistent file
 
# This is for files with execute permission:
EXEC 01;32
 
# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')
 
# If you use DOS-style suffixes, you may want to uncomment the following:
#.cmd 01;32 # executables (bright green)
#.exe 01;32
#.com 01;32
#.btm 01;32
#.bat 01;32
 
.tar 01;31 # archives or compressed (bright red)
.tgz 01;31
.arj 01;31
.taz 01;31
.lzh 01;31
.zip 01;31
.z   01;31
.Z   01;31
.gz  01;31
.bz2 01;31
.deb 01;31
.rpm 01;31
 
# image formats
.jpg 01;35
.gif 01;35
.bmp 01;35
.ppm 01;35
.tga 01;35
.xbm 01;35
.xpm 01;35
.tif 01;35
.png 01;35
.mpg 01;35
.avi 01;35
.fli 01;35
.gl 01;35
.dl 01;35
Back to top
View user's profile Send private message
Lajasha
Veteran
Veteran


Joined: 17 Mar 2004
Posts: 1040
Location: Vibe Central

PostPosted: Wed Mar 17, 2004 10:53 pm    Post subject: Reply with quote

I believe the reason that you still have colors is there is also a file in your home directory that list the color settings. Dont have access to my box at the moment but ill post its name later if no one else has.
Back to top
View user's profile Send private message
linuxkrn
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2003
Posts: 140
Location: Denver,Colorado

PostPosted: Fri Apr 23, 2004 7:08 pm    Post subject: Re: /etc/DIR_COLORS missing but I still have colors? Reply with quote

gcasillo wrote:
I just installed Gentoo on a box and every time I log in as a non-root user, I get this:

Code:
dircolors: `/etc/DIR_COLORS': No such file or directory


However, I still have colored directories and filenames. Weird. I installed from stage1-x86-20040218 and went with ~x86 for my system emerge. I have baselayout-1.8.6.13-r1 install. I have reemerged baselayout, bash, and anything else I can think of to get a DIR_COLORS file.

Why don't I have one in the first place? Why do I have color nonetheless? Finally, where can I get a DIR_COLORS file to put in /etc to make this nag go away?

Thanks!



The problem is they moved the files around. You need to remove the line from your ~/.bashrc that says
eval `dircolors /etc/DIR_COLORS`

That should fix it.
Back to top
View user's profile Send private message
el jeffe
n00b
n00b


Joined: 04 Dec 2003
Posts: 18
Location: Portland, OR

PostPosted: Sat Apr 24, 2004 12:51 am    Post subject: Reply with quote

maletek wrote:
I believe the reason that you still have colors is there is also a file in your home directory that list the color settings. Dont have access to my box at the moment but ill post its name later if no one else has.
I don't think it's a file, it's the LS_COLORS environmental variable.
_________________
Someone should do something about everything.
Back to top
View user's profile Send private message
cybrjackle
Apprentice
Apprentice


Joined: 09 Jan 2003
Posts: 248
Location: USA

PostPosted: Fri May 07, 2004 10:58 pm    Post subject: Reply with quote

cp Angrybob file from ^up^ there and

chmod 644 /etc/DIR_COLORS

you probably ran an etc-update and wrote over it.
Back to top
View user's profile Send private message
Paranoid
Apprentice
Apprentice


Joined: 07 Jan 2004
Posts: 290
Location: Portland, ME

PostPosted: Sat May 08, 2004 12:37 pm    Post subject: Reply with quote

There is also a copy of DIR_COLORS in your portage tree:

/usr/portage/sys-apps/fileutils/files/DIR_COLORS

I had this same problem last time I did a new install, for some reason it gets deleted.
_________________
A paranoid is someone who knows a little of what's going on.
William S. Burroughs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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