Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
1/55System Administration. 2012. [email protected]
System Administration
MTAT.08.021
6 ECTS
Markko Merzin
http://courses.cs.ut.ee/2012/syshald/
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)
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
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
5/55System Administration. 2012. [email protected]
Course schedule
● 6 ECTS = 156 hours– Lectures: 32 hours
– Lab sessions: 32 hours
– Independent work: 92 hours
6/55System Administration. 2012. [email protected]
Course homepage
http://courses.cs.ut.ee/2012/syshald
Contains:– Lecture recordings
– Lecture slides
– Additional reading
– Lab materials
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
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
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))
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
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
12/55System Administration. 2012. [email protected]
Acknowledgment
● This lecture is based on templates and material from Marti Taremaa and Ulrich Norbisrath!
● Thanks!
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
14/55System Administration. 2012. [email protected]
Lecture topics: resources
● Storage and Backup● Processing Power and Bandwidth● Software● Resource Virtualization
15/55System Administration. 2012. [email protected]
Lecture topics: processes
● Incident and Problem Management● Service Desk● System Administration Standards and Best
Practices
16/55System Administration. 2012. [email protected]
Style of the lecture?
● Talking head (only lecturer talks)?● Seminary form (everybody discusses)?● Something in between?
17/55System Administration. 2012. [email protected]
Reading Materials
The Practice of System and Network Administration
Thomas A. Limoncelli
Christina J. Hogan
Strata R. Chalup
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
19/55System Administration. 2012. [email protected]
Lab topics
● Web Server● Remote File Access● Monitoring● Incident Management
20/55System Administration. 2012. [email protected]
Hidden motives
What we actually want to happen:
Coherent “building” process
Systematic monitoring
Troubleshooting
21/55System Administration. 2012. [email protected]
Terminology
Administration vs. Management● administration ~ technical level● management ~ organizational level
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
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.
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
25/55System Administration. 2012. [email protected]
Computer system
26/55System Administration. 2012. [email protected]
Subsystem 1
27/55System Administration. 2012. [email protected]
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?
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
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
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
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
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
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
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
36/55System Administration. 2012. [email protected]
What of those duties have You performed before? Activity 2
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
38/55System Administration. 2012. [email protected]
Basic Principles in System Administration (2)
● Know your systems and tools● Know your users and enterprise -
communicate● Document
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
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
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
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
44/55System Administration. 2012. [email protected]
Basic networking (4)
● Router, gateway– Specialized computer which is responsible for
packet delivery between networks
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
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
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
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
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.
50/55System Administration. 2012. [email protected]
File tree (3)
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”
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
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
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
55/55System Administration. 2012. [email protected]
Questions?