Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org -...

27
Intro to 0. Setup on hpc2.org

Transcript of Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org -...

Page 1: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Intro to

0. Setup on hpc2.org

Page 2: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Intro to

0. Setup on hpc2.org

- Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Page 3: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Workshop computing environment

Student workstation(Firefox browser)

hpc2 server(webserver, RStudio)

You are here!

Page 4: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Register on hpc2.org

You must have an email address...

1. On hpc2.org website, click Register link

2. Fill in required fields; submit

3. Follow link to Create New Account page

4. Choose username and password; specify email address; submit

5. Click link on confirmation email; sign in

Page 5: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Register on hpc2.org

Page 6: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Fill in required fields and submit

Page 7: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Click “Register”

Page 8: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Pick a login name and password

Page 9: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

hpc2 new account created

Page 10: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

RStudio

Dashboard

Page 11: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV
Page 12: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

hpc2 My Tools: R Studio Tool

Rstudio session: TerminateSuspend

Page 13: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Rstudio window: Pop outRefreshExpand

Page 14: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

GitHub

Student workstation

GitHub server

hpc2 server

Pull files and dataView files

Page 15: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Workshop Files and Data: GitHub

Student workstation

GitHub server

hpc2 server

Page 16: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

GitHub

Student workstationhpc2 server

Page 17: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Create GitHub project in RStudio1. In RStudio:● Select Project: Create Project● Select Version Control

Page 18: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Create GitHub project in RStudio2. In RStudio:

Next, select Git

Page 19: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Create GitHub project in RStudio3. In RStudio:

Type the Repository URL as shown

git://github.com/jsperhac/workshop-dev.git

Page 20: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Create GitHub project in RStudio4. RStudio copies the files to your home directory on hpc2

Page 21: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

Rstudio: load your dataset

● Select Import Dataset: From Text File ● Select a .csv file

Page 22: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

GitHub project in RStudio

● Selecting the project sets the working directory● Your RStudio project contains directories:

– examples

– exercises

– project

– resources

Page 23: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

File transfer

Student workstation

hpc2 server

WebDAV

Page 24: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

File transfer: WebDAV

Student workstation

● Home folder

Page 25: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

File transfer: WebDAV

Student workstation

File: Connect to Server...

Page 26: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

File transfer: WebDAV

Student workstation

Use your hpc2 user credentials

Page 27: Intro to - University at Buffalo€¦ · Intro to 0. Setup on hpc2.org - Register on hpc2.org - Intro to Rstudio - Set up with Github - File transfer: WebDAV

File transfer

Student workstation

hpc2 server

WebDAV