Tuesday, December 27, 2005

How to set colors in the Linux Console ?

That dark blue color of the directories from the console, i would like to change them.

Execute
/usr/bin/dircolors, you will see an output like this:
LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:
do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:
*.tar=01;31:*.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:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:
*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:
*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:
*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:
*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:
*.ogg=01;35:*.mp3=01;35:*.wav=01;35:';
export LS_COLORS

Edit the output to your needs.

di=01;34 are the directories.

The codes are these:
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

These are the variables and every abbreviation in the exported LS_COLORS variable:
NORMAL 00 # global default, although everything should be something.
FILE 00 # normal file
DIR 01;34 # directory
LINK 01;36 # symbolic link
FIFO 40;33 # pipe
SOCK 01;35 # socket
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

Paste the edited output of "dircolors" into .bashrc or .bash_profile or /etc/profile

You must have this likes too:
alias dir='dir --color'
alias ls='ls --color'

Tuesday, December 20, 2005

Fishing in Argentina



Hello Linux Fans, currently i am in Lucila del Mar a pacefull place in Buenos Aires, Atlantic Coast. Here i have Cybercafes, comodities, a wharf where i fish. It a very little town in the coast, with nice people and very peacefull.