I have several terminal windows open and would like to make the terminal session on the production server look very different from my local machine and staging servers to reduce the chance that I type something on the production server by mistake.

Does anybody have some tips for doing this?

Edit: Just want to clarify - I meant that I have many xterm sessions open and want to disambiguate between them. - Thanks!

link|improve this question

47% accept rate
3  
Please disambiguate what you mean by 'terminal'. Do you mean you have remote desktop connections to Windows boxes open. Or do you have many xterm sessions open with connection to *nix boxes. – Zoredache Dec 4 '09 at 23:44
feedback

6 Answers

If you are talking about remote desktop. I usually change the background or use BG Info so I can at a quick glance know which box I am on.

link|improve this answer
I originally meant a terminal with a command prompt, but thanks for the pointer too the tool. I'm gonna start using that as well. :) – ro. Dec 5 '09 at 4:36
cool tip though. I'll remember the BG Info if I ever have Windows servers. – neoice Dec 5 '09 at 5:38
feedback

change the colors of the prompt. I use this to distinguish between root and users, but you can easily color-code by host. (green for local, yellow for dev, red for production!)

here's a tutorial for bash: http://www.hypexr.org/bash%5Ftutorial.php#colors

YMMV if you use a different shell, but "$SHELL prompt color tutorial" should find it on Google.

link|improve this answer
feedback

Thanks for the suggestions everybody. I ended up taking the following approach:

I used byobu (https://launchpad.net/byobu) to configure GNU screen. I made screen start on login so that there will always be a red bar at the bottom of the terminal like this:

alt text

link|improve this answer
feedback

Here's a discussion with several options you can use as a starting point but no Holy Grail one true answer: How do I change the background color of xterm permanently?

link|improve this answer
feedback

One thing missing is changing your prompt! Using something like this:

root@missioncritical ~:

is subtle but might be enough of a reminder (in addition to the color schemes). As always, exercising caution and using the 'hostname' command are never a bad idea if you are doing something that could potentially break something anywhere.

link|improve this answer
feedback

Are you talking about Windows Terminal Server? If so, BgInfo will print unique info about your box right onto dekstop.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.