Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 18-02-2006, 06:47 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Sep 2005
Posts: 23
Default bash colors and icewm themes


I innstalled knoppix 4.0 to y hd and have folloeing problems:

I wnna change color of prompt of my bash to green or sth else how to do it

I use icew as my desktop manger but i am unable to use themes as the normal user only root is able to switch between various thees.
ra_rav is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 18-02-2006, 08:40 PM   #2 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default

Hi there...ur havin same icon as me...thas cheating..huh..just kiddin!

OK change the text color!type

echo -e "\033[33m".......brown fireground
echo -e "\033[32m".......green foreground
echo -e "\033[31m".......blood red foregorund
echo -e "\033[37m".......grey
echo -e "\033[36m".......blue
echo -e "\033[35m".......purple
echo -e "\033[34m".......dark blue

echo -e "\033[38m".......foreground underlined

....checkout 4 white foregound urself by changing last 2 values!

Now to change backgorund..employe vlaue greater than 40
echo -e "\033[40m"...black background
echo -e "\033[41m"....red background
echo -e "\033[42m"....green bakground!


To make the foregorund thick issue
echo -e "\033[1m"

To normalise everythin issue
echo -e "\033[0m"

I hope this helps....mediator!!
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 18-02-2006, 08:57 PM   #3 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

Check whether the icewm themes have been installed globally (in /usr/share/icewm/themes or /usr/local/share/icewm/themes). Also check that the same directory can be read by normal users (ls -l in that directory should give drwxr-xr-x for all the directories within).
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 23-02-2006, 02:04 PM   #4 (permalink)
Right Off the Assembly Line
 
Join Date: Sep 2005
Posts: 23
Default I didnt mean this

thanks ujjwal for restoring my icewm themes, actually i did dis in a diff way but u provided me the trick.

well I had asked about how 2 change the color of the bash prompt which appears(somewhat) like this: "usr@host[/]" by d change of color i dont want to change d color of of the commands which i typ.
ra_rav is offline  
Old 02-03-2006, 02:39 PM   #5 (permalink)
Right Off the Assembly Line
 
Join Date: Sep 2005
Posts: 23
Default

huh gimme an answer
ra_rav is offline  
Old 02-03-2006, 05:59 PM   #6 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

Check this guide -

http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html

And check this for some sample color prompts -

http://mboedick.org/code/bash_prompts/
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 02-03-2006, 06:33 PM   #7 (permalink)
Wise Old Owl
 
vignesh's Avatar
 
Join Date: Jul 2004
Location: Chennai
Posts: 1,659
Default

By default bash has a few variables set eg colour try changing it there
vignesh is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by icebags
- by clinton
- by topgear

Advertisement




All times are GMT +5.5. The time now is 10:19 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2