CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.

Slides:



Advertisements
Similar presentations
Introduction to the Omega Server CSE Overview Intro to Omega Basic Unix Command Files Directories Printing C and C++ compilers GNU Debugger.
Advertisements

ENEE150: Discussion 1 Section 0104 Please Sit Down at a Computer and Login!
1 Class motto: What’s this button for?. 2 CMSC104 Problem Solving and Computer Programming Fall 2011 Section 4 Richard Chang.
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
George Blank University Lecturer. Creating A Web Site at NJIT Professor Blank.
Working Environment - - Linux - -.
Exploring the Internet Creating and setting up your website Instructor: Michael Krolak Instructor: Patrick Krolak See also
CS 202 Computer Science II Lab Fall 2009 September 3.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
Spring 2007Introduction to OS1 IT 3423: Operating System Concepts and Administration Instructor: Wayne (Weizheng) Zhou
Virtual Machine and UNIX. What is a VM? VM stands for Virtual Machine. It is a software emulation of hardware. By using a VM, you can have the same hardware.
A crash course in njit’s Afs
Agenda What is Computer Programming? The Programming Process
ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011.
Introduction to UNIX/Linux Exercises Dan Stanzione.
CS110/CS119 Introduction to Computing (Java)
ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2012, Jan 18, 2012assignprelim.1 Assignment Preliminaries ITCS 4145/5145 Spring 2012.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
1 C/C++ UM/MCSR. 2 Logging into the system using ssh Logging into the system from Windows: –Start the secure shell client: Start->Programs->SSH.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Computing Fundamenatls CMSC 201 Computer Science I Penny Rheingans University of Maryland Baltimore County (with inspiration from previous 201 instructors.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
AE6382 Secure Shell Usually referred to as ssh, the name refers to both a program and a protocol. The program ssh is one of the most useful networking.
ITCS 4/5010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Dec 28, 2012assignprelim.1 Assignment Preliminaries ITCS 4010/5010 Spring 2013.
COP3502: Introduction to Computer Science Yashas Shankar.
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
Intro to Programming Environment 1. Today You Will Learn how to connect to a machine remotely with “nomachine NX client” Learn how to create a new “source.
Creating Programs on UNIX This term you can create programs on UNIX or you can create programs using a C++ compiler on your PC. This set of slides steps.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
Linux CSE 1222 CSE1222: Lecture 1BThe Ohio State University1.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Tutorial Six Linux Basics CompSci Semester Two 2016.
GRID COMPUTING.
ENEE150 Discussion 01 Section 0101 Adam Wang.
CS1010: Intro Workshop.
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Web Programming Essentials:
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
Andy Wang Object Oriented Programming in C++ COP 3330
Computing Fundamenatls CMSC 201 Computer Science I Penny Rheingans University of Maryland Baltimore County (with inspiration from previous 201 instructors.
Welcome to CSCI 230! Problem Solving using C
Assignment Preliminaries
Creating Programs on UNIX
File Transfer Olivia Irving and Cameron Foss
Intro to UNIX System and Homework 1
Welcome to CSCI 230! Problem Solving using C
CSCE 206 Lab Structured Programming in C
Web Programming Essentials:
CSCE 206 Lab Structured Programming in C
SLIS Technology Orientation
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS

Introduction CSCI 1411 Spring  Course: CSCI-1411 Fundamentals of Computing Lab  Instructor: Shane Transue  Research: Graphics / Physics Sim / C++ Library Design  Office Hours: Tues/Thurs (2:30pm – 3:30pm)  Office Location: LW-820 (Graphics Lab)  Optionally in this Lab   Website:  ucdenver.instructure.com (Canvas)  shanetransue.com/teaching/

Objectives 3 1. Introduction 2. Logging into a computer / CSE Unix Servers 3. Unix environment: Terminal (PuTTY) 4. Trying some of the Unix commands 5. Uploading a C++ source file 6. Compiling and Running a C++ program 7. Logging out and terminating a session

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

CSCI 1411 Canvas Site 5  Announcements  Syllabus/Schedule  Labs and Assignments (Modules)  Canvas for Homework Submissions (do NOT need to use VPN for Canvas)

Course Introduction 6 Goals  To gain skills in computer programming with the C++ language using a UNIX operating system Grading Policy  14 Labs worth 40 points each:  Pre-lab assignments worth 5 points (Due at the beginning of Class)  Programming component worth 35 points (see syllabus)  No exams Assignments – 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

How to Access Windows & Mac PCs in Lab 7  Lab PC login User ID and Password are the same as you use to log into the UCDAcess portal and your UCD account. Note you will using this same account to log into the Unix server.

CSE Unix Servers Problems 8  Contact for problems involving your CSE account.  Helpdesk system: csehelp.ucdenver.pvt  Or

How to Get PuTTY 9  PuTTY – A secure shell access client  Allows for remote terminal access to the Unix grid   Already installed on the Lab Computers

How to Access the CSE Grid Terminal 10 2) All programs -> 1) start ->

