LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-21-2006, 09:10 AM   #1
dthacker
Member
 
Registered: Nov 2003
Location: Omaha, NE
Distribution: Ubuntu, Kubuntu, Ubuntu Server
Posts: 77

Rep: Reputation: 15
How do I get gnometerm to display the machine I'm connected to?


SuSE 9.3, Blackbox WM, Gnometerm 2.10.0

I use GnomeTerm to connect to 20 different servers in a day's work. Some of these servers will display the server name and pwd in the tab:
dthacker@fooserver:/usr/local/foo

Others will not:
dthacker@dthacker~

I think this is an interactions between Gnometerm and bash on the system I'm connecting too. Does anyone know what variable I need to set to get all the tabs to display the hostname in all the tabs?

TIA
Dave
 
Old 07-21-2006, 09:43 AM   #2
jayemef
Member
 
Registered: Aug 2005
Location: Juniata College, PA
Distribution: Ubuntu, Slackware
Posts: 67

Rep: Reputation: 15
This is a matter of playing with the PS1 variable on each of the machines. Using your first example, you would add/modify the following to each machines ~/.bashrc file:
Code:
# user@host:pwd$
PS1="\u@\h:\W\$ "
Once done, you can activate it with either of the following commands:
Code:
source .bashrc
# or
. .bashrc
If you use the screen command alot, you might also enjoy \l, which displays your tty. For more info, do a search on bash prompt configuration.

Last edited by jayemef; 07-21-2006 at 09:46 AM.
 
Old 08-15-2006, 04:17 PM   #3
dthacker
Member
 
Registered: Nov 2003
Location: Omaha, NE
Distribution: Ubuntu, Kubuntu, Ubuntu Server
Posts: 77

Original Poster
Rep: Reputation: 15
I've set my PS1 like this on the target machine:
Code:
export PS1="[\u@\h]: \w\n$?> "
, but this is not getting picked up by gnometerm. Any other ideas?

TIA Dave
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
even after succesfully connected, machine can't access net b0nd Linux - Networking 3 06-10-2006 08:33 PM
Display of Unix Machine on a PCQ Linux Machine gopalkasat Linux - Networking 1 12-14-2004 02:37 AM
need my WinXP to be able to print to the printer connected to man9.2 machine krome Mandriva 1 03-02-2004 03:53 AM
printing to a printer connected to windows machine arrao18 Linux - Networking 0 07-16-2003 12:25 AM
Display is disabled when TV-Out is connected ViralHex Linux - General 1 06-07-2003 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration