Top Banner
18

Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Dec 13, 2015

Download

Documents

Nathan McCarthy
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Page 2: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Week One AgendaWeek One Agenda• IntroductionIntroduction• Administrative AnnouncementsAdministrative Announcements• Link of the WeekLink of the Week• Expected OutcomesExpected Outcomes• This week’s topicsThis week’s topics• Break Out ProblemsBreak Out Problems• Next Week’s Lab AssignmentNext Week’s Lab Assignment• Upcoming DeadlinesUpcoming Deadlines• Question and answerQuestion and answer

Page 3: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

IntroductionIntroduction

• Instructor: Instructor: Professor Bob D’AndreaProfessor Bob D’AndreaSoftware engineer Software engineer Phone No. 614.898.0457Phone No. 614.898.0457Cell No. 616.519.5853Cell No. 616.519.5853

• Program Chair of Information and Technology: Program Chair of Information and Technology: Todd WhittakerTodd WhittakerPhone # 614.947.6110Phone # [email protected]

Page 4: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Introduction• Instructor commitment:Instructor commitment:

Respond daily to emailsRespond daily to emailsClass topics covered in 15 weeksClass topics covered in 15 weeksPost lab assignment grades as quickly as possible.Post lab assignment grades as quickly as possible.

Page 5: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Administrative AnnouncementsAdministrative Announcements

• Attendance:Attendance:Checked in classroomChecked in classroom

• Turnitin.com: Turnitin.com: Class ID: 2342138 Class ID: 2342138 Class name: Fall08V1FF Class name: Fall08V1FF Enrollment password: FallV1FFEnrollment password: FallV1FF

Page 6: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Administrative AnnouncementsAdministrative Announcements• Bulletin Board:Bulletin Board:

Mid-Term Exam Outline (not present)Mid-Term Exam Outline (not present)Final Exam Outline (not present)Final Exam Outline (not present)Public Domain Open Source Sign Up folderPublic Domain Open Source Sign Up folder

• Drop Box:Drop Box:Student drop box documentation belowStudent drop box documentation belowhttp://online.franklin.edu/forms/StudentDropBoxManual.doc

• cs.franklin.edu:cs.franklin.edu:This is the official server for lab scripts and text This is the official server for lab scripts and text

filesfiles

Page 7: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Administrative Announcements• APA style format:APA style format:

Main emphasis on citing sources, spelling, Main emphasis on citing sources, spelling, punctuation, and capitalizationpunctuation, and capitalization

• Link of the weekNew links are provided weekly to point to

information that will aid you with class lab assignments

• Tutoring and workshops:Tutoring and workshops:Student Learning CenterStudent Learning CenterWriting appointments via Franklin LiveWriting appointments via Franklin Live

Page 8: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Administrative Announcements • VMware software:

Student CDs

Demonstrate Knoppix icons

ftp from Knoppix to cs.franklin.edu

sftp://[email protected]/export/home/dandrear

• Weekly quiz

Posted on the Bulletin Board (for f2f and online)

Quizes will cover material in the reading links, texts, and classroom lectures

Page 9: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Link of the WeekLink of the WeekOpen Source SoftwareOpen Source Software

• http://en.wikipedia.org/wiki/Open_source

• http://freshmeat.net

• http://sourceforge.net

• Definition of Open Source Software.Definition of Open Source Software.

• List of open source products.List of open source products.

• Who benefits from open source products?Who benefits from open source products?

• What is shared source?What is shared source?

Page 10: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Expected OutcomesExpected Outcomes• Navigate and explore various aspects of the Linux Navigate and explore various aspects of the Linux

operating system and use both GUI and command line operating system and use both GUI and command line toolstools. .

• To better utilize the Franklin Live tool.To better utilize the Franklin Live tool.• Be able to create and execute a script on a virtual machine.Be able to create and execute a script on a virtual machine.• Know the directory path to store your final lab assignment Know the directory path to store your final lab assignment

script.script.• What file permissions to use for the directories and files.What file permissions to use for the directories and files.• How to notify the instructor that your script is ready to be How to notify the instructor that your script is ready to be

graded.graded.

