JasonJoel Posted December 31, 2019 Share Posted December 31, 2019 (edited) I guess I'm getting old... I simply can not easily read some of the text on the unraid console when I get in there. The green background highlighting with blue text messes with my eyes. Is there any way to change that? Example, see the text on the directory listing: Edited January 2, 2020 by JasonJoel Quote Link to comment
Squid Posted December 31, 2019 Share Posted December 31, 2019 One option would be to use Putty from your desktop instead of the built-in terminal which will allow you to adjust any given colour. Quote Link to comment
JasonJoel Posted December 31, 2019 Author Share Posted December 31, 2019 (edited) Very true, and I can certainly do that. It is just to tantalizingly easy to click the terminal button when in the interface, though. To your point - putty is a fine workaround if it can't be changed. Edited December 31, 2019 by JasonJoel Quote Link to comment
Squid Posted December 31, 2019 Share Posted December 31, 2019 1 minute ago, JasonJoel said: if it can't be changed. doubt if it can without css changes on that subsystem.... I wouldn't hold your breath Quote Link to comment
JasonJoel Posted December 31, 2019 Author Share Posted December 31, 2019 Putty it is then. Thanks for your help, as always! Quote Link to comment
Squid Posted January 1, 2020 Share Posted January 1, 2020 Being cheeky here, but something like this is another option https://www.newegg.com/p/0JC-003X-000N4?Description=monochrome monitor&cm_re=monochrome_monitor-_-9SIADA59612858-_-Product 1 Quote Link to comment
JorgeB Posted January 1, 2020 Share Posted January 1, 2020 10 hours ago, JasonJoel said: The green background highlighting wsith blue text messes with my eyes. I feel the same, rarely use the builtin terminal for that reason, you should create a feature request for this, I've meaning to do it for some time. Quote Link to comment
FreeMan Posted January 1, 2020 Share Posted January 1, 2020 15 hours ago, Squid said: Being cheeky here, but something like this is another option https://www.newegg.com/p/0JC-003X-000N4?Description=monochrome monitor&cm_re=monochrome_monitor-_-9SIADA59612858-_-Product @JasonJoel I've got a 12" monochrome CRT in my garage I'm willing to part with. Cheap! Just can't bring myself to part with it quite yet. If you say no to it, I might just have to toss it in the bin... Quote Link to comment
Ford Prefect Posted April 19, 2020 Share Posted April 19, 2020 ...came here to look for a solution to the same issue. The problem as I understand it, is in the environment settings of "LS_COLORS" and "LS_OPTIONS". Normally something you would specify in your .bashrc file. For user root in unRAID, a .bash_profile exists, but I could not add any new LS_OPTIONS or LS_COLORS setings and make them stick. I now solved this issue by simply adding "alias ls="ls --color=never" to the end of the .bash_profile...now everthing is simple, without colors. IMHO much better than before Who the heck made blue with a green background the default ?? 1 Quote Link to comment
cinereus Posted April 27, 2020 Share Posted April 27, 2020 (edited) On 12/31/2019 at 11:39 PM, JasonJoel said: I guess I'm getting old... I simply can not easily read some of the text on the unraid console when I get in there. The green background highlighting with blue text messes with my eyes. Is there any way to change that? Example, see the text on the directory listing: You can change with the environment variable LS_COLORS. The dircolors command allows you to import a new set of colors: eval `dircolors dircolorsfile` e.g. Edited April 27, 2020 by cinereus Quote Link to comment
NMGMarques Posted July 24, 2020 Share Posted July 24, 2020 While we're at it, what does a blue text / green background folder mean? I somehow managed to change my Plex data folder to simply blue text and now it's the only folder in my appdata that isn't green background. Quote Link to comment
MikeGNola Posted October 13, 2020 Share Posted October 13, 2020 On 4/19/2020 at 2:41 PM, Ford Prefect said: ...came here to look for a solution to the same issue. The problem as I understand it, is in the environment settings of "LS_COLORS" and "LS_OPTIONS". Normally something you would specify in your .bashrc file. For user root in unRAID, a .bash_profile exists, but I could not add any new LS_OPTIONS or LS_COLORS setings and make them stick. I now solved this issue by simply adding "alias ls="ls --color=never" to the end of the .bash_profile...now everthing is simple, without colors. IMHO much better than before Who the heck made blue with a green background the default ?? I would appreciate info on how to do this. My eyes are getting worse and I really have trouble reading with the highlights Quote Link to comment
Ford Prefect Posted October 18, 2020 Share Posted October 18, 2020 ...what exactly are you missing?The way I described it doesn't work for you?Gesendet von meinem SM-G960F mit Tapatalk Quote Link to comment
local.bin Posted October 22, 2020 Share Posted October 22, 2020 On 10/18/2020 at 12:25 PM, Ford Prefect said: ...what exactly are you missing? Gesendet von meinem SM-G960F mit Tapatalk Where is the .bash_profile located that you edited and finally made it stick? On the Unraid stick so in boot, or are you editing the profile on your local machine? Quote Link to comment
Ford Prefect Posted October 22, 2020 Share Posted October 22, 2020 Well, of course the .bash_profile is in the home directory of each user that you use/want to connect with, into a CLI (shell/bash) session, i.e. via ssh. Normally this is user "root", when you are using the terminal button/icon from the dashboard, so in this case the file location is /root/.bash_profile You can edit & save it there, but it will be gone after each reboot. In order to persist this setting, you should edit & save the "go" script, which is located in /boot/config. This is what I added into my go script: # fix console colors echo "alias ls=\"ls --color=never\"" >> /root/.bash_profile ...hope this helps. Quote Link to comment
Reytak Posted June 12, 2021 Share Posted June 12, 2021 On 10/22/2020 at 9:22 PM, Ford Prefect said: Well, of course the .bash_profile is in the home directory of each user that you use/want to connect with, into a CLI (shell/bash) session, i.e. via ssh. Normally this is user "root", when you are using the terminal button/icon from the dashboard, so in this case the file location is /root/.bash_profile You can edit & save it there, but it will be gone after each reboot. In order to persist this setting, you should edit & save the "go" script, which is located in /boot/config. This is what I added into my go script: # fix console colors echo "alias ls=\"ls --color=never\"" >> /root/.bash_profile ...hope this helps. Awesome, finally a readable web console, thanks, I shared this in another thread where people were looking for a solution. Quote Link to comment
Nargousias Posted September 16, 2021 Share Posted September 16, 2021 On 1/1/2020 at 9:58 AM, FreeMan said: @JasonJoel I've got a 12" monochrome CRT in my garage I'm willing to part with. Cheap! Just can't bring myself to part with it quite yet. If you say no to it, I might just have to toss it in the bin... Hey... I played Everquest on a system with one of those. Made it easier to find rare Yew Leaves. In greyscale they were quite visible. Quote Link to comment
wayner Posted December 29, 2021 Share Posted December 29, 2021 Another vote to change the default color combo for directories. I know it can be customized, but how is this blue on green good for anyone? Quote Link to comment
stuckless Posted January 23, 2022 Share Posted January 23, 2022 I realize this is an old topic, but I wanted to chime in with an alternate fix for this. First off, it's worth noting that on Ubuntu at least, this the default color for a directory that is set with world writeable permissions (ie, anyone can write to it). And while it's hard to read, on Ubuntu, it's easier to read than the unRAID web console implementation. My guess is that in linux they really want you to know that this folder is basically insecure. While you could use the color=never option, I actually like having color, just not this color. So this is what I did. 1. I made a backup of /etc/DIR_COLORS 2. I edited the /etc/DIR_COLORS (nano /etc/DIR_COLORS) and changed the lines STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w) OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky to STICKY_OTHER_WRITABLE 01;33 # dir that is sticky and other-writable (+t,o+w) OTHER_WRITABLE 01;33 # dir that is other-writable (o+w) and not sticky This file talks about what those numbers are, and they explain them in the comments before this section. # 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 So you see that 34;42 is blue text on green background and changed it to bold (01) yellow (33) text with no background. 3. This changes this at the system level, but it likely will not survice a reboot, so, I made a backup of this file in the config area. cp /etc/DIR_COLORS /boot/config/DIR_COLORS.sean I don't reboot my unraid server very often, but, when I do, then then login and copy my backup from config to the /etc/DIR_COLORS. Although I haven't done this yet, and it'll likely be months before I actually verify this part. So now ls still shows me that those files are world writeable, but it's easier to read (for me). Given that these folders are created by unRAID is there an option in unRAID to never create world writeable folders? (because that would solve the problem as well, since they'd just show the normal blue) 1 Quote Link to comment
sasnak Posted May 6, 2022 Share Posted May 6, 2022 @stuckless Thank you very much. I was so tired of piping my LS commands to more just so that I could read the dang text. Quote Link to comment
ultra_bread Posted July 3, 2022 Share Posted July 3, 2022 I don't know why, but for some reason it didn't work to edit /etc/DIR_COLORS, /root/.dir_colors, or /root/.dircolors (but I think this does work on other linux systems I've used, so I'm stumped). What did work was to change the following line in my .bashrc: test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" to test -r ~/.dircolors && eval "$(dircolors -b | sed -E 's/30;42|34;42/01;33/g')" Here I'm just using sed to replace any occurrences of 30;42 or 34;42 in the default colors with 01;33 before doing eval to make the change. If your .bashrc doesn't have a section with this line, you can add the following chunk anywhere: # enable color support of ls and also add handy aliases if command -v dircolors &> /dev/null; then test -r ~/.dircolors && eval "$(dircolors -b | sed -E 's/30;42|34;42/01;33/g')" # I can't get the default line below to work on UNRAID but this works. #test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto --quoting-style=literal' #GNU coreutils version alias dir='dir --color=auto' alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi Quote Link to comment
domidomi Posted September 14, 2022 Share Posted September 14, 2022 On 7/3/2022 at 10:46 AM, ultra_bread said: # I can't get the default line below to work on UNRAID but this works. #test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" The reason why that doesn't work is that you're essentially trying to evaluate a shell script twice. 1. The content of ~/.dircolors is a shell script 2. dircolors -b ~/.dircolors will evaluate the script and print the results, which is empty 3. eval "$(dircolors -b ...)" will evaluate the empty string At least that's how I think it is. Just copy /etc/DIR_COLORS to ~/dircolors and work with that instead. It's much easier to read and maintain, and it prevents misunderstandings. Quote Link to comment
NAStyBox Posted May 27 Share Posted May 27 On 1/1/2020 at 5:12 AM, JorgeB said: I feel the same, rarely use the builtin terminal for that reason, you should create a feature request for this, I've meaning to do it for some time. +1 on the feature request. A setting change between "Standard" and "High Contrast" would be really nice. But the easier workaround is to highlight the text with the mouse. THAT makes it legible. It's not perfect but we all want to avoid installing one more app. I was finally able to remove Putty when I stopped working with iSeries. That old girlfriend gives me the shivers, lol. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.