Top Banner
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab 1 1 Shane Transue
30

CSCI 1411 Fundamentals of Computing Lab

Mar 23, 2016

Download

Documents

Angelo Ferrillo

CSCI 1411 Fundamentals of Computing Lab. Shane Transue. Lab 1. Introduction. Course : CSCI-1411 Fundamentals of Computing Lab Instructor : Shane Transue Research: Graphics / Physics Sim / C++ Library Design Office Hours : Tues/Thurs (2:00pm – 3:00pm) - PowerPoint PPT Presentation
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: CSCI 1411  Fundamentals of Computing Lab

CSCI 1411 FUNDAMENTALS OF

COMPUTING LAB

Lab 1

1

Shane Transue

Page 2: CSCI 1411  Fundamentals of Computing Lab

CSCI 1411 Spring 2012

Introduction2

Course: CSCI-1411 Fundamentals of Computing Lab Instructor: Shane Transue

Research: Graphics / Physics Sim / C++ Library Design Office Hours: Tues/Thurs (2:00pm – 3:00pm) Office Location: LW-820 (Graphics Lab)

Optionally in the Lab Email: [email protected]

Website: ucdenver.instructure.com (Canvas) shanetransue.com/teaching/

Page 3: CSCI 1411  Fundamentals of Computing Lab

Objectives 3

1. Introduction2. Logging into a computer / CSE Unix Servers3. Getting familiar with the terminal window in a

Unix environment4. Trying some of the Unix commands5. Uploading a C++ source file6. Compiling and Running a C++ program7. Logging out and terminating a session

Page 4: CSCI 1411  Fundamentals of Computing Lab

Agreement Form4

Require a signature on the Pre-requisite / Co-requisite Agreement. Pre-requisite: Freshman status Co-requisite: CSCI 1410 Fundamental of Computing

Page 5: CSCI 1411  Fundamentals of Computing Lab

CSCI 1411 Canvas Site5

Announcements Syllabus/Schedule Labs and Assignments (Modules) Canvas for Homework Submissions

(do NOT need to use VPN for Canvas)

Page 6: CSCI 1411  Fundamentals of Computing Lab

Course Introduction6

Goals To gain skills in computer programming with the C++

language using a UNIX operating systemGrading Policy 14 Labs worth 40 points each:

Pre-lab assignments worth 5 points Programming component worth 35 points (see syllabus)

No examsAssignments– Each lab must be completed and turned in by start of class

one week after assigned (exception is last lab of semester).

– All work must be turned in on Canvas

Page 7: CSCI 1411  Fundamentals of Computing Lab

How to Access Windows & Mac PCs in Lab7

Lab PC login• User ID and Password are the same as you

use to log into the UCDAcess portal and your UCD email account.

• Note you will using this same account to log into the Unix server.

Page 8: CSCI 1411  Fundamentals of Computing Lab

How to Access CSE Unix Servers8

Contact for problems involving your CSE account.

Helpdesk system: csehelp.ucdenver.pvt Or e-mail [email protected]

Page 9: CSCI 1411  Fundamentals of Computing Lab

How to Get PuTTTY9

PuTTY – A secure shell access client Allows for remote terminal access to the Unix grid http://www.putty.org/ Already installed on the Lab Computers

Page 10: CSCI 1411  Fundamentals of Computing Lab

How to Access Terminal Service10

2) All programs ->

1) start ->

Page 11: CSCI 1411  Fundamentals of Computing Lab

11

How to Access Terminal Service

3) PuTTY->

Page 12: CSCI 1411  Fundamentals of Computing Lab

How to Access Terminal Service12

4) PuTTY ->

Page 13: CSCI 1411  Fundamentals of Computing Lab

CSCI 1411 Spring 2012

13

How to Access Terminal Service

Host Name: csegrid.ucdenver.pvt

Page 14: CSCI 1411  Fundamentals of Computing Lab

14

How to Access Terminal Service

login as: UCD User Name

Page 15: CSCI 1411  Fundamentals of Computing Lab

