Re: A couple of questions



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@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@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.


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Where is Bash Prompt Set??
    ... different scripts which fiddle with the default bash prompt: ... {why does root's bashrc get sourced, ... Regular user in emacs shell: ... Root in emacs shell: ...
    (Debian-User)
  • Re: No NIC and No X - WTF Does It Take?
    ... boot prompt in order to install Kernel 2.4. ... root (I really do prefer to do that at this ... of the configuration program and taken to the twm ...
    (Debian-User)
  • Re: [opensuse] Post installation queries (FIRST successful installation of Linux)
    ... I want that ease that typing 'su' changes the prompt to ... 'root' without all the times giving the password. ... Oh, 'linuxworld' is not the root but has ... the size of my .bash-history file so if I ever forget a command, ...
    (SuSE)
  • Re: Ethereal - not sufficient permission?
    ... > I have installed the pcap library and ethereal on a new installation ... Open a console window and enter the command "su" (without the ... At the prompt, enter the root password. ...
    (comp.os.linux.networking)
  • Re: Vector Linux anybody??
    ... >>Then you either get the command line prompt ... > you need to do is set a password for the root user. ... Type passwd and choose ...
    (alt.os.linux)