CPSC 233 Run graphical Java programs remotely on Mac and Windows.

12
CPSC 233 Run graphical Java programs remotely on Mac and Windows

Transcript of CPSC 233 Run graphical Java programs remotely on Mac and Windows.

Page 1: CPSC 233 Run graphical Java programs remotely on Mac and Windows.

CPSC 233Run graphical Java programs remotely

on Mac and Windows

Page 2: CPSC 233 Run graphical Java programs remotely on Mac and Windows.

Simple Example

• Hello GUI can run locally.

Page 3: CPSC 233 Run graphical Java programs remotely on Mac and Windows.

Simple Example

• Hello GUI cannot run on cpsc server when remote access.

Page 4: CPSC 233 Run graphical Java programs remotely on Mac and Windows.

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

Page 5: CPSC 233 Run graphical Java programs remotely on Mac and Windows.

Run Xquartz on MAC

• Go to utility-terminal

• ssh –X to cpsc server: -X to enable display forwarding

Page 7: CPSC 233 Run graphical Java programs remotely on Mac and Windows.

Install Xming onWindows

Page 8: CPSC 233 Run graphical Java programs remotely on Mac and Windows.

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].

Page 9: CPSC 233 Run graphical Java programs remotely on Mac and Windows.

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:

Page 10: CPSC 233 Run graphical Java programs remotely on Mac and Windows.

SSH Secure Shell Client

• Select the menu option "Edit->Settings" as shown below:

Page 11: CPSC 233 Run graphical Java programs remotely on Mac and Windows.

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.

Page 12: CPSC 233 Run graphical Java programs remotely on Mac and Windows.

Run graphical Java programs remotely

• Double Click Xming

• Run ssh secure file Transfer or Putty

• Connect to cpsc sever and run helloWorld class