Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

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

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"
Old 12-12-2005, 06:46 PM   #2
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, 07:41 AM   #3
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?
Old 12-13-2005, 12:40 PM   #4
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"'


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 09:27 PM
Set the Xterm title to reflect the current time ! Bonch Linux - Newbie 11 10-25-2004 05:50 PM
How to set title in xterm according to what program running ? tvn Linux - General 1 07-25-2004 08:58 PM
custom xterm title when already defined in .bashrc brian0918 Linux - Software 1 06-01-2004 12:17 PM
Can i change my title under my username? BajaNick LQ Suggestions & Feedback 2 01-08-2004 12:16 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:07 AM.

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