You are not logged in.

#1 2009-01-26 05:40:43

jaydoc
Member
From: Chennai/Birmingham,AL
Registered: 2008-12-30
Posts: 89

[solved] Bash shell... does not start with user name, but used to...!

when I start a console, logged in as user, it always used to start with

user@hostname ~$

Suddenly, and I cannot recall having done anything that could lead to the issue, konsole will always start as

bash3.2$                                                     

even after many reboots, this is still the case.

whoami shows my user name. I can su to root, and from there to my username, but never directly from bash.

Occasionally, starting a program like KDE partition manager fails with the error message the program su could not be found. but it is as I said occasional.

I am quite a newbie to Linux, so I am clueless. Can someone help me..? I tried googling, but I seem to be the only one in the WWW that goofed up to such an extent..! and searches are quite unrevealing.

I am installing Linux From scratch using arch linux as base system, but I am just following The Book to the letter and don't think that caused the problem.

Last edited by jaydoc (2009-01-26 09:12:56)


It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead

Offline

#2 2009-01-26 06:15:44

weasel8
Member
Registered: 2008-12-15
Posts: 149

Re: [solved] Bash shell... does not start with user name, but used to...!

Can you post your .bashrc?

Offline

#3 2009-01-26 07:03:34

jaydoc
Member
From: Chennai/Birmingham,AL
Registered: 2008-12-30
Posts: 89

Re: [solved] Bash shell... does not start with user name, but used to...!

@weasel8...

That is THE trouble. And I take back my words, it was during the linux from scratch install that I botched that file...! I was supposed to make a new bashrc file in the LFS directory, but I went wrong on the commands and I think I ended up removing the Arch Linux file...!

If it is to be found, it should be in the etc directory, right..? I looked there and could not find it. Did I look in the right place...?

What can I do...?

Last edited by jaydoc (2009-01-26 07:33:14)


It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead

Offline

#4 2009-01-26 07:08:13

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [solved] Bash shell... does not start with user name, but used to...!

You're .bashrc file will be in your home directory. Files that begin with "." are hidden. To list them, use "ls -A".

To change the bash prompt, you need to set the PS1 variable. Google "bash ps1" and you should find plenty of tutorials and explanations of how to set it up. I took a look at the first hit and it seems to explain it well enough: http://www.cyberciti.biz/tips/howto-lin … rompt.html


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2009-01-26 09:12:25

jaydoc
Member
From: Chennai/Birmingham,AL
Registered: 2008-12-30
Posts: 89

Re: [solved] Bash shell... does not start with user name, but used to...!

Thanks for that link....!

I got it right, and it ws a good learning experience as well....!


It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead

Offline

Board footer

Powered by FluxBB