Week Six Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Review midterm exam Break-out.

Slides:



Advertisements
Similar presentations
Configuration management
Advertisements

Configuration management
Week Five Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Break-out problems Read.
Week Four Agenda Announcements Link of the week Review week three lab assignment This week’s expected outcomes Next lab assignment Break-out problems.
Linux+ Guide to Linux Certification, Second Edition
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Introduction to Unix (CA263) Introduction to Shell Script Programming By Tariq Ibn Aziz.
Basic Unix Dr Tim Cutts Team Leader Systems Support Group Infrastructure Management Team.
This chapter is extracted from Sommerville’s slides. Text book chapter
Sydney Opera House. Week Three Agenda Administrative Issues Link of the week Review week two lab assignment This week’s expected outcomes Next lab assignment.
Regular Expression Darby Tien-Hao Chang (a.k.a. dirty) Department of Electrical Engineering, National Cheng Kung University.
Introduction to Shell Script Programming
Week Six Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Review midterm exam Break-out.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Week 7 Working with the BASH Shell. Objectives  Redirect the input and output of a command  Identify and manipulate common shell environment variables.
Week Five Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Break-out problems Read.
Week Three Agenda Administrative Issues Link of the Week Review Week Two Information This Week’s Expected Outcomes Next Lab Assignment Break-Out Problems.
Week Six Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Review midterm exam Break-out.
Introduction Use of makefiles to manage the build process Declarative, imperative and relational rules Environment variables, phony targets, automatic.
Week Seven Agenda Announcements Link of the week Review week six lab assignment This week’s expected outcomes Next lab assignment Break-out problems Upcoming.
Week Seven Agenda Announcements Link of the week Review week six lab assignment This week’s expected outcomes Next lab assignment Break-out problems Upcoming.
Week Six Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Review midterm exam Upcoming.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Week Five Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Break-out problems Read.
Linux+ Guide to Linux Certification, Third Edition
Week Five Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Reading assignments Upcoming.
Week Five Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Break-out problems Read.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
Week Four Agenda Announcements Link of the week Review week three lab assignment This week’s expected outcomes Next lab assignment Break-out problems.
Agenda Getting Started: Using Unix Unix Structure / Features Elements of the Unix Philosophy Unix Command Structure Command Line Editing Online Unix Command.
Week Eight Agenda Announcements Link of the week Review week seven lab assignment This week’s expected outcomes Next lab assignment Break-out problems.
Week Six Agenda Announcements (in-class question) Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Review.
P51UST: Unix and Software Tools Unix and Software Tools (P51UST) Exam Revision Ruibin Bai (Room AB326) Division of Computer Science The University of Nottingham.
Lecture 24CS311 – Operating Systems 1 1 CS311 – Lecture 24 Outline Final Exam Study Guide Note: These lecture notes are not intended replace your notes.
Week Six Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Break-out problems Upcoming.
Guide to Linux Installation and Administration, 2e1 Chapter 11 Using Advanced Administration Techniques.
Week Six Agenda Announcements Link of the week Midterm exam examples Review week four lab assignment This week’s expected outcomes Next lab assignment.
5 1 Data Files CGI/Perl Programming By Diane Zak.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
An Overview of Perl A language for Systems and Network Administration and Management: An overview of the language.
Sydney Opera House. Week Three Agenda Administrative Issues Link of the week Use of the Virtual Machine Review week two lab assignment This week’s expected.
Chapter Six Introduction to Shell Script Programming.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Sydney Opera House. Week Three Agenda Administrative Issues Link of the week Use of the Virtual Machine Review week two lab assignment This week’s expected.
Week Five Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Break-out problems Read.
Agenda Administrative Issues Link of the Week This Week’s Expected Outcomes Review for midterm exam Moving around in UNIX Break-Out Problems Upcoming.
1 Chapter 12 Configuration management This chapter is extracted from Sommerville’s slides. Text book chapter 29 1.
Week Five Agenda Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Break-out problems Upcoming deadlines.
Week Six Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Review midterm exam Break-out.
Week Four Agenda Link of the week Review week three lab assignment This week’s expected outcomes Next lab assignment Break-out problems Upcoming deadlines.
Week Eight Agenda Link of the week Review week seven lab assignment This week’s expected outcomes Next lab assignment Break-out problems Upcoming deadlines.
Linux+ Guide to Linux Certification, Second Edition
BIF713 Introduction to Linux. Agenda Getting Started: Using Linux Unix and Linux - Structure / Features Elements of the Linux Philosophy Linux Command.
Week Seven Agenda Announcements Link of the week Review week six lab assignment This week’s expected outcomes Next lab assignment Break-out problems Upcoming.
Week Seven Agenda Announcements Link of the week Review week six lab assignment This week’s expected outcomes Next lab assignment Upcoming deadlines Lab.
Linux Administration Working with the BASH Shell.
Week Four Agenda Announcements Link of the week Review week three lab assignment This week’s expected outcomes Next lab assignment Break-out problems.
UNIX U.Y: 1435/1436 H Operating System Concept. What is an Operating System?  The operating system (OS) is the program which starts up when you turn.
Week Seven Agenda Link of the week Review week six lab assignment This week’s expected outcomes Next lab assignment Break-out problems Upcoming deadlines.
Week Six Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Review midterm exam Break-out.
Week Three Agenda Link of the Week Review Week Two Information
ITEC400 Week Six Instructor: Professor D’Andrea
Sydney Opera House.
Week Six Agenda Announcements Link of the week
Week Five Agenda Announcements Link of the week
Week Seven Agenda Announcements Link of the week
Presentation transcript:

