If you need remote access to the CLC linux cluster, this is the place to find directions. Your first step is to get an SSH client. If you have linux on your machine, then you probably already have Openssh installed; but if not, and you have a recent version of linux, you can probably use up2date, yum, apt-get, yast, or any other updating software that comes with your distribution. If you have Windows on your computer, you can download SSH clients from http://downloads.its.psu.edu and navigate to the 'File Transfer' section to download the appropriate client. For Mac OS X, SSH is part of the operating system and can be accessed from the Terminal.app program.
If you do not need to display any graphical applications, you can simply use any SSH client for your platform. Please follow the directions immediately below for instructions on this method. If you do need to run a graphical application, please skip to the next section. (When we talk about graphical applications we are referring to applications that open a window, whether it be to interface with the application, or to display data, if a window opens when using the application, we call that a graphical application.)
If you are connecting to the cluster from Linux/Unix and are using a command line ssh client, just type "ssh <PSUid>@lxcluster.tlt.psu.edu" where <PSUid> is your Penn State User Id. If you have not ssh'ed to the cluster from that machine before you will get a message stating that the authenticity of the host cannot be established, it will give you an RSA key, and ask if you want to continue. Type 'yes' to continue, and then enter your password when it prompts you for it.
There are several ssh clients for Windows such as PuTTY (a Google seach will lead to this download), SSH Secure Shell, (from downloads.its.psu.edu under File Transfer), and Cygwin which is not only an ssh client, but a bash shell environment and X server. See www.cygwin.com for download instructions. If you are using Secure Shell for Windows, start the application, and click the 'Quick Connect' button. Then enter the cluster name "lxcluster.tlt.psu.edu" and your username. Leave the port set to 22, hit Enter, and when it prompts you for your password, enter your Penn State password.
Mac OS X
If you are using Mac OS X, start the Terminal.app application by going to the Finder -> Applications -> Utilities -> Terminal. Once the terminal window comes up, type "ssh <PSUid>@lxcluster.tlt.psu.edu" where <PSUid> is your Penn State User ID. If you have not ssh'ed to the cluster from that machine before you will get a message stating that the authenticity of the host cannot be established, it will give you an RSA key, and ask if you want to continue. Type 'yes' to continue, and then enter your password when it prompts you for it.
If you are using a fairly recent version of a more popular distribution of linux (Red Hat, Fedora, Suse, Debian, etc.) then you shouldn't need any special software. Since you are using linux, you most llikely already have X windows running. If you don't have a graphical login then you'll need to start the X Windows system, but this is not the normal setup for a desktop linux machine. The only change you might have to make, is when connecting to the cluster, use the command "ssh -Y <PSUid>@lxcluster.tlt.psu.edu". The -Y option enables trusted X11 forwarding. This means that X11 will be forwarded to your screen and not subjected to the X11 security extention controls. For more information type "man ssh" on your linux console.
In order to display graphical applications from the cluster on a windows PC, you need to have an X windows environment. This is different from Microsoft's "Windows" Operating system. The most common way to do this is to download and install X/cygwin. During the installation, follow all of the default prompts until you are prompted to install a selection of packages. The default is fine, but you will need two additional applications to follow along with this tutorial. In the 'Net' category, select the 'openssh' package. Selecting this will automatically select any dependencies it requires. You will also need to click on the 'X11' category and choose 'xterm'. Again, selecting this will automatically select its dependencies. Continue with the installation, choosing the default prompts. Once you have installed everything, click on the cygwin icon on your desktop, and a window will appear.
This black window is your bash environment. You can use this as though you were on a linux machine. You can run asn ssh client from this window, or view the files on your windows machine, but with typical bash commands, or use bash commands to run a script. Additional applications such as vi are installable through cygwin's installer program. If you've deleted it, you can just download the setup.exe file from cygwin's site and run it again.
The next step is to start the windowing environment. In the bash command line window, type "startx" and hit "Enter" as shown below.
After you hit "Enter" text will scroll up and off the screen of your bash shell window. Don't worry, because after a second or two another window should appear, only this time it's white. This is your "xterm" window. See the example below:
Inside the xterm window is where you will connect to the cluster. Type "ssh -Y <PSUid>@lxcluster.tlt.psu.edu" where <PSUid> is your PSU ID. See below.
Once you've logged in, you should be able to access any application on the cluster, and even be able to use the graphical interface. In the following images, we started Maple, and you can see that it starts and works just like if it were on your own machine.
Mac OS X
Macintosh computers running Mac OS X already have a built in X11 windows system, and it's conveniently called X11. It is located under Applications -> Utilities -> X11. Start it up and it will open an xterm window for you.
Once you have the xterm window up, ssh to the cluster by typeing "ssh -Y <PSUid>@lxcluster.tlt.psu.edu" where <PSUid> is your PSU ID. See the following image for an example:
Once you have logged in, running graphical applications is just as easy as being on a linux lab machine, just type your command and it should display. Here we show a Mac running Ansys from the cluster on Mac OS X using X11:
Unfortunately we've seen problems trying to get X11 to work with the cluster. Fortunately, you can use the freely available OroborOSX, and it seems to work great. Once you've installed OroborOSX, using it is basically the same as using X11.
Connecting to the Cluster with VNC
If you are interested in working in a full linux environment, but don't want to install linux, you can download run a live distribution. However, If you need software that is available on PSU lab machines, then you can use VNC. A VNC client is available for all platforms. For Unix/Linux look at the RealVNC viewers. Go to http://realvnc.com/products/download.html to download a VNC viewer for Linux or Unix. MacOSX users can get Chicken of the VNC which is a free VNC viewer, from http://sourceforge.net/projects/cotvnc. For Windows, TightVNC is a popular free client from http://www.tightvnc.com. Please install VNC client before continuing on to the next part.
In order to use the vnc software on the lxcluster, you will need an ssh client. Please see the top of this page for instructions on how to download an ssh client.
Now ssh to the lxcluster.tlt.psu.edu server using the command "ssh <PSUid>@lxcluster.tlt.psu.edu" Once you have successfully logged into the cluster, run the command 'lxclustervnc' at the prompt. This will start a script that will make it easier to run the vnc server daemon. The first time you run this, you will be prompted to create a password (unless you have run the vnc server on the cluster before.) This password is ONLY for logging into your vnc session. This is NOT your PSU Access Account password, and should be different from your PSU Access Account. You will then see a message that states the default resolution for your vnc session. You can change this if you wish, or just press ENTER to continue with the default setting. (The resolution change is per session - It will go back to the default the next time you run 'lxclustervnc') After this, the script will pause for a couple seconds while it starts the vnc daemon for your account. It will then tell you the server name and the port you will need to connect to. For example: Server = lxcluster2.clc-labs.its.psu.edu:1, where the 1 is the port number. Once it displays this information, it will sit and wait for you to cancel the vnc session. Leave this prompt sit there and wait until you are completely done with your vnc session. ***IMPORTANT*** You MUST leave this shell window as is, until you are done with your session. If you log out, or close the window, your vnc session will be terminated.
Now that you have your vnc session running, using the server name and display port shown in the ssh window, run the vnc viewer