From: james <wireless@tampabay.rr.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: OT: auto rename konsole session tabs?
Date: Wed, 4 Oct 2006 01:57:17 +0000 (UTC) [thread overview]
Message-ID: <loom.20061003T200139-495@post.gmane.org> (raw)
In-Reply-To: 200610031945.51447.harmgeerts@home.nl
Harm Geerts <harmgeerts <at> home.nl> writes:
> > OT: I use kde and quite a lot of konsole sessions for admin of many other
> > systems. I currently manually use 'rename' in kde to put the system's
> > hostname into the tab (located at the bottom of the window), for quick
> > reference. Is there a way (trick) to automatically do this?
> > My prompt (command line) does this automatically, I just want the hostname
> > of the remote host(or IP address) I ssh into to replace the 'shell #'
> > that is there by default. If not ssh'd into a remote system, then the
> > default 'shell #' is ok as the default.
> Not sure if you can rename them based on what you run in the session.
> But you can name them when you start a session.
Well when I ssh into a remote system, bash detects this (hostname)
and displays the hostname in the prompt(command line)
automatically. So it is possible, another way to pose the question
is how to transfer this information 'automatically' from bash
to the kde-session-tab-name?
> Click on the menu entry Settings->Configure Konsole
> Choose the Session tab.
> Create a new session for each remote machine
> "Name" is used in the tabname, so you can enter the hostname.
> "Execute" is used to start the session, if you want to start ssh directly
> enter "ssh <host>" here.
> There are a few examples present you can look at.
> You probably haven't used them yet, otherwise you wouldn't be asking this :)
> When you want a new session you should choose the session you configured
> instead of the default session named "Shell".
Yes, but if I ssh into a new system with a previoulsly unknow name or IP,
then I have to manually change this information? If that is true, then
it is not what I want/need. I need auto_discovery of either the hostname
or IP address of the remote target, passed to the kde-session-tab-name.
That's the challenge. It's for newly installed machines with
new names and IP. Or some remote machine, I have never ssh'd into before.
Furthermore, as the list grows very large, I it will become a pain doing this
before remote access. Many are gentoo based but other are not. I can modify
some files on the remotes, if necessary, but many will only be remotely
admin'd one or twice a year (hopefully).
Auto_magically???? maybe it's easier to auto_magically discover (pass)
the remote's ip address to the kde-session-tab-name parameter?
James
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-10-04 2:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-03 17:04 [gentoo-user] OT: auto rename konsole session tabs? James
2006-10-03 17:45 ` [gentoo-user] " Harm Geerts
2006-10-04 1:57 ` james [this message]
2006-10-04 20:52 ` Etaoin Shrdlu
[not found] ` <200610041551.25081.bss03@volumehost.net>
2006-10-04 22:01 ` Bo Ørsted Andresen
2006-10-04 22:37 ` Neil Bothwick
[not found] ` <200610050015.15186.bo.andresen@zlin.dk>
2006-10-05 2:30 ` Boyd Stephen Smith Jr.
2006-10-06 0:41 ` James
2006-10-06 2:09 ` Bo Ørsted Andresen
2006-10-06 11:18 ` James
2006-10-06 12:04 ` Bo Ørsted Andresen
2006-10-06 18:12 ` James
2006-10-04 22:55 ` Michael Mauch
2006-10-03 19:12 ` [gentoo-user] " Mike Williams
2006-10-04 4:59 ` Martins Steinbergs
2006-10-06 1:20 ` [gentoo-user] " James
2006-10-06 1:15 ` James
2006-10-07 18:13 ` Martins Steinbergs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20061003T200139-495@post.gmane.org \
--to=wireless@tampabay.rr.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox