Click to See Complete Forum and Search --> : 2 XTerm (Fluxbox) questions


Satanic Atheist
11-21-2003, 10:36 AM
I'm currently moving over to fluxbox from KDE and I've come across a couple of questions that I need help with, please.

First off, neither rxvt or XTerm has a colour layout when I open a terminal window. Everything is Black & White. However, if I "su -l" up to root and type "ls", everything is in colour. Is there anyway to enable colour for a normal user? The framebuffer on the virtual console is in colour for a normal user, as was Konsole in KDE.

Secondly, the keyboard map has gone screwy. I set it up in KDE for a UK keyboard and it was fine. Again, the framebuffer on the virtual console has the correct keymap.

Is there a way I can either set it globally or even just in Fluxbox?

Thanks,

James

Hayl
11-21-2003, 10:59 AM
it's in the ~/.bash_profile and ~/.bashrc

alias ls="ls --color=auto"

Satanic Atheist
11-21-2003, 11:18 AM
Thanks.

Can you explain why this would work under KDE, Gnome and the framebuffer console but not under Fluxbox?

I can quite happily swap back and forth between KDE and Fluxbox and the settings seem to alter. Can I assume that the .bashrc and .bash_profile are separate files in ~/.kde/...?

James

serz
11-21-2003, 12:20 PM
They should be in your home directory. Maybe KDE uses its own .bash_profile and .bashrc? :confused:

Satanic Atheist
11-21-2003, 03:02 PM
OK... I don't have a .bashrc or .bash_profile in my home directory.

Another thing - root's terminal show's the current working directory and user name (the standard bash prompt) whereas all I get is "bash" and the version.

Any ideas?

OK, I got one off the net but can someone post a "standard" file so that I can compare it? Cheers.

This is Slackware, by the way.

James

dboyer
11-21-2003, 03:42 PM
write something similiar in your .bashrc

alias ls="ls --color=auto"
PS1="[\u@\h - \w]$ "

\u is username, \h is computer name, and \w is current working directory... there are a lot of other options, and google/justlinux search should come up with them pretty quick...

slackware does this sort of thing to me all the time :-)

my bashrc is very slightly more complicated... got some color going on, and i use vim...:

alias vi='vim'
alias ls='ls --color'
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
PURPLE="\[\033[0;35m\]"
CYAN="\[\033[0;36m\]"
YELLOW="\[\033[0;33m\]"
NONE="\[\033[0m\]"


PS1="$GREEN[$BLUE\u$GREEN@$BLUE\h$GREEN - $BLUE\w$GREEN]\$$NONE "

echo
fortune fortunes fortunes2 linuxcookie