On Monday 23 February 2009 02:27:55 am Rodney Baker wrote:
On Mon, 23 Feb 2009 15:17:12 Bob S wrote:
On Sunday 22 February 2009 04:10:53 am jdd wrote:
Bob S a écrit :
Hello SuSE people,
Testing 11.1 with KDE 4.1
Konsole, or any terminal refuses to use my hostname. When it opens it says bob@linux-81s3 ~Documents. Where do I change that? It also will not keep any configuration I have set for it.
there are many places where a hostname is defined and I should open a bugzilla entry for that (but had no time to do now).
you can use
* YaST, network services (the place change with distro versions) * command line "hostname" (see man page) * /etc/hosts * /etc/postfix/main.cf * /etc/printcap * /etc/samba/
and may be other I missed :-( (do a grep -R yourhostname /etc
YaST don't change all
jdd
OK jdd, Made the direct file changes you suggested. It worked, somewhat. Konsole changed to the proper hostname but it keeps adding the "~Documents" to the name. Don't know where or how to change that, Oh well. Thanks again.
Bob S
Bob - the ~Documents part is because your bash prompt is configured to show Hostname + pwd (but it is stripping out the /'s from the path).
Take a look at the PS1 line in ~/.bashrc.
For example, mine says:
PS1="\A \u@\h:\w> "
Which decodes as:
\A = Current time (hh:mm) (followed by a space) \u = current username \h = hostname \w = current working directory.
Other characters (@, :, space) are shown literally.
There are other codes that can be used as well to display other system information or to specify colours.
Thanks Rodney, and you too Randall for you excellent explanations. I went to my ~/.bashrc file and there are no PS statements. There is only one uncommented line.: ---------------------------------------------------------------------------- # Sample .bashrc for SuSE Linux # Copyright (c) SuSE GmbH Nuernberg # There are 3 different types of shells in bash: the login shell, normal shell # and interactive shell. Login shells read ~/.profile and interactive shells # read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all # settings made here will also take effect in a login shell. # # NOTE: It is recommended to make language settings in ~/.profile rather than # here, since multilingual X sessions would not work properly if LANG is over- # ridden in every subshell. # Some applications read the EDITOR variable to determine your favourite text # editor. So uncomment the line below and enter the editor of your choice :-) #export EDITOR=/usr/bin/vim #export EDITOR=/usr/bin/mcedit # For some news readers it makes sense to specify the NEWSSERVER variable here #export NEWSSERVER=your.news.server # If you want to use a Palm device with Linux, uncomment the two lines below. # For some (older) Palm Pilots, you might need to set a lower baud rate # e.g. 57600 or 38400; lowest is 9600 (very slow!) # #export PILOTPORT=/dev/pilot #export PILOTRATE=115200 test -s ~/.alias && . ~/.alias || true ---------------------------------------------------------------- My 10.3 bashrc file looks like this also and the konsole is displaying properly. Is there another place that it gets read?. Would I just edit this file and plug in some PS statements? Bob S -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org