1 |
Harm Geerts <harmgeerts <at> home.nl> writes: |
2 |
|
3 |
|
4 |
> > OT: I use kde and quite a lot of konsole sessions for admin of many other |
5 |
> > systems. I currently manually use 'rename' in kde to put the system's |
6 |
> > hostname into the tab (located at the bottom of the window), for quick |
7 |
> > reference. Is there a way (trick) to automatically do this? |
8 |
|
9 |
> > My prompt (command line) does this automatically, I just want the hostname |
10 |
> > of the remote host(or IP address) I ssh into to replace the 'shell #' |
11 |
> > that is there by default. If not ssh'd into a remote system, then the |
12 |
> > default 'shell #' is ok as the default. |
13 |
|
14 |
> Not sure if you can rename them based on what you run in the session. |
15 |
> But you can name them when you start a session. |
16 |
|
17 |
Well when I ssh into a remote system, bash detects this (hostname) |
18 |
and displays the hostname in the prompt(command line) |
19 |
automatically. So it is possible, another way to pose the question |
20 |
is how to transfer this information 'automatically' from bash |
21 |
to the kde-session-tab-name? |
22 |
|
23 |
> Click on the menu entry Settings->Configure Konsole |
24 |
> Choose the Session tab. |
25 |
> Create a new session for each remote machine |
26 |
> "Name" is used in the tabname, so you can enter the hostname. |
27 |
> "Execute" is used to start the session, if you want to start ssh directly |
28 |
> enter "ssh <host>" here. |
29 |
> There are a few examples present you can look at. |
30 |
> You probably haven't used them yet, otherwise you wouldn't be asking this :) |
31 |
> When you want a new session you should choose the session you configured |
32 |
> instead of the default session named "Shell". |
33 |
|
34 |
Yes, but if I ssh into a new system with a previoulsly unknow name or IP, |
35 |
then I have to manually change this information? If that is true, then |
36 |
it is not what I want/need. I need auto_discovery of either the hostname |
37 |
or IP address of the remote target, passed to the kde-session-tab-name. |
38 |
That's the challenge. It's for newly installed machines with |
39 |
new names and IP. Or some remote machine, I have never ssh'd into before. |
40 |
Furthermore, as the list grows very large, I it will become a pain doing this |
41 |
before remote access. Many are gentoo based but other are not. I can modify |
42 |
some files on the remotes, if necessary, but many will only be remotely |
43 |
admin'd one or twice a year (hopefully). |
44 |
|
45 |
Auto_magically???? maybe it's easier to auto_magically discover (pass) |
46 |
the remote's ip address to the kde-session-tab-name parameter? |
47 |
|
48 |
|
49 |
James |
50 |
|
51 |
|
52 |
|
53 |
|
54 |
-- |
55 |
gentoo-user@g.o mailing list |