mdg Posted September 30, 2003 Report Share Posted September 30, 2003 1) I used to have different colors for files, directories,links,etc in Eterm until I started using fluxbox. Since then it's all one color. How can I get the colors back? 2) I've set up Eterm (in fluxbox) without borders, but I still have the menubar on top. How to get rid of it? 3) Easiest question last: When I read a man page in terminal, I've never figured out how to get back to the prompt when I'm done. I've tried "exit", "esc", "end", "back, satan", but nothing works. What's the magic word? Quote Link to comment Share on other sites More sharing options...
mdg Posted September 30, 2003 Author Report Share Posted September 30, 2003 I figured out question 2: "buttonbar 0" in Eterm/user.cfg Quote Link to comment Share on other sites More sharing options...
SoulSe Posted September 30, 2003 Report Share Posted September 30, 2003 :mystilol: Press Q! (not even Satan would be able to exit any other way). Not sure about Eterm, I use Aterm. Sorry. But at least you aren't still stuck in a man page. Quote Link to comment Share on other sites More sharing options...
iphitus Posted September 30, 2003 Report Share Posted September 30, 2003 Glad we could help :) Quote Link to comment Share on other sites More sharing options...
Guest BooYah Posted September 30, 2003 Report Share Posted September 30, 2003 Is it only in Eterm that you don't have colors? Glad we could help or did this get solved on #musb? Quote Link to comment Share on other sites More sharing options...
mdg Posted October 1, 2003 Author Report Share Posted October 1, 2003 I've tried Eterm, aterm and Konsole, no colors in any of them. All files, dirs,links etc are one color. Colors do work though, my prompt and root prompt are still their original colors. Quote Link to comment Share on other sites More sharing options...
Guest BooYah Posted October 1, 2003 Report Share Posted October 1, 2003 The full command for getting colorized file listings is ls --color=auto You can create an alias for it in /etc/profile.d/ to make it availible to all users. But, before we go screwing around with things, look for the file /etc/profile.d/alias.sh and see if it's not already there, because I thought it was already aliased by default in Mandrake. Mine looks like this: if [ $TERM != "emacs" ];then LS_OPTIONS="$LS_OPTIONS --color=auto" fi alias ls="ls $LS_OPTIONS" Quote Link to comment Share on other sites More sharing options...
mdg Posted October 1, 2003 Author Report Share Posted October 1, 2003 I already have the option in /etc/profile.d/alias.sh, but it's not working for some reason. If I type ls --color=auto in Eterm the output is in color. Maybe I need to fix something in Eterm user.cfg. I'll have a look Quote Link to comment Share on other sites More sharing options...
mdg Posted October 1, 2003 Author Report Share Posted October 1, 2003 Here's my alias.sh file , maybe somebody can see an error # Linux-Mandrake configuration: Chmouel Boudjnah <chmouel@mandrakesoft.com> # # Common Aliases for a system. # # The Semantic is : # If exist a ~/.alias and the user hasn't specified a # LOAD_SYSTEM_ALIAS variables then don't do any system aliases # If there is no ~/.alias but the user has specified a # IGNORE_SYSTEM_ALIASES then don't do any system aliases. [[ -f ~/.alias ]] && [[ -z $LOAD_SYSTEM_ALIASES ]] && return 0 [[ -n $IGNORE_SYSTEM_ALIASES ]] && return 0 [ -e /etc/sysconfig/system ] && . /etc/sysconfig/system eval `dircolors --sh /etc/DIR_COLORS` # default ls options LS_OPTIONS="-F" # this should be removed once the bug with ls and multibytes locales is fixed [ -r /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh case "$LC_ALL$LC_CTYPE" in ja*|ko*|zh*) LS_OPTIONS="$LS_OPTIONS --show-control-chars";; *) if [ "`locale charmap`" = "UTF-8" ]; then LS_OPTIONS="$LS_OPTIONS --show-control-chars" fi;; esac # emacs doesn't support color if [ $TERM != "emacs" ];then LS_OPTIONS="$LS_OPTIONS --color=auto" fi alias ls="ls $LS_OPTIONS" alias d="ls" alias l="ls" # classical listing. alias ll="ls -l" # List detailled. alias la='ls -a' # List all. alias lsd="ls -d */" # List only the directory. alias cd..="cd .." alias s="cd .." alias p="cd -" alias md="mkdir" alias rd="rmdir" alias cp="cp -i" alias mv="mv -i" alias rm="rm -i" # Make a filter for less if [ -x /usr/bin/lesspipe.sh ];then export LESSOPEN="|/usr/bin/lesspipe.sh %s" fi if [ -n "$CLASS" -a "$CLASS" = "beginner" ];then # Size of a directory (by default Human Readable). alias du='du -h' # Size of a disk (by default Human Readable). # and don't probe supermount alias df='df -h -x supermount' fi Is there supposed to be a "DIR_COLORS" directory in /etc? Quote Link to comment Share on other sites More sharing options...
mdg Posted October 1, 2003 Author Report Share Posted October 1, 2003 One more thing: if I su to root in Eterm and type "ls", the output is colored, but as a normal user it's monocolor Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted October 1, 2003 Report Share Posted October 1, 2003 You maybe have it aliased in ~/.bashrc or /etc/bashrc incorrectly? Quote Link to comment Share on other sites More sharing options...
mdg Posted October 1, 2003 Author Report Share Posted October 1, 2003 OK Steve, you were on the right track. I copied if [ $TERM != "emacs" ];then LS_OPTIONS="$LS_OPTIONS --color=auto" fi alias ls="ls $LS_OPTIONS" from /etc/profiles.d/alias.sh to ~/.bashrc and I have my colors back! Thanks to you and Booyah Quote Link to comment Share on other sites More sharing options...
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.