55
1/55 System Administration. 2012. [email protected] System Administration MTAT.08.021 6 ECTS Markko Merzin [email protected] http://courses.cs.ut.ee/2012/syshald/

Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. [email protected] Outline Administrative topics Introduction to course Terminology Description of systems

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

1/55System Administration. 2012. [email protected]

System Administration

MTAT.08.021

6 ECTS

Markko Merzin

[email protected]

http://courses.cs.ut.ee/2012/syshald/

Page 2: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

2/55System Administration. 2012. [email protected]

Lecturer

Markko Merzin

worked as a

– System administrator: 15 years (and counting)

– Researcher: 2 years (and counting)

– Lab instructor: 3 years

– Lecturer: 2 minutes (and counting)

Page 3: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

3/55System Administration. 2012. [email protected]

Outline

● Administrative topics● Introduction to course● Terminology● Description of systems administrator's duties● Basic concepts of IP networking and file tree

Page 4: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

4/55System Administration. 2012. [email protected]

Course schedule● Lectures

Thursdays 12-14

Liivi 2 – 111

● LabsGroup 5: Tuesdays 10-12 Group 2: Tuesdays 16-18Group 4: Wednesdays 08-10 Group 7: Wednesdays 18-20 Group 3: Thursdays 08-10Group 1: Thursdays 16-18Group 6: Thursdays 18-20

Liivi 2 - 123

Page 5: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

5/55System Administration. 2012. [email protected]

Course schedule

● 6 ECTS = 156 hours– Lectures: 32 hours

– Lab sessions: 32 hours

– Independent work: 92 hours

Page 6: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

6/55System Administration. 2012. [email protected]

Course homepage

http://courses.cs.ut.ee/2012/syshald

Contains:– Lecture recordings

– Lecture slides

– Additional reading

– Lab materials

Page 7: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

7/55System Administration. 2012. [email protected]

Composition of the final grade

Final grade:– 50% from labs

– 30% from tests during the semester (3 tests)

– 20% from course project or exam

Tests:– every 3-4 weeks

– take place during lectures (15-20 minutes)

– 3-4 questions

– 1-4 sentences per answer or multiple choice

Page 8: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

8/55System Administration. 2012. [email protected]

Composition of the final grade (2)

● Grade from labs will be recorded by the end of 11. lab

● Student still has to complete 100% of the lab tasks before project presentation or exam

Page 9: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

9/55System Administration. 2012. [email protected]

Composition of the final grade (3)

Project or exam?– Most students will do course project and

present it in last two or three lectures (about 5 min. each)

– 15% of top scoring and 15% low scoring students can take an exam instead

● (conditions apply (formalized later))

Page 10: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

10/55System Administration. 2012. [email protected]

Composition of the final grade (4)

Course project– Setup you own virtual system/environment

– At least on server and one client image

– Use some other operating system (FreeBSD, Solaris, Windows etc.) or Linux distribution then the one used in labs

– Individual work or small groups

– Possible topics and other details will be on course page

Page 11: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

11/55System Administration. 2012. [email protected]

Prerequisites

Basic knowledge of:– Administering a single desktop system

– Networking (TCP/IP)

– UNIX command line

Personal qualities:– persistence

– stress tolerance

Page 12: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

12/55System Administration. 2012. [email protected]

Acknowledgment

● This lecture is based on templates and material from Marti Taremaa and Ulrich Norbisrath!

● Thanks!

Page 13: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

13/55System Administration. 2012. [email protected]

Relation to other courses

Before:– Network Technology I – Operating Systems

Same skill level:– Computer Security

After:– Network Technology II – Operating Systems Structures

Page 14: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

14/55System Administration. 2012. [email protected]

Lecture topics: resources

● Storage and Backup● Processing Power and Bandwidth● Software● Resource Virtualization

Page 15: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

15/55System Administration. 2012. [email protected]

Lecture topics: processes

● Incident and Problem Management● Service Desk● System Administration Standards and Best

Practices

Page 16: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

16/55System Administration. 2012. [email protected]

Style of the lecture?

● Talking head (only lecturer talks)?● Seminary form (everybody discusses)?● Something in between?

