Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
For what ever reason, this server that I SSH into displays directory colors in a very dark blue color instead of the bright blue that I am used to seeing on other boxes.
I have found only a few resources online that could show me the location to where I can adjust the brightness.
Does anyone know how I can adjust the directory colors. Is there something in /etc/bashrc ???
Its annoying to strain my eyes at the text that is almost black like the background.
The problem does not occur on your end, but on the remote end. The remote end has a set of dircolors which is used by your login shell. The ANSI color escape sequences are transmitted through ssh to your terminal emulator, which displays them as it should. So there are a few ways to remedy the situation, each occurring at a different point along the pathway:
The most elegant way is to change your dircolors settings on the remote machine. If you make them match your own dircolors settings, it would look the best.
A different solution is to disable dircolors altogether from within bash (or whatever shell’s builtin ls is being used).
A hacky solution is to tell the local terminal emulator (e.g., xterm) to display the requested color differently. This means the information for dark blue text will still be sent over ssh, it’s just interpreted differently by your terminal emulator.
The specific details for these depends on (respectively) the remote machine’s distro/setup, the remote shell in use, and the local terminal emulator in use. If you need more help, just provide the information corresponding to the solution you would like to chose (I would recommend the first).
Thank you for the tip! You pointed me into the right direction. The distro that I am working in is Fedora 4. I tracked down /etc/DIR_COLORS and found a line such as:
DIR 01;34 # directory
I believe that I need to add something along the lines of 1;34m ...the 'm' making it bright?
First off, /etc/DIR_COLORS is a system-wide file. Modifying it usually requires root permissions. I guess if you have those it’s okay, but if you don’t, try ~/.dir_colors or something instead.
Quote:
Originally Posted by young_rhkid
DIR 01;34 # directory
I believe that I need to add something along the lines of 1;34m ...the 'm' making it bright?
No, I don’t think so (‘m’ is used to terminate ANSI escape sequences as they occur in quoted strings). The ‘1’ means bold which is ok. The ‘34’ means dark blue. If you want light blue, replace it with ‘36’ (you might instead try to copy your local machine’s dircolors to the remote machine so you won’t have to guess these subtleties).
Last edited by osor; 10-30-2007 at 12:37 PM.
Reason: it is a file, not a directory
Yeah, so for I do understand that /etc/DIR_COLORS is a system-wide file in which is fine. I have root access with 3 other co-workers in which the navy blue text was killing the eyes when looking at directory names. I could not quite make heads or tails to the '1' or 'm' in the string so I could not tell what to change to make the dirs a brighter blue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.