Click to See Complete Forum and Search --> : Something funny has happened to bash and X


Silent Bob
06-19-2001, 04:01 AM
My bash prompt has changed from [root@localhost]#to bash-2.04#

I didn't change anything explicitly myself so does anyone know what has happened?

Also the workspace display applet on my panel in X used to show 4 workspaces, now it only shows 1 and I can't seem to add to it using the ALT-F? key combinations which used to work.

Oh and does anyone know how to set the default monitor resolution? I have the correct modes set up but everytime I start X it starts in the lowest resolution whereas I want it to start at 1024x768

I am using Red Hat 7

It also looks as though it thinks that I haven't logged on before. Netscape is giving me the Licence agreement treatment again WTF?

Thanks

[ 19 June 2001: Message edited by: Silent Bob ]

X_console
06-19-2001, 04:10 AM
I assume you're running bash in an xterm or some other term? You need to provide (for xterm) the -ls option for login shell. I believe Eterm uses the same option, although you should check the manual just to be sure. As for X, I need to know what window/desktop manager you're using.

Silent Bob
06-19-2001, 04:19 AM
The bash prompt is like that even if I don't boot straight to X.

OK I've sorted the X problem.

The bash thing is only when I log on as root. If I log on as any other user it is the way it used to be.

Bear in mind that I am an ultra new newbie.

[ 19 June 2001: Message edited by: Silent Bob ]

Craig McPherson
06-19-2001, 05:11 AM
Stick this in root's .profile:

PS1="\u@\h:\w# "
export PS1

Silent Bob
06-19-2001, 05:38 AM
Where do I find root's .profile?

And where would I find the .profile for the other user so I can compare the two?

Also I am getting annoying 'tooltips' whenever the mouse gets left on a window title bar or border, how do I turn these off?

Thanks

[ 19 June 2001: Message edited by: Silent Bob ]

Craig McPherson
06-19-2001, 06:35 AM
In root's home directory.

bdg1983
06-19-2001, 06:43 AM
And the other in the users home directory.

Silent Bob
06-19-2001, 07:01 AM
Ok now I have the same prompt for both users. The only difference between the profiles for root and the other one is that root had to have the stuff that Craig suggested added into it to make it look the same.

Thanks