From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GUwHf-0001Ln-I3 for garchives@archives.gentoo.org; Wed, 04 Oct 2006 02:14:55 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k942DeIA025382; Wed, 4 Oct 2006 02:13:40 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9428uWI023553 for ; Wed, 4 Oct 2006 02:08:56 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id D0DC0646A0 for ; Wed, 4 Oct 2006 02:08:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.569 X-Spam-Level: X-Spam-Status: No, score=-2.569 required=5.5 tests=[AWL=0.030, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6UwBsA8JEbEV for ; Wed, 4 Oct 2006 02:08:48 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 6F4B0646E3 for ; Wed, 4 Oct 2006 02:08:46 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GUw94-0002J6-Ld for gentoo-user@gentoo.org; Wed, 04 Oct 2006 04:06:03 +0200 Received: from buffer.net ([24.73.161.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Oct 2006 04:06:02 +0200 Received: from wireless by buffer.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Oct 2006 04:06:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: james Subject: [gentoo-user] Re: OT: auto rename konsole session tabs? Date: Wed, 4 Oct 2006 01:57:17 +0000 (UTC) Message-ID: References: <200610031945.51447.harmgeerts@home.nl> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 24.73.161.102 (Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.13) Gecko/20060911) Sender: news X-Archives-Salt: f6181131-b610-4dcb-a287-f4644938e4b4 X-Archives-Hash: c72179dd0c9c18e4bf1789a9a4e976cb Harm Geerts 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 " 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