Top Banner
Connecting to GMT machine via Windows 7
15

Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Mar 29, 2015

Download

Documents

Summer Kettles
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: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Connecting to GMT machine via Windows 7

Page 2: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Windows

PuTTy

GMT on Mac serverint-038.geosci.usyd.edu.au

To use GMT, you will connect to a Mac server via PuTTy in Windows.

PuTTy established a secure connection (SSH) to the computer on the network.

Page 3: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Map Network Drive in Windows

1. Open “My Computer”2. Click “Map Network Drive”

Page 4: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.
Page 5: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Enter the following

• Drive letter: Any spare one

• Folder:

\\int-038.geosci.usyd.edu.au\Documents

• Tick “Login using different credentials”

Page 6: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Login

• You will be prompted for a username and password, enter:

gmt-user

wel0veGMT (^=zero)

Page 7: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Important:Create folder with your name!

Page 8: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Create new folder

• Right click inside “Documents” window

• Select New > New Folder

• Use your full name

• This will be your workspace

Page 9: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Edit your GMT script using NotePad ++

• All scripts should have the following in the first line:

#!/bin/bash

• Save script with “.sh” file extension

Page 10: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.
Page 11: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Run script via PuTTy

• Open PuTTy from Start Menu• In the Host Name, type in:

int-038.geosci.usyd.edu.au

• Leave everything else as is• Click Open to establish connection

Page 12: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

PuTTy

• First time you connect, the following screen will appear:

• Click YES

Page 13: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

PuTTy

• You will be prompted for your username and password gmt-user wel0veGMT

Page 14: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Navigate to YOUR workspace

• In the Terminal window, type in

cd Documents/FirstnameLastname

and press Enter

e.g.

cd Documents/SabinZahirovic/(cd means change directory)

Page 15: Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.

Prepare and run your script• Type in “ls” and press Enter to list all your files

• Convert your script to UNIX-text file, type in

dos2unix YourFile.sh

• Give your script execute (+x) permissions

chmod +x YourFile.sh

• Run your script

./YourFile.sh

Super important!

If you do not do these steps, your script will not work.