Introduction. Overview of 201 Lab and Linux Tutorials. Stef Nychka. September 10, Department of Computing Science University of Alberta

Similar documents
Tutorial 1: Unix Basics

Getting Started With UNIX Lab Exercises

Using the Zoo Workstations

Practical Session 0 Introduction to Linux

CSCI 161: Introduction to Programming I Lab 1a: Programming Environment: Linux and Eclipse

CPS109 Lab 1. i. To become familiar with the Ryerson Computer Science laboratory environment.

Lab 1 Introduction to UNIX and C

CpSc 1111 Lab 1 Introduction to Unix Systems, Editors, and C

Lab 1 Introduction to UNIX and C

CSE115 Lab exercises for week 1 of recitations Spring 2011

Intermediate Programming, Spring Misha Kazhdan

Linux Exercise. pwd answer: We call this directory (into which you get when you log in) your home directory.

Programming and Data Structure Laboratory (CS13002)

CSC111 Computer Science II

Oregon State University School of Electrical Engineering and Computer Science. CS 261 Recitation 1. Spring 2011

Getting started with UNIX/Linux for G51PRG and G51CSA

1 Getting Started with Linux.

CMPUT 201: Practical Programming Methodology. Guohui Lin Department of Computing Science University of Alberta September 2018

EE516: Embedded Software Project 1. Setting Up Environment for Projects

CSC209. Software Tools and Systems Programming.

CS4023 Week04 Lab Exercise

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Introductory Digital Systems Laboratory

Once you have installed MobaXterm, open MobaXterm. Go to Sessions -> New Session, and click on the SSH icon.

G-Databar Introduction. September 2017

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

Due: February 26, 2014, 7.30 PM

Intro to HPC Exercise

CSC209. Software Tools and Systems Programming.

CMSC 104 Lecture 2 by S Lupoli adapted by C Grasso

STA 303 / 1002 Using SAS on CQUEST

Practical Programming Methodology

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Laboratory 1 Semester 1 11/12

User Guide Version 2.0

Brief Linux Presentation. July 10th, 2006 Elan Borenstein

LAB 0: LINUX COMMAND LINE AND SVN

Linux Survival Guide

Introduction to Linux. Fundamentals of Computer Science

Introduction to Linux

Datathon 2018 Connecting to MicroStrategy on AWS Cloud

CSC116: Introduction to Computing - Java

CS Fundamentals of Programming II Fall Very Basic UNIX

CSC116: Introduction to Computing - Java

P.E.O. STAR Scholarship Online Recommendation Instructions

Lab 2 Building on Linux

#Uncomment the second line to enable any form of FTP write command. #write_enable=yes

Parallel Programming Pre-Assignment. Setting up the Software Environment

How to SSH to nice.fas.harvard.edu from Windows

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

Getting Started with UNIX

Temple University Computer Science Programming Under the Linux Operating System January 2017

EKT332 COMPUTER NETWORK

JEE2600 INTRODUCTION TO DIGITAL LOGIC AND COMPUTER DESIGN. ModelSim Tutorial. Prepared by: Phil Beck 9/8/2008. Voter Function

Barchard Introduction to SPSS Marks

Part I. Introduction to Linux

Compiling C/C++ programs

Carnegie Mellon. Linux Boot Camp. Jack, Matthew, Nishad, Stanley 6 Sep 2016

Lab 1 1 Due Wed., 2 Sept. 2015

mkdir Phys338 s2017 Draw the tree of the directories and files for this step and all the following cd Phys338 s2017

Instructions PLEASE READ (notice bold and underlined phrases)

You should see something like this, called the prompt :

Some Linux (Unix) Commands that might help you in ENSC351

Image Sharpening. Practical Introduction to HPC Exercise. Instructions for Cirrus Tier-2 System

AMS 200: Working on Linux/Unix Machines

Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12)

MySQL for Windows. Tak Auyeung. September 7, 2003

CMSC 201 Spring 2018 Lab 01 Hello World

Introduction to Unix - Lab Exercise 0

/23/2004 TA : Jiyoon Kim. Recitation Note 1

ECE112 - Lab 6. Purpose. Parts/tools needed: Make sure we have a properly working environment

OO Fortran Exercises

HPC Introductory Course - Exercises

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Editing, Compiling, Executing and Submitting Programs

Using WestGrid from the desktop Oct on Access Grid

MAINTENANCE HELPDESK SYSTEM USER MANUAL: CUSTOMER (STAFF) VERSION 2.0

ENCM 339 Fall 2017: Editing and Running Programs in the Lab

Introduction to the Command line. Introduction to the command line. Introduction to the Command line. GNU/Linux at South Wales

CMPSCI 120 Fall 2013 Lab #2 Professor William T. Verts

Linux/Cygwin Practice Computer Architecture

CMSC 201 Spring 2017 Lab 01 Hello World

Semester 2, 2018: Lab 1