Page 11: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Review shell syntaxReview shell syntax• $# - Number of positional parameters$# - Number of positional parameters• $! - Background PID$! - Background PID• $? - Return value$? - Return value• $$ - Process PID$$ - Process PID• $ - Provides the content of a variable ($NUMBER)$ - Provides the content of a variable ($NUMBER)• $1, $2, $3 … - The syntax represents the positional $1, $2, $3 … - The syntax represents the positional

parameters on the command line.parameters on the command line.• exit 0 – The return values is a number from 0 to exit 0 – The return values is a number from 0 to

255. A value of zero (0) indicates a normal exit.255. A value of zero (0) indicates a normal exit.• exit 1 - Indicates a failure.exit 1 - Indicates a failure.

Page 12: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Review shell syntaxReview shell syntax“ “ “ “ - Double quotes. Removes special meaning of all - Double quotes. Removes special meaning of all

enclosed characters, except $, `, “, and \.enclosed characters, except $, `, “, and \.• Example: print “The price is $Price.\n”; (interpolation)Example: print “The price is $Price.\n”; (interpolation)• ‘ ’ ‘ ’ - Literal quotes. Removes the special meaning of all - Literal quotes. Removes the special meaning of all

enclosed characters. A single quote cannot appear within enclosed characters. A single quote cannot appear within single quotes because a single quote denotes the end single quotes because a single quote denotes the end of the string.of the string.

• ` ` - Single Back Slash quotes. Used for command ` ` - Single Back Slash quotes. Used for command substitution. substitution.

• Example: echo The date is `date` (interpolation)Example: echo The date is `date` (interpolation)• LINES=`wc -l $ENTRY | cut -c 1-7`LINES=`wc -l $ENTRY | cut -c 1-7`• LISTING=`ls -l | cut -f 9` LISTING=`ls -l | cut -f 9`

Page 13: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Review shell syntax• elif [ -d "$1" ]elif [ -d "$1" ]

• thenthen

• fifi

• wc –l - Word count with –l (line option). Print the new line wc –l - Word count with –l (line option). Print the new line countscounts

• ~ - Tilde (~dandrear)~ - Tilde (~dandrear)

Page 14: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Break Out ProblemsBreak Out Problems• ps –e | wc –lps –e | wc –l

• who | awk ‘{print $1}’ | sort –u | wc –lwho | awk ‘{print $1}’ | sort –u | wc –l

• ps –ef | awk ‘{print $1}’ |sort –u | wc –lps –ef | awk ‘{print $1}’ |sort –u | wc –l

• ls –l | grep –v total | cut –c2-4ls –l | grep –v total | cut –c2-4

• ps –ef | awk ‘{print $9, $1}’ps –ef | awk ‘{print $9, $1}’

• Shell language command: $#Shell language command: $#

• Shell language command: for name in *Shell language command: for name in *• Shell language command: Shell language command: NUMBER=$(($NUMBER - 1))NUMBER=$(($NUMBER - 1))

Page 15: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Next Weeks Lab AssignmentNext Weeks Lab Assignment• Review Lab Assignment 2-1 Simple Shell scripting.Review Lab Assignment 2-1 Simple Shell scripting.

• Demonstrate where the lab assignment scripts will be Demonstrate where the lab assignment scripts will be located on Einstein located on Einstein

• Demonstrate the execution of printnum.sh and maxlines.sh Demonstrate the execution of printnum.sh and maxlines.sh scripts on Einsteinscripts on Einstein

Page 16: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Upcoming DeadlinesUpcoming Deadlines

• Lab Assignment 1-2, Introduction to Linux, due Lab Assignment 1-2, Introduction to Linux, due 9/9/08.9/9/08.

• Lab Assignment 1-3, In-Class Quiz, due 9/9/08. Lab Assignment 1-3, In-Class Quiz, due 9/9/08. • Lab Assignment 2-1, Simple Shell Scripting, due Lab Assignment 2-1, Simple Shell Scripting, due

9/23/08.9/23/08.• Lab Assignment 3-1, Advanced Scripting, due Lab Assignment 3-1, Advanced Scripting, due

9/30/08.9/30/08.• Read Chapter 1 and 2 in Essential System Read Chapter 1 and 2 in Essential System

Administration textAdministration text• Read Module One Read Module One

Page 17: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Questions and answersQuestions and answers• Questions?Questions?

• Comments?Comments?

• Concerns?Concerns?

• After class I will help students with their scripts.After class I will help students with their scripts.

Page 18: Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Have a good weekHave a good week