Top Banner
1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under Creative Commons See license online: by-nc-sa/3.0
19

1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

Dec 22, 2015

Download

Documents

Andrea Knight
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

1

Using Workspaces toDevelop Simulation Tools

Michael McLennanSoftware Architect

HUBzero™ Platform for Scientific Collaboration

This work licensed underCreative Commons

See license online:by-nc-sa/3.0

Page 2: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

2

Getting into a Workspace

Page 3: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

3

File server

What is a workspace?

• Full-featured Linux desktop

• For tool developers

• For researchers

• Accessible from any web browser

• Still running after you close your browser

• Access to Grid resources

• File storage provided by the hub

localclusters

Page 4: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

4

Accessing running workspaces

Close the browser

Still running, and listed under “my sessions”

Page 5: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

5

Closing workspaces

Close the workspace

Closes the session

OR

Page 6: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

6

Resize the screen

Click and drag

Type in a new sizePress Tab

Page 7: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

7

Pop out as a separate window

Get rid of this header andsee more of the workspace

Solve problem of mouse trailse.g., MacOSX/Firefox

Page 8: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

8

Pop out as a separate window

This area goes blank.Closing this window also closes the popup.

Click Popout again to pop back in

Page 9: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

9

Share your screen

myfriend

See samescreen at

same timeEnter the loginfor your friend

Check this if you don’twant to share control

Page 10: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

10

Linux Cheat Sheet

ls pattern list files in the current directory ls list all files ls *.xml list files ending with .xml

mkdir name make a new directory called name mkdir assmt3 make a new directory called assmt3

cd name change working directory cd assmt3 change to directory assmt3 cd .. change to parent directory cd change back to home directory (good if you get lost)

cp from to copy file from to file to cp /apps/rappture/current/examples/zoo/number/tool.xml . cp ../assmt3/tool.xml newtool.xml

gedit file edit the specified file

rappture run Rappture (loads tool.xml by default) rappture -tool foo.xml

/ = separates directories. = current directory.. = parent directory* = matches anything? = matches single char

/ = separates directories. = current directory.. = parent directory* = matches anything? = matches single char

Page 11: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

11

Editors

“Start”menu

Page 12: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

12

Other utilities

xloadimage file view image file

xpdf file PDF viewer

gimp & image editor

dx & scientific data explorer

octave & MATLAB clone

xcalc & calculator

Page 13: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

13

Developing tools

• Use Subversion to check out project source codesvn checkout https://yourhub.org/tools/yourtool/svn/trunk yourtool

• Edit, compile, testcd srcmake installcd ../rappturevi tool.xmlrappture

• Use Subversion to check out project source codesvn checkout https://yourhub.org/tools/yourtool/svn/trunk yourtool

• Edit, compile, testcd srcmake installcd ../rappturevi tool.xmlrappture

See instructions:• in your project area at wiki/GettingStarted• Subversion tutorial• Rappture tutorial

Page 14: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

14

Downloading Files

• Easy way to download files:exportfile tool.xml

exportfile examples/*

• Easy way to download files:exportfile tool.xml

exportfile examples/*

Page 15: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

15

Uploading files

• Easy way to upload files:importfile src.tgz

• Easy way to upload files:importfile src.tgz

Page 16: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

16

Uploading files

• Easy way to upload files:importfile src.tgz

importfile mesh.dat doping.dat

• Easy way to upload files:importfile src.tgz

importfile mesh.dat doping.dat

Page 17: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

17

Other ways to transfer files

Drag & drop on the desktop (webdav)

On Microsoft Windows:

• Go to My Network Places

• Click Add a network place

• Internet or network address: https://nanohub.org/webdav

Secure FTP (sftp)

sftp client, such as PUTTYhttp://www.putty.org/

[email protected]

Page 18: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

18

Accessing the Grid

Launch jobs on the gridIf you would have typed…

spice3 –b indeck > out.dat

…then submit the job to the grid as:

submit spice3 –b indeck > out.dat

submit --venue steele spice3 –b indeck > out.dat

Launch jobs on the gridIf you would have typed…

spice3 –b indeck > out.dat

…then submit the job to the grid as:

submit spice3 –b indeck > out.dat

submit --venue steele spice3 –b indeck > out.dat

spice3localclusters

Page 19: 1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.

19

Exercise #1: Using Workspaces

1) Log in and launch a workspace

2) Bring up your favorite editor and create a file called hello.txt with thetext: Hello, World!

3) Export the file to your desktop

4) Import another file back into your workspace

Hint: look at commands…

exportfile --help importfile --help