Upload
leslie-stanley
View
217
Download
3
Tags:
Embed Size (px)
Citation preview
CPSC 233Run graphical Java programs remotely
on Mac and Windows
Simple Example
• Hello GUI can run locally.
Simple Example
• Hello GUI cannot run on cpsc server when remote access.
Install Xquartz on MAC
• Click go-utilities-X11
• Press continue, as X11 is no longer included with OS X, go to XQuartz project: http://xquartz.macosforge.org
• Download XQuartz-2.7.7.dmg
• Install
Run Xquartz on MAC
• Go to utility-terminal
• ssh –X to cpsc server: -X to enable display forwarding
Install Xming onWindows
• Download and run the current setup executable available at the SourceForge page for Xming. http://sourceforge.net/projects/xming/files/Xming-mesa/6.9.0.31/Xming-mesa-6-9-0-31-setup.exe/download
• Install Xming
Install Xming onWindows
Variable Assignment• you should see the following dialog indicating successful
installation of Xming. You are now equipped to view X11-based graphical applications remotely. Click [Finish].
PuTTY SSH
• In the PuTTY configuration window, select "Connection->SSH->X11" and make sure the Enable X11 forwarding box is checked, then return to the Session category and click [Open] when you are ready to connect to the specified machine:
SSH Secure Shell Client
• Select the menu option "Edit->Settings" as shown below:
SSH Secure Shell Client
• Select the option "Profile Settings->Connection->Tunneling" and make sure the "Tunnel X11 connections" box is checked, then click [OK]. This should then be set for future uses of SSH Secure Shell Client.
Run graphical Java programs remotely
• Double Click Xming
• Run ssh secure file Transfer or Putty
• Connect to cpsc sever and run helloWorld class