CAEDM Wiki
Having graphical capabilities from a linux console
Last Modified: 08-Jun-09 02:03:46 PM
[watch this page]
[edit this page]

If you need to have your programs pop up into a graphical display when you use a linux command line, you need to ssh into a linux machine while redirecting X.

Connecting from Windows

First off, you need a utility which allows you to connect to a linux machine.  Putty is a small, popular, easy to use program which allows you to connect to linux from windows.  Download Putty here.  You will also need an X server running on your windows machine in order for linux programs to work graphically.  Xming is the program we recommend, and is available for free here.  Once you have installed Putty and Xming; You need to start Xming to have an X server running.  You can start Xming like any other program by going to start > programs > Xming.  Once Xming is running, to use putty to connect to a linux command line in CAEDM, enter in the proper hostname of your linux destination.  The difference between graphical capability and connecting normally is to enable X forwarding, which you do in putty by going on the left side of the putty window to Connection -> SSH -> X11 -> Enable X11 forwarding.

Once you enable X11 forwarding, simply connect to whatever host you want to connect to by going back to the Session option on the left hand side, putting in the proper host name in the Host Name bar, and pressing the Open button on the bottom right of the Putty window.  To connect to a CAEDM server from anywhere, the recommended host name is ssh.et.byu.edu, although any CAEDM computer is available to be connected to remotely when on campus. 
A window may pop up warning that you haven't connected to this machine before, and asks if you want to continue with the connection.  If this window pops up, simply say yes and proceed.

Log in with your caedm user name and password.  You won't see any characters come up when you type your password, but they're still there, so press enter when you've typed in your password and if everything was input correctly, you should have logged in and have a Linux command line terminal available for you to use.  You can start any Linux program from that Putty command line terminal, and the graphical display will open in your Windows machine if you have Xming up and running. 


Connecting from Linux

To use ssh to connect from one linux machine to another, or from unix to linux or vice versa, simply put in ssh user_name@hostname.  To enable X forwarding, which will give you graphical capabilities when you open programs on another machine using ssh, simply add -X to the command.  The X has to be capitalized, that's important.  For example, if my user name was user12, and I wanted to connect to ssh.et.byu.edu (the main ssh server for CAEDM), I would type in:
ssh -X user12@ssh.et.byu.edu
You might be warned that you've never connected before, but simply put in yes saying you want to keep connecting, and put in your password.  If everything was put in correctly, you should be connected to the remote computer.  You can now open programs on the remote machine you're connected to and have the display pop up on your machine.