View previous topic :: View next topic |
Author |
Message |
gcasillo l33t
Joined: 23 Sep 2003 Posts: 739 Location: Cincinnati, Ohio, USA
|
Posted: Wed Mar 17, 2004 8:26 pm Post subject: /etc/DIR_COLORS missing but I still have colors? |
|
|
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 |
|
|
Angrybob Guru
Joined: 19 Apr 2003 Posts: 575
|
Posted: Wed Mar 17, 2004 10:36 pm Post subject: |
|
|
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 |
|
|
Lajasha Veteran
Joined: 17 Mar 2004 Posts: 1040 Location: Vibe Central
|
Posted: Wed Mar 17, 2004 10:53 pm Post subject: |
|
|
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 |
|
|
linuxkrn Tux's lil' helper
Joined: 13 Oct 2003 Posts: 140 Location: Denver,Colorado
|
Posted: Fri Apr 23, 2004 7:08 pm Post subject: Re: /etc/DIR_COLORS missing but I still have colors? |
|
|
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 |
|
|
el jeffe n00b
Joined: 04 Dec 2003 Posts: 18 Location: Portland, OR
|
Posted: Sat Apr 24, 2004 12:51 am Post subject: |
|
|
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 |
|
|
cybrjackle Apprentice
Joined: 09 Jan 2003 Posts: 248 Location: USA
|
Posted: Fri May 07, 2004 10:58 pm Post subject: |
|
|
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 |
|
|
Paranoid Apprentice
Joined: 07 Jan 2004 Posts: 290 Location: Portland, ME
|
Posted: Sat May 08, 2004 12:37 pm Post subject: |
|
|
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 |
|
|
|