lab01
Download
Skip this Video
Download Presentation
Lab01

Loading in 2 Seconds...

play fullscreen
1 / 19

Lab01 - PowerPoint PPT Presentation


  • 111 Views
  • Uploaded on

Lab01. Dayu Zhang 9/3/2014. Lab Instructor: Dayu Zhang. Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website http ://venus.cs.qc.cuny.edu/~dzhang/. Lab Login. Username: First 2 letters of LAST NAME, followed by First 2 letters of FIRST NAME, followed by

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Lab01' - brennan-matthews


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
lab01

Lab01

Dayu Zhang

9/3/2014

lab instructor dayu zhang
Lab Instructor: Dayu Zhang
  • Office Hour
    • Mon/Wed 10:40am – 11:10am Room A201
  • Lab Website
    • http://venus.cs.qc.cuny.edu/~dzhang/
lab login
Lab Login
  • Username:
    • First 2 letters of LAST NAME, followed by
    • First 2 letters of FIRST NAME, followed by
    • Last 4 digits of CUNYfirst ID#
  • Password:
    • 8 digits CUNYfirst ID#
lab grading policy
Lab Grading Policy
  • Total Points: 30 Points
    • 10 Assignments: 20 Points (2 Points Each)
    • 10 Quizzes: 10 Points (1 Point Each)
assignment submission
Assignment Submission
  • Assignments should be submitted to: [email protected]
  • Subject should be:
    • CS111 - Your Last Name, Your First Name - Assignment Number
    • E.g. CS111 - Zhang, Dayu - Assignment01
  • Put your name on the first line of your program.
    • E.g. //Name: Zhang, Dayu
  • Assignments should be submitted by deadline. No late submission is accepted.
  • Submitted programs that cannot be compiled will get 0 point.
slide6
Quiz
  • All quizzes are on Wednesday.
  • No make-up quiz is allowed.
venus account
Venus Account
  • Hostname: venus.cs.qc.cuny.edu
  • Username:
    • First 2 letters of LAST NAME, followed by
    • First 2 letters of FIRST NAME, followed by
    • Last 4 digits of CUNYfirst ID#
  • Password:
    • 8 digits CUNYfirst ID#
  • Example: John Doe, CUNYfirst ID# 12345678
    • Username: dojo5678
    • Password: 12345678
ssh secure shell client
SSH Secure Shell Client
  • Icon on lab desktop
ssh secure shell client2
SSH Secure Shell Client
  • Type Host Name venus.cs.qc.cuny.edu
  • Type your username, then click “Connect”

click

ssh secure shell client4
SSH Secure Shell Client
  • Enter your password, then click “OK”

click

ssh secure shell client5
SSH Secure Shell Client

You should see this

for mac and linux users
For Mac and Linux Users
  • Go to Terminal
  • If your username is dojo5678, enter:

ssh [email protected]

basic unix commands
Basic UNIX Commands
  • mkdirdirname --- make a new directory dirname
    • E.g. mkdir CS111
  • cd dirname --- change directory to dirname
    • E.g. cd CS111
  • cd--- go to your home directory
  • cd ..--- move up one directory in the hierarchy (there is a space between cd and ..)
  • ls --- lists your files in current directory
  • rmfilename --- removes a file
slide16
vi
  • vi filename --- If the file named filename exists, then the first page of the file will be displayed; if the file does not exist, then a new file is created.
  • vi editor has two modes of operation:
    • Command mode
    • Insert mode
  • If currently in Command mode, type i to go to Insert mode
  • If currently in Insert mode, type ESC to go to Command mode
slide17
vi
  • In Command mode:

:wq --- save the file and quit vi

:q --- quit vi when the file has not been modified

:q! --- disregard any modification and quit vi

create and compile hello cpp
Create and Compile Hello.cpp
  • g++ Hello.cpp --- compile Hello.cpp
  • ./a.out --- run program
ssh secure file transfer client
SSH Secure File Transfer Client
  • Upload files to Venus
  • Download files from Venus
  • Icon on lab desktop
  • For Mac users, use scp to download from Venus. E.g.

scp [email protected]:Hello.cpp ~/Desktop