LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-12-2005, 03:05 PM   #1
sohnir
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
Change title of xterm - Fedora 2.6


Hi-
I installed 2.6.11-1.1369_FC4. Previously on RedHat AS I've had my xterms dynamically change the title of xterms in the past as follows:
echo "\033]0;`hostname`\007"
Somehow, on this freeware it does not work.
Any help would be appreicated.
I would like to have my xterm titled as "oracle@SERVER"
Thanks,
-Vipul
 
Old 12-12-2005, 05:46 PM   #2
Ha1f
Member
 
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
um i dont know if this will help, but ill give it a shot.

obviously you want to change your hostname, so why not just try

hostname SERVER

also, if your running Gnome, you can change this in teh network setup menu.

i had this problem, but 'hostname XXXXX' never really worked for me, so i reinstalled and set my hostname during the install.
 
Old 12-13-2005, 06:41 AM   #3
sohnir
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Original Poster
Rep: Reputation: 0
No, I do not want to change the hostname of my system. I want the TITLE of the xterm to be changed based on the linux system that I am logged in. As I mentioned, on all my other RedHat AS; the echo "\033]0;`hostname`\007" works. This would change the title to "username@HOST" as my xterm TITLE. I am using SSH to connect the remote linux systems.
Any ideas?
Thanks.
 
Old 12-13-2005, 11:40 AM   #4
wrj
Member
 
Registered: Aug 2003
Location: Canada/US
Distribution: Ubuntu, Arch
Posts: 84

Rep: Reputation: 15
Adding something like this in your .bashrc file should do it.

PROMPT_COMMAND='echo -ne "\033]0;oracle@${HOSTNAME}\007"'
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm title after quittin ssh sessions bujecas Slackware 1 07-01-2005 08:27 PM
Set the Xterm title to reflect the current time ! Bonch Linux - Newbie 11 10-25-2004 04:50 PM
How to set title in xterm according to what program running ? tvn Linux - General 1 07-25-2004 07:58 PM
custom xterm title when already defined in .bashrc brian0918 Linux - Software 1 06-01-2004 11:17 AM
Can i change my title under my username? BajaNick LQ Suggestions & Feedback 2 01-07-2004 11:16 PM


All times are GMT -5. The time now is 04:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration