A couple of questions

Jeff Vian jvian10 at charter.net
Sun Mar 5 18:02:23 UTC 2006


On Sun, 2006-03-05 at 18:07 +0100, Stelian Iancu wrote:
> Hello all,
> 
> A couple of questions:
> 
> 1. I had Ubuntu installed on my laptop and I have installed FC5t3
> instead (I kept only my /home partition). Now, in every terminal I
> start, the prompt is bash-3.1$. However, this happens only for a normal 
> user, for root, the prompt is root at hostname. What file do I have to 
> modify in order to get a normal prompt also for the regular user?
> 
The PS1 variable within your shell defines the prompt.
Mine for a regular user is
    [jeff at eagle ~]$ echo $PS1
    [\u@\h \W]\$
and for root is the same.

This is set by default for all users in /etc/bashrc
If you have it also defined in ~/.bashrc or ~/.bash_profile those will
take precedence over the /etc/bashrc definition and are often used to
customize the prompt per user. 

> 2. I've installed gksu for easy access to nautilus. When I want to 
> execute it, I get this (after entering the root password):
> 
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
> 
> (nautilus:2571): Gtk-WARNING **: cannot open display:
> 
> What do I have to do to make it work?
> 
> Many thanks!
> 
> S.
> 




More information about the fedora-list mailing list