Stephen,
Very interesting. I only recently added the "mymachine" to my /etc/hosts file 
line, as advised, and it immediately solved other problems of "severe 
misconfiguration" I had as shown in xsession.errors, and failure to get a gui 
for cfg-update from an xterm. Everything works fine now, so I'm not ready to 
change my entire .bashrc files in order to change the wording of the prompts, 
until I fully understand the implications.

My USER prompt is ([EMAIL PROTECTED] in green, wrc in blue):
[EMAIL PROTECTED] wrc $

My ROOT prompt is (mymachine in red, wrc in blue):
mymachine wrc #

My /etc/hostname file says only "mymachine," which was what the Gentoo install 
docs said to do. My first thought was to say "localhost," but I figured I'd 
better follow the Gentoo docs until I got a running system up, and had more 
experience with source based distros.

Both prompts function normally, and the red root prompt stands out (I have 
schema set to green on black), so I can live with that. I will study the new 
.bashrc file you posted, and try and undersand why it was recommended.

IIRC, the way your prompts now look is how my Mandrake prompts look (haven't 
booted to Mandrake in 2 months!- waiting for my 9.2 cd's before doing that, 
and I've been enjoying Gentoo too much anyway).

Robert


On Sunday 26 October 2003 8:36 pm, Stephen Liu wrote:
> Hi Robert and other folks,
>
> Problem solved now.
>
> Hereinunder is my solution.
>
> 1) Replaced both
> /root/.bashrc
> and
> /home/satimis/.bashrc
>
> with the attached file which was found from Internet.
>
> 2) Edited
> /etc/hostname
> localhost
> (only one word)
>
> 3) Rebooted the PC
>
> On Konsole window now it displays
> ROOT
> [EMAIL PROTECTED] root]#
>
> USER
> [EMAIL PROTECTED] satimis]$
>
> All words in black colour
>
> Lot of thanks for your kind advice and time spent.
>
> B.R.
> Stephen
>
> Robert Crawford wrote:
> >Stephen,
> >What's your /etc/hosts file look like? Mine is:
> >
> >127.0.0.1    localhost   mymachine
> >
> >Maybe Tom's previous post (quoted below) is what we both need in
> >/etc/skel/.bashrc?
> >
> >[ -f /etc/profile ] && . /etc/profile
> >
> >However, all seems to work fine with how I have it now- I was informed on
> > the Gentoo forum to do what I have done.
> >
> >Hmmm. just looked at my /etc/skel/.bashrc, and I forgot I had added this
> > line, when I was figuring out the cfg-update replacement for Gentoo's
> > etc-update. This looks relevant to what we're talking about, but it
> > didn't change my xterm prompt at all.
> >
> ># The following is added by me to source /etc/profile
> >[ -f /etc/profile ] && source /etc/profile
> >
> >Come to think of it, I was having trouble getting x to open an xxdiff
> > window from an xterminal after put the cfg-update perl script into
> > /usr/local/bin, and the author of the script advised me to add that line
> > to
> >/etc/skel/.bashrc, and it fixed my problem.
> >
> >Robert
> >
> >On Saturday 25 October 2003 7:51 pm, Stephen Liu wrote:
> >>Hi Robert and folks
> >>
> >># echo "source /etc/profile" >>/home/satimis/.bashrc
> >>
> >>NOW becomes
> >> As ROOT
> >> mymachine root #
> >>
> >> As USER
> >> [EMAIL PROTECTED] satimis $
> >>
> >> How to change them to;
> >> As ROOT
> >> [EMAIL PROTECTED] root]#
> >>
> >> As USER
> >> [EMAIL PROTECTED] satimis]$
> >>
> >>B.R.
> >>Stephen
> >>
> >>Robert Crawford wrote:
> >>>Try placing this line at the end of your ~/.bashrc file- it worked for
> >>> me.
> >>>
> >>>source /etc/profile
> >>>
> >>>This will also show the current directory if you cd to another
> >>> directory, instead of  just the bash-2.05b$ prompt.
> >>>
> >>>Robert Crawford
> >>>
> >>>On Saturday 25 October 2003 1:06 pm, Stephen Liu wrote:
> >>>>Hi all folks,
> >>>>
> >>>>Gentoo 1.4
> >>>>==========
> >>>>
> >>>>On KDE Konsole window
> >>>>
> >>>>As ROOT, it prompts
> >>>>mymachine root #
> >>>>
> >>>>not as
> >>>>[EMAIL PROTECTED] root]#
> >>>>
> >>>>
> >>>>As USER
> >>>>bash-2.05b$      the bash version, not as
> >>>>
> >>>>[EMAIL PROTECTED] satimis]$
> >>>>
> >>>>Kindly advise how to change them back
> >>>>
> >>>>Thanks
> >>>>
> >>>>B.R.
> >>>>Stephen Liu


--
[EMAIL PROTECTED] mailing list

Reply via email to