How to change the system prompt and BG of terminal?

Hi all,

I was wondering how to change the PS1 to my liking?
I tried changing it using PS1='my choice'
it worked but the subsequent terminals i open will not have it as the default PS1 ,how do i change it?
also i am running as super user, and i need to exec bash, to get the bash environment...
So whenever i exec bash, i get the
"bash3.2#" system prompt....
How to change it permanently?

Other question is how to change the BG color of the terminal?is there a pkg available that does it or can it be done out of the box?
Again i want this to be permanent so that every time i open terminal i should get the changed BG and not the default one?

PS: am using solaris B-79a
Thanks

Set it in your .profile.

Set /usr/bin/bash as your shell. Or better, learn ksh and use it instead.

Edit -> Current Profile -> Colors

I was unable to open /usr/bin/bash...
I mean it was in unreadable format!!!.
and i was not able to figure out where to enter the PS to change to my liking in the .profile (i suppose you meant /etc/profile)(using bash)

So i tried this from the terminal...
export PS1='wrapster@home'
it works
but again its gone when i do exit...
and i will have to reset it to get it back...
(i want it to be displayed it as soon as the terminal is open, say something like a default))

Also its not reflected across terminals
do i have to keep doing export every time??

Also can you be a little descriptive as to where exactly i need to set the values in /etc/profile?

Hi,

You can try this one. Edit your /etc/profile. Then put the lines below.

PS1=`hostname`:'$LOGNAME[$PWD]'
export PS1

Best regards,
sodapop

Why do you want to try editing the bash binary ?
What you need is:

usermod -s /usr/bin/bash wrapster
usermod -s /usr/bin/bash root

Although logging in as root is a poor practice.

It would work but apply to every user. By .profile, I meant $HOME/.profile

Sodapop has it right.