1826414 Members
4183 Online
109692 Solutions
New Discussion

alias xterm

 
SOLVED
Go to solution
lawrenzo_1
Super Advisor

alias xterm

Hi guys,

we have been using ssh via putty however I have found having millions of window's open to manage my systems inefficient!

I'v installed x software to the sysadmin server and my desktop and running cde - happy days, one window for all my x needs!

I now want to configure an aliases file so that I can fire an xterm for the server required using ssh.

I am struggling with some of the syntax however I know it can be as I used to use a similare setup a few years back.

can someone please help me!


alias mis=`xterm -fg white -bg black etc etc` &

Thanks guys.

Chris.
hello
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: alias xterm

"` &" -> "&'"?
lawrenzo_1
Super Advisor

Re: alias xterm

not sure what that means:

I require a command where I can run an xterm and ssh to that specific server so when I type mis I get an xterm and a password prompt on the remote server.

Thanks agaiin

hello
spex
Honored Contributor
Solution

Re: alias xterm

Hi Chris,

If you want 'xterm' to run locally to the sysadmin server, you can run the SSH client as an option to 'xterm':

$ xterm -geometry 80x24+0+0 -fg white -bg black -T '' -e 'ssh -l <username> <hostname>'<br /><br />If you want 'xterm' to run on the remote server, you will need to tunnel X over ssh:<br /><br />$ ssh -X -l <username> <hostname> xterm<br /><br />Aliasing either command should be straight-forward.<br /><br />PCS</hostname></username></hostname></username>
lawrenzo_1
Super Advisor

Re: alias xterm

Thanks spex - thats what I was looking for.
hello