[opensuse] Re: Trouble with Konsole
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 -- http://www.dodin.net http://valerie.dodin.org http://www.youtube.com/watch?v=t-eic8MSSfM http://www.facebook.com/profile.php?id=1412160445 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 22 February 2009 03: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).
Jean, For some reason your messages are not threaded properly in KMail. This time answer is listed as a new message. Yours: References: <200902212338.13318.911__1096.27042334086$1235278984$gmane$org@sanctum.com> In-Reply-To: <200902212338.13318.911__1096.27042334086$1235278984$gmane$org@sanctum.com> Mine: References: <200902212338.13318.911@sanctum.com> In-Reply-To: <200902212338.13318.911@sanctum.com> The References: and In-Reply-To: are obviously different, but I don't know enough about mail to say who is at fault. Gmane inserting __1096.27042334086$1235278984$gmane$org in or KMail not ignoring all between __ and @ . -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 22 February 2009 09:10:53 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
Try editing the file /etc/HOSTNAME and no, I'm not shouting, it comes in all uppercase. Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.7-9-default, KDE 4.2.0 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bob Williams a écrit :
* command line "hostname" (see man page)
Try editing the file /etc/HOSTNAME
it's exactly what do the hostname command, but the hostname is visible in many more places and changing with hostname in not sufficient jdd -- http://www.dodin.net http://valerie.dodin.org http://www.youtube.com/watch?v=t-eic8MSSfM http://www.facebook.com/profile.php?id=1412160445 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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
Thanks jdd, I didn't see this message until after I fired off responses to other replies. I guess the thread was broken. I will try your suggestions after I finish here and fire up 11.1, Will report back later or tomorrrow. Bob S -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 22 February 2009 10:47:12 pm Bob S wrote:
On Sunday 22 February 2009 04:10:53 am jdd wrote: ...
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.
If you are using KDE4 console see: Settings > Edit Current Profile In tab General you can set "Initial Directory" is empty, but you can change to any directory that you like. Don't forget to remove checkmark from "Start in same directory as current tab". -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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. Google "Bash prompt strings" for -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au ===================================================
On Mon, 23 Feb 2009 17:57:55 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.
Google "Bash prompt strings" for
Didn't get to finish that last sentence before plasma crashed and gave me a black screen. What I wanted to say was to google "Bash Prompt Strings" for some very useful information (there is even an "official" Bash-Prompt-HOWTO document that is pretty detailed. Regards, Rodney. -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au ===================================================
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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-02-24 at 23:20 -0500, Bob S wrote:
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.:
...
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?
Your prompt is correct and displaying what it should. There is no error there, nothing to correct. Don't touch your PS. You simply see the "document" thing because that is where you are. Go somewhere else and it will display that somewhere else. Just choose the correct directory to be. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmkz7YACgkQtTMYHG2NR9UXTACeLLMOkIuOIVUtmB6kYD8d3oNm LnsAn2syBurHDfIiLz3/RrP7JOOF58sx =QWG/ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 24 February 2009 11:57:18 pm Carlos E. R. wrote:
On Tuesday, 2009-02-24 at 23:20 -0500, Bob S wrote:
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.:
...
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 pl1ug in some PS statements?
Your prompt is correct and displaying what it should. There is no error there, nothing to correct. Don't touch your PS.
You simply see the "document" thing because that is where you are. Go somewhere else and it will display that somewhere else. Just choose the correct directory to be.
Carlos, Wait, Wait, You are confusing me. I understand that I can cd to my basic directory or whatever. However, I am not in /home/bob/documents although that is the default when openinng Konqui or Dolphin.Neither of them is running when I open a Konsole. So where does Konsole get that information? Seems to me that they should be completely different and separate. And what about the PS lines that Rodney and Randall are talking about in their ~/.bashrec files. I don't have any PS statements.Yes, I know that I can cd to anyplace I want. It is just annoying to me that this is happening and I don't understand what it is doing. Bob S -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2009-02-25 at 19:45 -0500, Bob S wrote:
You simply see the "document" thing because that is where you are. Go somewhere else and it will display that somewhere else. Just choose the correct directory to be.
Carlos, Wait, Wait, You are confusing me. I understand that I can cd to my basic directory or whatever. However, I am not in /home/bob/documents although that is the default when openinng Konqui or Dolphin.Neither of them is running when I open a Konsole. So where does Konsole get that information? Seems to me that they should be completely different and separate.
If the prompt in konsole shows that info, I would trust the prompt and think I'm at that directory. You can check it with other commands, like "pwd". Why does your konsole switch to that directory? I have no idea.
And what about the PS lines that Rodney and Randall are talking about in their ~/.bashrec files. I don't have any PS statements.Yes, I know that I can cd to anyplace I want. It is just annoying to me that this is happening and I don't understand what it is doing.
Well, you will have the default PS statements we all have, system-wide. Type "set | grep PS" and you will see them. They are declared in /etc/bash.bashrc. That's why I say that your PS settings are correct, because you haven't modified them for your user - unless you have modified the system defaults and I doubt it. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmmCEMACgkQtTMYHG2NR9VJ4gCeJ83DKx7F6jV9CeQkrNG/0VT5 ojkAn2Da2ohXgmOKNoaZm16mQH07R7jC =2BL1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 25 February 2009 06:45:02 pm Bob S wrote:
... So where does Konsole get that information? Seems to me that they should be completely different and separate.
And what about the PS lines that Rodney and Randall are talking about in their ~/.bashrec files. I don't have any PS statements.Yes, I know that I can cd to anyplace I want. It is just annoying to me that this is happening and I don't understand what it is doing.
Bob S
(It seems that another mail didn't make to your inbox.) If you are using KDE4 console see: Settings > Edit Current Profile In tab General you can set "Initial Directory". It is empty, so konsole picks KDE default ~/Documents . You can change that to any directory that you like. For instance: ~ should set that to your home directory. Don't forget to remove checkmark from "Start in same directory as current tab". -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 26 February 2009 01:24:48 am Rajko M. wrote:
On Wednesday 25 February 2009 06:45:02 pm Bob S wrote:
... So where does Konsole get that information? Seems to me that they should be completely different and separate.
And what about the PS lines that Rodney and Randall are talking about in their ~/.bashrec files. I don't have any PS statements.Yes, I know that I can cd to anyplace I want. It is just annoying to me that this is happening and I don't understand what it is doing.
Bob S
(It seems that another mail didn't make to your inbox.)
If you are using KDE4 console see:
Settings > Edit Current Profile In tab General you can set "Initial Directory". It is empty, so konsole picks KDE default ~/Documents . You can change that to any directory that you like. For instance: ~ should set that to your home directory.
Don't forget to remove checkmark from "Start in same directory as current tab".
To you Rajko, Carlos. Rodney. jdd, bob, and whoever popped up in helping me solve this problem, Thanks to you all. My apologies. Seems as though when I typed Konsole in the command line (alt-F2) three different icons popped up to select. I selected one and it happened to be Konsole 3.5.10 and dragged it to the desktop to use, I didn't realize that and whatever I did I couldn't make it behave. (What the heck is a 3.5 app doing in a strictly pure KDE4 install?) (I mean I am installing this thing to check out KDE4 and evaluate it for my use) Anyway, I am now using the 4.2 konsole and all is working well. I do have other 4.2 questions though and if I can't figure them out I will be asking more questions. Thanks again to all. Bob S -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2009-02-22 at 23:47 -0500, Bob S wrote:
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.
That's because your current directory is "Documents". Just change to another directory: cer@nimrodel:~> cd Documents/ cer@nimrodel:~/Documents> cd cer@nimrodel:~> cd / cer@nimrodel:/> - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmjDUgACgkQtTMYHG2NR9Un2QCfY86g4UwNDNul8q7HRKOD3KlW H0AAn1fPA8MA7W/xauNcV6lXw+U4l75L =LGUX -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday February 22 2009, Bob S wrote:
...
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.
This is BASH interpolating values into your prompt. There are a special set of character sequences that are interpreted in the PS1 string. E.g., my basic prompt is this: PS1='\!> ' This produces prompts that have the history numer (\!), a greater-than sign and a space (I'm a minimalist). But whenever I'm running in a terminal emulator, I use this prompt string (view this with a fixed-width font): PS1=$'\\[\e]0; \\u :: \\W (\\w)\a\\]\\!> ' ^ !!!***** +++ === %%% $$!!! @@ Key: ^: In BASH, a single-quoted string prefixed by a $ interprets ASCII escape sequences similar to those in C and other programming and scripting languages including: \a (BEL / CTRL-G), \e (ESC), \r (CR / CTRL-M), \n (NL / CTRL-J), \\ (backslash), etc. !!!: \\[ and \\]: These demarcate portions of the prompt that don't print and hence don't take up space. BASH needs to know this so it can properly track which column the cursor is in after the prompt has been printed. *****: \E]0; Terminal emulator escape sequence that marks the beginning of the title sequence, which usually gets displayed in the window title bar. $$: \a / BEL / CTRL-G: Terminal emulator sequence that marks the end of the title sequence that began following *****. \\u: BASH inserts the user name here \\W: BASH inserts the base part of current working directory here \\w: BASH inserts the current working directory here Note that both the simple and the fancy PS1 strings I gave above produce the same result in Konsole. All the "fancy" parts involve putting information into the Konsole window title bar, leaving the prompt containing just the history number. So the reason you're seeing your current directory in your prompt is because it includes the escape sequence "\w". There are several other expansion sequences that BASH interprets in the PS1 string. Check the manual page for complete information. Note that not all terminal emulators implement the same escape sequences, but Konsole works as I described above (as do most terminal emulators today).
Bob S
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Bob S
-
Bob Williams
-
Carlos E. R.
-
jdd
-
Rajko M.
-
Randall R Schulz
-
Rodney Baker