Week Six Agenda Announcements Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Review midterm exam Break-out problems Upcoming deadlines Lab assistance, questions and answers

Link of the week This Wed site provides useful information how to secure your home computer, things you ought to know, and what should be done to secure a home computer. Science and Technology Resources on the Internet Computer Security This article is written by Jane F. KinKus, who is a Mathematical Sciences Librarian.

Link of the week Why do we love Perl? The Perl Programming Language currently has 21,000 Comprehensive Perl Archive (CPAN) modules. The CPAN has over 18,000 open source modules available for download. Perl is a highly capable, feature-rich programming language with over 23 years of development. Perl is currently being developed. Perl has over 300 local community groups. Perl 6 is a sister language, part of the Perl family.

Link of the week Define: Trusted System is one that is replied upon to a specific extent to enforce a specific security policy. Define: Trusted Computing means that a computer will consistently behave in specific ways, and those behaviors will be enforced by hardware and software. Where are trusted systems utilized? Homeland security, law enforcement, and social control

Review week five lab assignment names Bob D'Andrea /19/1947 male Bo Happy /01/1945 male Jane Smith /23/1978 female Razi Jake /26/2005 male The file named “names” contains the above information. There are tabs in two places in the above data. One tab is after the name and after the birth date.

Review week five lab assignment Without options, print the desired fields in any order. awk ‘{ print $1, $2, $3, $4, $5 }’ names The –F option changes the field separator on the command line. The \t is an Escape Sequence for a horizontal tab. awk –F”\t” ‘{ print $1 }’ names

Review week five lab assignment kill command Used to send a signal to another process. PID An integer used by the UNIX kernel to uniquely identify a process. PIDs are returned by the fork system call and can be passed to wait() or kill() to perform actions on the given process. test_build.sh This script is used to execute the make command which in turn call the makefile. test_build.sh -> make -> makefile

Review week five lab assignment

Define make command: The make utility is a software engineering tool for managing and maintaining computer programs. Make provides most help when the program consists of many component files. As the number of files increase in a project, so to does the compile time, complexity of compilation. The likelihood of an error occurring with human(s) manageability is high.

Review week five lab assignment Define the makefile: Make goes through the makefile (descriptor) file first starting with the target it is going to create. Make looks at each of the target’s dependencies to see if they are listed as targets. It follows the chain of dependencies until it reaches the end of the chain and then begins backing out and executing the commands found in each target's rule. Actually every file in the chain may not need to be compiled. Make looks at the time stamp for each file in the chain and compiles from the point that is required to bring every file in the chain up to date. If any file is missing it is updated if possible.

