Hello everyone I know not really a suse question, but just in case someone on this list knows: I use konsole with tabs quite a lot to connect to a few of our servers - konsole makes this quite quick and easy with tabs, but there is one more thing I would like: Tabs named according to hostname. I can rename them manually, but this is not ideal - What I would like is for the tab to get renamed as soon as I connect to the new host (like the window title, it changes to the prompt - this would be ok as well). Does anyone know if this is possible? Thanks, H
Op maandag 24 januari 2005 14:00, schreef Hamish:
I know not really a suse question, but just in case someone on this list knows: I use konsole with tabs quite a lot to connect to a few of our servers - konsole makes this quite quick and easy with tabs, but there is one more thing I would like: Tabs named according to hostname. I can rename them manually, but this is not ideal - What I would like is for the tab to get renamed as soon as I connect to the new host (like the window title, it changes to the prompt - this would be ok as well). Does anyone know if this is possible?
This is possible indeed, what some 'echo' tricks. But you could define a session for each remote host. This gives you the possibility to select the host from a list and have the tab named as you desire. See konsole -> settings -- Richard Bos Without a home the journey is endless
On Monday 24 January 2005 15:31, Richard Bos wrote:
Op maandag 24 januari 2005 14:00, schreef Hamish:
I know not really a suse question, but just in case someone on this list knows: I use konsole with tabs quite a lot to connect to a few of our servers - konsole makes this quite quick and easy with tabs, but there is one more thing I would like: Tabs named according to hostname. I can rename them manually, but this is not ideal - What I would like is for the tab to get renamed as soon as I connect to the new host (like the window title, it changes to the prompt - this would be ok as well). Does anyone know if this is possible?
This is possible indeed, what some 'echo' tricks. But you could define a session for each remote host. This gives you the possibility to select the host from a list and have the tab named as you desire. See konsole -> settings
Or try the 'kssh' command... Paul H -- Paul Hewlett (Linux #359543) Email:`echo az.oc.evitcaten@ttelweh | rev` Tel: +27 21 852 8812 Cel: +27 72 719 2725 Fax: +27 86 672 0563 --
Richard, On Monday 24 January 2005 05:31, Richard Bos wrote:
Op maandag 24 januari 2005 14:00, schreef Hamish:
... What I would like is for the tab to get renamed as soon as I connect to the new host (like the window title, it changes to the prompt - this would be ok as well). Does anyone know if this is possible?
This is possible indeed, what some 'echo' tricks. But you could define a session for each remote host. This gives you the possibility to select the host from a list and have the tab named as you desire. See konsole -> settings
Really? Are you thinking of the window title bar label, which can indeed be controlled via terminal output. (I use it to keep my current working directory displayed up there rather than in common and intrusive practice of putting it in the prompt.) The pertinent control sequences are interpreted by many terminal emulators, not just Konsole. But how do you alter the Konsole's tab names (the Session Name)? And while we're at it and to forestall being chastised, why is there nothing in the SuSE Help Center about Konsole?
-- Richard Bos
Randall Schulz
Hamish wrote:
Hello everyone I know not really a suse question, but just in case someone on this list knows: I use konsole with tabs quite a lot to connect to a few of our servers - konsole makes this quite quick and easy with tabs, but there is one more thing I would like: Tabs named according to hostname. I can rename them manually, but this is not ideal - What I would like is for the tab to get renamed as soon as I connect to the new host (like the window title, it changes to the prompt - this would be ok as well). Does anyone know if this is possible? Thanks, H
Just create a file containing something like : [Desktop Entry] Encoding=UTF-8 Cwd= Type=KonsoleApplication Icon=openterm Name=ssh'd to work Comment=ssh'd to work Exec=ssh -X me@www.work.com for each connection you normally make called something.desktop in the ~home/.kde/share/apps/konsole directory. Then restart konsole. The session name will appear in you konsole sessions tab and when you select the session it will execute your command in another tab named whatever you named it in the above file. Mark
Just create a file containing something like :
[Desktop Entry] Encoding=UTF-8 Cwd= Type=KonsoleApplication Icon=openterm Name=ssh'd to work Comment=ssh'd to work Exec=ssh -X me@www.work.com
for each connection you normally make called something.desktop in the ~home/.kde/share/apps/konsole directory. Then restart konsole. The session name will appear in you konsole sessions tab and when you select the session it will execute your command in another tab named whatever you named it in the above file.
Mark
Thanks Richard and Mark - this is a good idea. Ideally I would like the tab name to change if my hostname changes (maybe I will need to ssh somewhere else quickly, but my tab will still have the same name), but this works fine, and with ssh-agent - it makes life much easier working with many servers! Thanks, H
participants (5)
-
Hamish
-
Mark Hounschell
-
Paul Hewlett
-
Randall R Schulz
-
Richard Bos