15

How to Access Terminal Service

Password: UCD Password

Page 16: CSCI 1411  Fundamentals of Computing Lab

Unix Terminal16

What is UNIX? UNIX is an operating system (OS), software that manages the hardware and software resources of a computer. (Like Windows, Mac OS)

How will we use it? To write, compile, and execute C++ programs.

Page 17: CSCI 1411  Fundamentals of Computing Lab

Trying Some of Unix Commands17

Each of these commands is typed in after the UNIX prompt, and each is executed by pressing (Enter). Dir and file represent the pathnames of a directory and a file, respectively.

Unix Command Meaningmkdir Dir Make a directory having the pathname Dir

mv file Dir Move file into the directory Dir

cd Dir Change to directory having the pathname Dir

cd Change to home directory

rmdir Dir Remove (i.e., delete) the directory Dir

pwd Print working directory’s pathname

ls List files in the current directory

cat file Display file

Page 18: CSCI 1411  Fundamentals of Computing Lab

18

pwd command Print working directory’s pathname For example:

Page 19: CSCI 1411  Fundamentals of Computing Lab

19

mkdir command Make a directory having the

pathname Dir For example:mkdir csci1410mkdir csci1411mkdir ~/temp

create a directory at student’s home directory

Page 20: CSCI 1411  Fundamentals of Computing Lab

20

ls command List files in the current directory For example:ls

ls -l

ls -t

Page 21: CSCI 1411  Fundamentals of Computing Lab

21

rmdir command Remove (i.e., delete) the directory

Dir For example:rmdir csci1410rmdir ~/temp

Page 22: CSCI 1411  Fundamentals of Computing Lab

22

cd command Change to directory having the pathname Dir For example:cd csci1411(and then try ls and pwd command to see the output )

cd(and then try ls and pwd command to see the output )

Page 23: CSCI 1411  Fundamentals of Computing Lab

23

mv command Move file into the directory Dir For example:

mv index.html csci1411

(and then try these commands to see if file is moved)cd csci1411ls

Page 24: CSCI 1411  Fundamentals of Computing Lab

24

UNIX Text Editors

1. nanonano file_nameExample: nano my_first_file.cpp

2. vivi file_name

Page 25: CSCI 1411  Fundamentals of Computing Lab

25

Accessing UCD Grid Files WinSCP

Manage files on the UCD Grid http://winscp.net/ Already installed on the Lab computers

Page 26: CSCI 1411  Fundamentals of Computing Lab

26

Accessing UCD Grid Files File Transfers

WinSCP to csegrid.ucdenver.pvt (this doesn’t work until you log in using ssh for the first time, otherwise your home directory will not have been created)

(Windows) Connect to: \\csenas.ucdenver.pvt\<username> from Windows desktop and copy files to home directory

(Mac) Connect to: SMB://csenas.ucdenver.pvt/<username> from a Mac finder window and copy files to home directory.

Page 27: CSCI 1411  Fundamentals of Computing Lab

27

Download/Upload files using WinSCP

Start All Program WinSCP WinSCP Enter Hostname: csegrid.ucdenver.pvt Enter Username & Password used for

University login

Page 28: CSCI 1411  Fundamentals of Computing Lab

28

Download/Upload files using WinSCP

Drap & Drop files between two windows to download/upload file into UCD Server

Your PC UCD Server

Page 29: CSCI 1411  Fundamentals of Computing Lab

Accessing CSE Servers from off campus29

1. Install Virtual Private Network Used to connect to the UCD networkhttps://itservices-web.ucdenver.edu/VPN/

2. Use your University Account to Authenticate3. Download the Correct Version of the VPN based on your home computer OS version.

Page 30: CSCI 1411  Fundamentals of Computing Lab

30

Accessing Terminal Services

Basic terminal access (if off campus turn on VPN first, if on campus don’t use VPN): Connect to the load balancer

csegrid.ucdenver.pvt via ssh using the client of your choice (This will forward you to one of the six blades based on a round-robin algorithm)