Computers and Computation. The Modern Computer. The Operating System. The Operating System

Step-by-step guide for the libradtran virtual machine. A) Installation

LAB #5 Intro to Linux and Python on ENGR

CSC 112 Lab 1: Introduction to Unix and C++ Fall 2009

CMPSCI 120 Fall 2017 Lab #1 Professor William T. Verts

Exercise sheet 1 To be corrected in tutorials in the week from 23/10/2017 to 27/10/2017

CS 300 Data Structures

CS240: Programming in C

Introduction to the Linux Command Line

Lab 3a Using the vi editor

Installation of the DigitalSystemsVM virtual machine

INSTALLING AN SSH / X-WINDOW ENVIRONMENT ON A WINDOWS PC. Nicholas Fitzkee Mississippi State University Updated May 19, 2017

CS 1301 Fall 2008 Lab 2 Introduction to UNIX

Introduction: The Unix shell and C programming

Tutorial 2: Compiling and Running C++ Source Code

Exercise Sheet 2. (Classifications of Operating Systems)

Transcription:

1 / 12 Introduction Overview of 201 Lab and Linux Tutorials Stef Nychka Department of Computing Science University of Alberta September 10, 2007

2 / 12 Can you Log In? Should be same login and password from 115. If you cannot log in, get your ONE Card and go to the Helpdesk. The Helpdesk is in CSC 1-45.

3 / 12 Overview Lab Summary Lab Description Getting Xfce Lab Policies Linux and Emacs Tutorials Linux and Emacs Interactive Examples Learning More Before Next Lab

4 / 12 Lab Description Welcome to the 201 Lab! You will learn the basics of C programming. This will be done in a Linux environment. Like Windows, Linux is an operating system. You will be doing Linux and Linux programming tools tutorials. Lab Exercises 3 Programming Assignments. A Lab Exam. Lots of new stuff. So it will be interesting and challenging!

5 / 12 Getting Xfce Xfce is a desktop environment (basically a GUI interface to Linux). It will be used in 201. Do you have Xfce or FVWM? (Resources Linux Tutorial for screenshots) Follow along with your TA to "get" Xfce: Everyone is to type copyrcfiles at the command prompt. If you already have Xfce: menu (left on button bar, black mouse over a blue X) System Terminal If you have FVWM, skip all files except backup.emacs,.xinitrc,.xresources logout: Alt F1 Exit/Restart FVWM Yes, Really Quit log back in else, if you already have Xfce, just backup.emacs (it s okay if you re not prompted)

6 / 12 A Typical Lab Attendance is recommended, but not required. Interactive presentations for up to about two hours. Then work on Lab Exercise (Schedule Lab Exercises ). Submitted electronically. Due at end of lab period. When no presentation, can get 1-on-1 help from TA. When there are many questions: There will be a Questions list on the board. If you have a question, write your name in the list. 10 minutes per question.

7 / 12 Communication Outside the Lab You need to read, and it is best to use, the newsgroup. TA will briefly demonstrate and describe (using ualberta.test): https://webnews.srv.ualberta.ca. enter CCID (Campus Computing ID... see 201 web site). ualberta.courses.cmput.201 Don t post or attach code. You can get into trouble. Can email TA (email address online, and on whiteboard) Use CCID. Attach all relevant code. Ask specific questions. TA will spend about 15 minutes, and will reply with what they have found. Read about this and more at Schedule Course Policies Questions?

Linux and Emacs Tutorials You will learn not only C basics, but also Linux basics. C and Linux have steep learning curves. Linux has many tools which support programming. One of those tools is an Emacs editor for text files, with support for C source code. There are introductory Linux and Emacs tutorials at Resources Linux (under Tutorials) Resources Emacs (under Tutorials) TA will show you quickly. 8 / 12

9 / 12 Preparing Source Code Note most of the following are in the Linux tutorial. Follow along with your TA: 1. Xfce menu (left on button bar, black mouse over a blue X) System Terminal 2. make a directory with mkdir C201 3. go into that directory with cd, and use tab completion (cd C201, mkdir Lab1, cd Lab1) 4. create a new file and edit it: emacs hello.c & 5. copy hello.c from online, paste into Emacs, save

10 / 12 Compile and Run Compile, run, then fix code: 1. compile with gcc 2. fix the mistake, compile and run, save and exit look mainly at first compilation error 3. ls 4. man ls, search man page for "long listing", and ls -l 5. cd.. After doing the Lab Exercise, do Linux and Emacs tutorials on your own (and feel free to ask questions).

11 / 12 Learning More To learn more about Linux and Emacs: Go to the Learning more sections of the tutorials. Experiment and ask the TA. Get used to using man pages. See the Using man Pages section in the Linux Tutorial.

12 / 12 Before Next Lab Read Schedule Assignments, then Assignment 1, and try starting Bring King text to each lab. Questions?