Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 06-03-2003, 06:56 PM   #1
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Rep: Reputation: 30
preserving konsole colours

When i boot my copy of slackware, at the login screen (terminal) after i logged in, the terminal displays color for special stuff like ls folder (executable files (green), tarballs (red) etc). but when i am in x windows and opened a konsole window, ls gave me only black colours (not that i have set the theme - in vi/vim it still displays the color but not in console) why is that? and my vim does not show some of it properly ( it did before, for c codes, syntax highlighting ) anyone know how i can fix that?

(i installed kde 3.1.2 over 3.0 and that is the result.. it also changed my bash to bash-2.05b from [root@darkstar], which i wish i can restore too...) anyone know how? thanks in advance
Old 06-03-2003, 08:50 PM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 69
Your "bash" prompt can be set by using PS1 settings (do a search on that, I'm not too familiar since I'm not concerned with that feature) in your /etc/profile. This is also the area where you might wanna place the aliases below...

To get colors, I suggest aliasing ls to ls --color. I prefer to use ~/.bashrc but you can set them in /etc/profile for system wide changes (which on a single user system you might want so root has the changes too). See man alias, but here's an example:
alias 1394='/sbin/modprobe ohci1394 && /sbin/modprobe raw1394'
alias firewire='/sbin/modprobe ohci1394 && /sbin/modprobe raw1394'
alias ls='ls --color'
alias ll='ls -l --color'
alias la='ls -a --color'
alias lal='ls -al --color'
alias copycd='dd if=/dev/cdrom conv=noerror | cdrecord dev=0,1,0 speed=48 -v -eject -'

Old 06-03-2003, 09:18 PM   #3
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Original Poster
Rep: Reputation: 30
wow, thanks a lot MasterC, i got it right now
lsmod > modules_loaded.txt

hostname -v kazslack
unset PS1
PS1="[\t] \u@\h:\w/> "
export PS1
alias ls='ls --color'
that's mine


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preserving Permissions RemusX2 Linux - Software 2 07-10-2005 12:20 PM
Can I set ssh to change my konsole colours when I connect to a remote box? davee Linux - General 2 12-16-2004 03:56 PM
scp with preserving permissions pradi_net Linux - Software 1 06-08-2004 09:00 AM
Preserving permissions when using cp pilot1 Linux - General 2 08-16-2003 06:29 AM
help on preserving applications when upgrading doublefailure Linux - General 5 10-02-2002 12:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration