CMSC212 Discussion - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

CMSC212 Discussion

Description:

cs212xxx CVS account. How to SSH: Check later s. Change password ... setenv CVSROOT /homes/jh212001/cvs/$user. set path=(~hollings/bin $path) ... – PowerPoint PPT presentation

Number of Views:52
Avg rating:3.0/5.0
Slides: 12
Provided by: konstant5
Category:

less

Transcript and Presenter's Notes

Title: CMSC212 Discussion


1
CMSC212 Discussion
  • Wednesday, January 26, 2005
  • Sections 010X

2
Information
  • Name Konstantin Berlin
  • Email kberlin_at_cs.umd.edu
  • Office Hours Mo 1130-1230pm, W 1130-130pm,
    400-500pm in room AV Williams room 1112
  • Additional Hours By appointment only. Talk to me
    first.
  • Slides www.cs.umd.edu/kberlin/spring2005
  • Free software www.sourceforge.net
  • May change

3
Outline
  • Announcements
  • Using Unix
  • Installing programming environment in Windows.
  • Demo

4
Announcements
  • Lab Monday will either be in CSI2118 or in
    AVW1120
  • This depends if we get remote logins into Linux
    wam accounts working
  • Make sure you find out before Monday
  • Attendance
  • We will cover new material in discussion. Be
    careful what you skip.
  • As long as there enough laptops I dont care
    which section you attend. Except for quiz days.
  • Questions
  • Please ask questions
  • If Im not answering your question, dont be
    afraid to interrupt me and ask again.

5
Accounts Setup
  • Log into grades.cs.umd.edu
  • Get two accounts
  • jh212xxx WAM account
  • cs212xxx CVS account
  • How to SSH Check later slides
  • Change password
  • SSH into linuxlab.cs.umd.edu
  • type passwd to change password
  • SSH into wam.umd.edu
  • type passwd to change password
  • Note This is not a LINUX machine. Do NOT assume
    project compiled there will work when submitted.
  • new!In wam.umd.edu
  • type emacs .cshrc.mine
  • add three lines
  • setenv CVSROOT /homes/jh212001/cvs/user set
    path(hollings/bin path) setenv CVSEDITOR
    "/usr/local/bin/emacs -nw"
  • press ctrl-x, ctrl-c, y, enter to exit
  • re-login

6
Using your account Unix
  • Getting help
  • man displays help for
  • Loging out
  • logout log out of wam
  • Making directories
  • mkdir to create a directory.
  • Checking current directory
  • pwd displays current directory
  • Copying/Deleting/Moving files or directores
  • cp to copy of files to directory.
  • rm r to delete
    recursively
  • mv to
    move to
  • Check your environment
  • uname a displays current operating system
    (make sure its linux)
  • env displays your enviroment settings

7
Using Your Account CVS
  • Now use command line interface with CVS
  • Help and list of options
  • man cvs
  • Get files first time
  • cvs checkout
  • Update from cvs
  • cvs update
  • Add files to cvs
  • cvs add
  • Commit changes to cvs
  • cvs commit
  • Remove file from cvs
  • cvs remove
  • For better understanding of command line
    interface check out the tutorials, manual page
    for cvs.
  • The other option is to use Eclipse ?

8
Using Your Account Compiling and Running
  • Our compiler is gcc
  • Compiler errors make less sense then with javac
  • gcc o .c
  • compiles and links the program
  • gcc v
  • gives compiler version
  • We will use makefiles
  • Covered in later discussion
  • Our debugger
  • An error in program will cause program to crash.
    There will not be a stack trace printed like in
    JAVA.
  • Need to use a debugger to get an idea of where
    the problem occurred
  • Covered in later discussion

9
Using your account Editing
  • To view files use one of these
  • less
  • more
  • cat
  • To edit files use one of these
  • pico
  • emacs
  • See tutorial on class webpage for more details
  • Input redirection
  • command output file
    name
  • Comparing files
  • type diff bwi .
    Warning -bwi options dont ignore extra blank
    lines.

10
Windows SSHSCP
  • SSH
  • Secure version of telnet.
  • Putty
  • www.chiark.greenend.org.uk/sgtatham/putty
  • SCP
  • Secure version of ftp.
  • winscp
  • winscp.sourceforge.net/eng/
  • filezilla
  • http//sourceforge.net/projects/filezilla/

11
Alternative Ways
  • If you have a windows machine and want to work
    from home please install Linux as a duel boot.
  • Any windows alternatives will most likely NOT
    work for successive projects.
Write a Comment
User Comments (0)
About PowerShow.com