Originally Posted by
josteinaj
I'm annoyed by the default coloring of NTFS directories in Ubuntu. Just watch:
(I believe the NTFS partition may have encryption enabled and the green background color symbolizes that the folder is encrypted?)
The screenshot is taken from a gnome-terminal running on my Ubuntu 7.10 laptop, ssh'ed into my desktop PC which has both a ntfs and a fat32/vfat partition on it. However the same colors appear when sshing in using PuTTY, or using gnome-terminal without sshing directly from the desktop computer.
So I guess it must be the "terminal-server" (if there is such a thing) on the Ubuntu 7.10 x64 desktop PC that defines the coloring scheme.
I want to remove the green background-color from the NTFS directories so it becomes readable. How do I do that?
You need to make changes to the dircolors command in your .bashrc script, but first you need to export the dircolors database to a file like this:
Code:
dircolors --print-database > ~/.mydircolors
then edit the file:
Code:
nano ~/.mydircolors
and change the colors to your preferences. Save the file then make changes to your .bashrc script. So you would:
then locate the following portion:
Code:
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi
and change the string:
to
Code:
"`dircolors ~/.mydircolors`"
so when you login your bash script will change the defaults to your colors.
Bookmarks