Page 17: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

17/55System Administration. 2012. [email protected]

Reading Materials

The Practice of System and Network Administration

Thomas A. Limoncelli

Christina J. Hogan

Strata R. Chalup

Page 18: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

18/55System Administration. 2012. [email protected]

Labs

● there is one system per student● you have to build a simple system offering

some typical services● the platform is Debian Linux● every lab builds upon the previous labs● the result will be graded

Page 19: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

19/55System Administration. 2012. [email protected]

Lab topics

● Web Server● Remote File Access● Monitoring● Incident Management

Page 20: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

20/55System Administration. 2012. [email protected]

Hidden motives

What we actually want to happen:

Coherent “building” process

Systematic monitoring

Troubleshooting

Page 21: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

21/55System Administration. 2012. [email protected]

Terminology

Administration vs. Management● administration ~ technical level● management ~ organizational level

Page 22: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

22/55System Administration. 2012. [email protected]

Terminology (2)

system – organized, purposeful set of objects, regarded as whole; the structure of the system does not allow the components to be randomly rearranged; system as a whole can have properties/capabilities which the individual components do not have

Page 23: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

23/55System Administration. 2012. [email protected]

Terminology (3)

any element which has no relationship with any other element of a system,

cannot be a part of that system.

Page 24: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

24/55System Administration. 2012. [email protected]

Terminology (4)

● Computer system– a set of hardware and software which

processes data in a meaningful way– has interconnected components– is organized, has structure– is purposeful– can consist of (semi-independent) sub-

systems– the goals of the system are determined by its

owner

Page 25: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

25/55System Administration. 2012. [email protected]

Computer system

Page 26: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

26/55System Administration. 2012. [email protected]

Subsystem 1

Page 27: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

27/55System Administration. 2012. [email protected]

Page 28: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

28/55System Administration. 2012. [email protected]

The BIG Why? Activity 1

● Why computer systems need to be administered?

– Hints: ● why refrigerators need no administrating?● why modern computers have two types of data

storage devices, memory and hard disk?

Page 29: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

29/55System Administration. 2012. [email protected]

The BIG Why? Activity 1

● Why computer systems need to be administered?

– Possible answers● Computer systems are universal tools and need

to be adjusted and fine tuned to specific task● Computer systems have lot of technical

shortcomings that need working around

Page 30: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

30/55System Administration. 2012. [email protected]

Terminology (5)

● user– interacts with the system– makes some use of this interaction– can change some internal state of the system– usually cannot change the structure of the

system

Page 31: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

31/55System Administration. 2012. [email protected]

Terminology (6)

● System administration– periodical activities– restructuring– aims to keep the system aligned with the

goals – performed by the system administrator

Page 32: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

32/55System Administration. 2012. [email protected]

Terminology (7)

● service, customer– from the business point of view we provide a

service– regulated with contracts– internal and external services– customer is the receiving side of the service– user and customer may be the same person,

but not necessarily

Page 33: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

33/55System Administration. 2012. [email protected]

System administrator's duties (1)

● planning, implementing new technologies● hardware installation, configuration,

maintenance● software installation, configuration,

maintenance● auditing the systems

Page 34: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

34/55System Administration. 2012. [email protected]

System administrator's duties (2)

● monitoring the system ● responding to incidents, providing

workarounds● identifying problems, providing long-term

solutions● preventing the problems

Page 35: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

35/55System Administration. 2012. [email protected]

System administrator's duties (3)

● consulting the users● performing user account maintenance● documenting● light programming● security administration● data protection

Page 36: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

36/55System Administration. 2012. [email protected]

What of those duties have You performed before? Activity 2

Page 37: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

37/55System Administration. 2012. [email protected]

Basic Principles in System Administration (1)

● Take care of the basics first● Plan ahead● Keep solutions clear and simple● Automate

Page 38: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

38/55System Administration. 2012. [email protected]

Basic Principles in System Administration (2)

● Know your systems and tools● Know your users and enterprise -

communicate● Document

Page 39: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

39/55System Administration. 2012. [email protected]

Drop two of those principles Activity 3

