Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
On Mon, 4 Oct 2004, Rick Buford wrote:
> As I migrate more and more to my linux box (currently Fedora Core 2),
> I've found that the one thing I'm having trouble getting the way I want
> is my telnet/ssh sessions. I've been setting up gnome-terminal profiles
> so that different sessions load up with different fonts/colors (I like
> to differentiate between production and non-production nodes), but this
> is really kind of a pain, especially since I like to setup launchers on
> the bars so it's only a one or two click operation to get on the node I
> need.
>
> I had been using putty with "@" shortcuts on click out menus on my
> windows boxes, and really like it that way. Is there an easy method for
> replicating this?
I use aliases to launch windows that connect to various machines in our
supercomputer institute. I'm using tcsh, so the exact way this is done is
probably different in bash. Here's the basic idea:
alias ssh 'xterm -n \!$ -T "ssh: EMAIL:PROTECTED: connected to \!$" -e ssh \!* &'
alias sshsp 'xterm -n SP -T "ssh: EMAIL:PROTECTED: connected to SP" -e ssh sp.msi.umn.edu &'
alias sshor 'xterm -n Origin -T "ssh: EMAIL:PROTECTED: connected to Origin" -e ssh origin.msi.umn.edu &'
alias sshcg 'xterm -n CGL -T "ssh: EMAIL:PROTECTED: connected to CGL" -e ssh cgl.msi.umn.edu &'
alias sshal 'xterm -n Altix -T "ssh: EMAIL:PROTECTED: connected to Altix" -e ssh altix.msi.umn.edu &'
alias sshba 'xterm -n Balt -T "ssh: EMAIL:PROTECTED: connected to Balt" -e ssh balt.msi.umn.edu &'
alias sshnf 'xterm -n Netfinity -T "ssh: EMAIL:PROTECTED: connected to Netfinity" -e ssh nf.msi.umn.edu &'
alias sshml 'xterm -n MLUG -T "ssh: EMAIL:PROTECTED: connected to MLUG" -e ssh mlug.missouri.edu &'
I don't use different colors when connecting to different machines, but it
may be a good idea to do so. To change colors, all you have to do is add
the appropriate options on the command line, for example...
-bg blue -fg yellow -cr green
...and stick them into the aliases:
alias sshcg 'xterm -bg blue -fg yellow -cr green -n CGL -T "ssh: EMAIL:PROTECTED: connected to CGL" -e ssh cgl.msi.umn.edu &'
alias sshal 'xterm -bg red -fg white -cr yellow -n Altix -T "ssh: EMAIL:PROTECTED: connected to Altix" -e ssh altix.msi.umn.edu &'
Have fun!
Mike
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members