Member Help :: Using software on Denali

Karim Nassar & Frank Wallingford, October 2002

Running "Regular" Programs

If you are logged in to denali through ssh, and all you have is a terminal, then you can only run terminal programs unless you set up the local XServer as described below.

If you are logged in to denali graphically, then running programs is easy. You can either select the program from the program menu (it's where the Windows start menu would be), or you can press "ALT+F2" and type in the name of the program to run, or you can open up a terminal, and type the program name.

Compiling With Java and Running Appletviewer

Compiling your program is simple. We have the Java 1.4.1 development environment installed on denali, so all you have to do is run javac like normal. Also, rmic works the same way. The tough part is using appletviewer on denali. If you are logged in graphically, that's no problem - just run appletviewer like you normally would, and it will pop up on your screen.

Running Appletviewer with a Remote X Server

Appletviewer is not so easy when you are logged in through SSH because you must be running an XServer on your system.If you connecting to denali from a Unix flavor OS, you probably have an XServer running (for example, a regular login to CET in the lab or a home GNU/Linux box). There are also XServers available for Windows and Mac.

With Unix XServer

You can tell your computer to allow denali to put windows on your monitor. To do this, open a terminal (on your computer) and type

# xhost +denali.cet.nau.edu

Now, you have to tell denali where to put the screens. Do that by typing in a denali console:

# export DISPLAY="<your ip address or domain name>:0"

Example:I am in the sun lab, logged in to Jabba. I didn't log in to denali graphically, I just logged in to CET with the normal login screen. I opened a terminal for sshing to denali. I would type xhost +denali.cet.nau.edu to let denali have access to Jabba. Now, I ssh to denali, and type export DISPLAY="jabba.cet.nau.edu:0".

After setting that up, any graphical program you run from a denali terminal display it's window on your computer instead of trying to display on denali's and having nowhere to go (since you are not logged in graphically). So, just run appletviewer, gftp, galeon, whatever and everything will run on denali, but be displayed on your remote computer. Neato! Eh?

Other OS's

I don't have XWindows. Can I still run appletviewer without loggin in graphically?
YES!

If you don't run XWindows at home you are likely using Microsoft Windows or a Macintosh. All you need to do is to download an "X Server for Windows" or "X Server for Macintosh" and run that on your computer. While that X Server is running on your computer, follow the "export DISPLAY" directions above. You don't need to run the "xhost +denali.cet.nau.edu" on the windows or mac box because you are running a different sort of XServer. If you need help, don't ask Karim, he is a religious free software user. :-)

Finally...

You can also create a page with an applet on it and view in in a browser. For info on that, see our web information.