● Take care of the basics first● Plan ahead● Keep solutions clear and simple● Automate● Know your systems and tools● Know your users and enterprise -

communicate● Document

Page 40: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

40/55System Administration. 2012. [email protected]

Bad Choice

Bad Choice

Page 41: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

41/55System Administration. 2012. [email protected]

Basic networking (1)

● Packet– Portion of data which is transmitted as whole

– Consists header and payload

– Header consists source and destination ip-addresses, destination port and some other technical information

– Payload consists user and/or protocol data

Page 42: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

42/55System Administration. 2012. [email protected]

Basic networking (2)

● IP-address– numerical label assigned to each device

participating in a computer network that uses the Internet Protocol for communication.

– Identifies networked computer globally or locally (private address)

– 4 numbers separated by dots. 193.40.5.73

– Numbers are between 0 and 255

Page 43: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

43/55System Administration. 2012. [email protected]

Basic networking (3)

● Port– Numeric value that identifies different services

in networked computer

– Port 80 – http

– Port 22 – ssh

– Port 443 - https

Page 44: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

44/55System Administration. 2012. [email protected]

Basic networking (4)

● Router, gateway– Specialized computer which is responsible for

packet delivery between networks

Page 45: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

45/55System Administration. 2012. [email protected]

Basic networking (5)

● Network mask, netmask– Describes surroundings of the networked

computer

– If destination ip-address is “under” the mask then packet is sent to that computer directly

– If destination is outside of the mask then packet is delivered through router

– 4 numbers separated by dots 255.255.255.0

Page 46: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

46/55System Administration. 2012. [email protected]

Basic networking (6)

● Network mask, netmask– Actually a bitmask over ip-address

– For a start is sufficient to know that ip 10.10.10.8 with netmask 255.255.255.0 means that computers with ip-address 10.10.10.ANY are reachable directly and all other are possibly reachable trough router

– Notation 10.10.10.8/255.255.255.0 means ip-address with netmask

– 10.10.10.8/24 is the same in different notation

Page 47: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

47/55System Administration. 2012. [email protected]

Basic networking (7)

● Default router, default gateway– Router that is used when there are no specific

routes

– Typical network has only one router

Page 48: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

48/55System Administration. 2012. [email protected]

File tree (1)

● File– A computer file is a block of arbitrary

information which is available to a computer program

Page 49: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

49/55System Administration. 2012. [email protected]

File tree (2)

● Folder, directory, catalog– Each folder can contain an arbitrary number of

files, and it can also contain other folders. These other folders are referred to as subfolders. Subfolders can contain still more files and folders and so on, thus building a tree-like structure in which one "root folder" can contain any number of levels of other folders and files.

Page 50: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

50/55System Administration. 2012. [email protected]

File tree (3)

Page 51: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

51/55System Administration. 2012. [email protected]

File tree (4)

● Working directory, current directory– Every program considers one folder as its

working directory

– Some programs allow user to change working directory, for example bash, common command interpretator or “shell”

Page 52: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

52/55System Administration. 2012. [email protected]

File tree (5)

● Every file in system can addressed by absolute path or by relative path

● Path consists of: folder name(s), file name, path separator(s) (“/” in linux systems)

● Absolute path always starts with /– /etc/debian_version

– /etc/network/interfaces

Page 53: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

53/55System Administration. 2012. [email protected]

File tree (6)

● Relative path can start directly with folder or file name

– etc/debian_version

● Or with single dot, which means current working directory

– ./etc/debian_version

● Or with double dots, which means one folder up from current working directory

– ../etc/debian_version

Page 54: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

54/55System Administration. 2012. [email protected]

File tree (7)

● Example: command “ls” displays folder contents

– ls .● Displays content of the current directory

– ls /etc● Displays content of the etc folder in root folder

– ls ..● Displays content of the folder upwards from

current folder

Page 55: Black and White - courses.cs.ut.ee€¦ · 3/55 System Administration. 2012. markko.merzin@ut.ee Outline Administrative topics Introduction to course Terminology Description of systems

55/55System Administration. 2012. [email protected]

Questions?