How to Access the CSE Grid Terminal 11 3) PuTTY->

How to Access the CSE Grid Terminal 12 4) PuTTY ->

How to Access the CSE Grid Terminal CSCI 1411 Spring Host Name: csegrid.ucdenver.pvt

How to Access the CSE Grid Terminal 14 Login as: UCD User Name

How to Access the CSE Grid Terminal 15 Password: UCD Password My password does not show up ! The terminal is accepting input, it is just “hidden”

Unix Terminal 16  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.

Unix Terminal Commands CSCI 1411 Spring  Simple Unix Terminal Commands  pwd - Print the current working directory  mkdir - Make a new directory (folder)  ls - List the contents of the current directory (folder)  cd - Change directory (go to a folder)  rmdir - Remove a directory (folder)  rm - Remove a file

Unix Terminal Command Examples CSCI 1411 Spring  Making a new directory (folder):  mkdir myDirecotryName (The name of the newly created directory will be: myDirectoryName)  Changing the current directory:  cd myDirectoryName (The current directory in the terminal will be changed to myDirectoryName)  Removing a file:  rm myFile.cpp (Deletes the file: myFile.cpp from the CSE grid server – He’s dead Jim!

Home Directory Setup CSCI 1411 Spring  Goal: Organize a CSCI-1411 directory within your home directory on the CSE grid server.  Helps keep each lab organized for the semester  Practice using the basic Unix terminal commands  Placing all files within a single directory is generally utter chaos Who wants to end up with 20 files named: main1.cpp, main2.cpp, main3.cpp main4.cpp,...  What we want to create: /export/homes/yourname/csci1411/lab0 /export/homes/yourname/csci1411/lab1...

Home Directory Setup Guide CSCI 1411 Spring  Once you have logged in to the CSE Grid (PuTTY), enter each command and press enter at the terminal (assuming you start at: /export/homes/yourname/)  pwd  mkdir csci1411  ls  cd csci1411  pwd  mkdir lab0  ls  pwd

Home Directory Setup Result CSCI 1411 Spring  Utilize the pwd command to print the working directory after you have changed to the lab0 directory:  /export/homes/yourname/csci1411/lab0/

UNIX Text Editors 22  There are two editors that you can use to author the (C++) source code for this course: 1) nano (Less features – Easy to use) nano file_name Example: nano main.cpp To Save: Ctrl-O To Exit: Ctrl-X 2) vi (Extensive number of features – More complex) vi file_name.cpp Example: vi main.cpp To Exit: Press Esc. Enter :q or :wq to save and quit

A Simple C++ Program CSCI 1411 Spring  No programming introduction is complete without the obligatory ‘Hello World’ program:  Utilize one of the introduced editors: (nano or vi)  Create a main.cpp C++ source file nano main.cpp vi main.cpp  Enter the following code to implement the Hello World program in C++

C++ Hello World CSCI 1411 Spring #include using namespace std; int main() { cout << “Hello World” << endl; return 0; }

Compiling and Executing a C++ program CSCI 1411 Spring  Exit your editor (nano or vi)  At the terminal enter the following to compile your C++ program:  g++ main.cpp (This compiles the C++ source code!)  Once the C++ source code has been compiled into a binary file: ./a.out (This executes the compiled program!)

Accessing UCD Grid Files 26  WinSCP  Manage files on the UCD Grid   Already installed on the Lab computers

Accessing UCD Grid Files 27  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\ from Windows desktop and copy files to home directory  (Mac) Connect to: SMB://csenas.ucdenver.pvt/ from a Mac finder window and copy files to home directory.

Download/Upload files using WinSCP 28  Start  All Program  WinSCP  WinSCP  Enter Hostname: csegrid.ucdenver.pvt  Enter Username & Password used for University login 

Download/Upload files using WinSCP 29  Drap & Drop files between two windows to download/upload file into UCD Server Your PCUCD Server

Accessing CSE Servers from off Campus Install Virtual Private Network Used to connect to the UCD network Use your University Account to Authenticate 3. Download the Correct Version of the VPN based on your home computer OS version.

Accessing CSE Servers from off Campus 31  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)