Review week five lab assignment Makefile Components Comments within a makefile (#) makefile continuation lines (\) Rule tells make both when and how to make a file Dependency Line is a line with a colon (:) test_build.sh contains the make command which calls the makefile. The test_build.sh script is located in the /tmp directory. Demonstrate makefile script under ~dandrear/temp (cs.franklin.edu)

Review week five lab assignment Key Points about the makefile 1.Makefile recompiles all source files for an entire project. 2.Makefile recompiles only those files that have different time stamps. 3.Bottom up control flow. 4.Rules are shell commands.

Review week five lab assignment Other software products that perform similar bundling operations - ANT developed by Apache Jakarta - ANT2 supplied from the Free Software Foundation which is part of Red Hat. What is a dependency between source files? main.cpp  employee.cpp  address.cpp What are the two parts of a dependency rule? 1) What files a file is dependent on 2) Rule that tells how to recompile the file What are the differences between a makefile and a shell script? The rules in a makefile are executed based on dependency, and not sequential order. Scripts execute in sequential order.

Review week five lab assignment Target : Dependencies (prerequisites) Rule prog: a.o b.o c.o g++ -o a.o b.o c.o a.o: prog.h a.c g++ –c prog.h a.c b.o:prog.h b.c g++ –c prog.h b.c c.o:c.c g++ –c c.c c.c:c.y g++ -c c.y mv y_table.c c.y

Review week five lab assignment

Key Points About Perl 1.Dynamic typing 2.Dynamic allocation of memory for arrays and hash tables 3.Both procedural and object oriented programming capabilities 4.Rich third party software and use of modules

Review week five lab assignment Regular expression (a.k.a. regex or regexp) Is a pattern that describes a certain amount of text. A basic regular expression could be the single character, e.g.: a Jane is a women. It will match the first occurrence in the string. If succeeding matches are desired, the regex engine must be instructed to do so.

Review week five lab assignment Regular Expression Special Characters * Open square bracket [ * Backslash\ * Caret^ * Dollar sign$ * Dot. Pipe symbol| Question mark? Asterisk* * Plus sign+ Opening and closing round brackets( )

Review week five lab assignment Awk Script # Author: Bob D'Andrea # Script name: awksrc # Command line awk -f awksrc test.txt # Command line: awk -f awksrc /^$/ { print "This is a blank line." } /[0-9]+/ { print "That is an integer." } /[A-Za-z]+/ { print "This is a string." }

Review week five lab assignment Perl Hash table is an unordered set of scalars, accessed by some string value that is associated with each scalar. Keys are 12, 19, and 30. Values are gray, black, and red. %colormap=( “12” => “gray”, “19” => “black”, “30” => “red”,); %colormap = (“12”, “gray”, “19”, “black”, “30”, “red”); %members = (John => "father", Paul => "son", Marie => "daughter");

Review week five lab assignment Define Comma – arrow: The comma-arrow (=>) operator is used to initialize the %members hash variable in the previous slide lines of code. The left side of the comma-arrow operator is expected to be a simple string and therefore it is not necessary to be quoted.

Review week five lab assignment

Week six expected outcomes Upon successful completion of this module, the student will be able to: Create makefile scripts for software programs. Use pattern rules in make files. Create an effective PowerPoint presentation. Create make files with multiple targets. Install software packages on a server.

Next lab assignment Installing software under UNIX is not always straightforward and easy. System administrators must be familiar with the layout of the file system. During a software installation, the possibility exists that the system could panic and/or have a hard disk failure.

Next lab assignment Installation Software Package Methods Package manager - What are the tasks of a package manager? - The version of UNIX dictates which package manager will be used. - Many Linux versions utilize the Debian Package Manager. Manual - The utilization of makefiles or shell scripts to automate the install as much as possible. - On occasion, the installation of software is done by sending the source code to the site. - What steps are required to install a new software version? - How is a “configure” script utilized?

Next Lab Assignment shell Kernel Hardware Assembler Firmware

Next Lab Assignment Midterm Exam Review

Break-out problems touch command dot command dot dot command What function does the makefile provide a project? What are the two parts of a dependency rule? What language is used for writing makefile rules? What two methods are used for installing software packages? What is a regular expression American National Standard Institute (ANSI)

Upcoming deadlines Lab Assignment 6-1 is due June 19, 2011 Lab Assignment 6-2 is due June 12, 2011 Lab Assignment 7-1 (midterm) has to be completed by June 12, Midterm exam will be administered from June 6 through 11, Midterm outline is posted on the Bulletin Board

Questions and answers Questions Comments Concerns Are there questions regarding the mid- term outline? After class I will help students with their scripts.