Overview of Unix System Administration Bambang A.B. Sarif Unix System Administrator CCSE, KFUPM.

Slides:



Advertisements
Similar presentations
Linux Operating System Linux is a free open-source operating system based on Unix. Linux was originally created by Linus Torvalds with the assistance of.
Advertisements

Linux Basics Prepared By: Eng. Amr AbdelFatah Eng. Amr AbdelFatah - Linux Basics.
Chapter One The Essence of UNIX.
Unix Systems Administration 1Y. K. Chang UNIX History : Bell Lab joined with GEC and Project MAC of MIT to develop Multics: multi-user and data-sharing.
CS 497C – Introduction to UNIX Lecture 3: Inside UNIX Chin-Chih Chang
Guide To UNIX Using Linux Third Edition
Xuan Guo Chapter 1 What is UNIX? Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003 Original Notes.
Introduction to Linux Chapter 1. Operating Systems Operating System (OS) - most basic and important software on a computer Performs core tasks Organize.
Introduction to UNIX Acknowledgement:Thanks to Dr Andrew Horner for the original version of this set of slides. All trademarks are the properties of their.
CIS 191AB Textbook UNIX and Linux System Administration Handbook 4th Edition Authors: Evi Nemeth Garth Snyder Trent Hein Ben Whaley Used for CIS191 and.
Linux Introduction. Overview What is Unix/Linux? History of Linux Features Supported Under Linux The future of Linux.
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
Introduction to Computer Administration System Administration
ENGINEERING COMPUTING CENTER LINUX workshop
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
Linux Basics CS 302. Outline  What is Unix?  What is Linux?  Virtual Machine.
Chapter 10 – UNIX. History In late 1960s, two employees of Bell Labs (Ken Thompson & Dennis Ritchie) designed a new operating system to overcome the constraints.
1 RH033 Welcome to RedHat Linux. 2 Hardware Requirements ♦ Pentium Pro or better with 256 MB RAM ♦ Or ♦ 64-bit Intel/AMD with 512 MB RAM ♦ 2-6 GB disk.
1 TAC2000/ IP Telephony Lab Advanced Linux Administration Language: Offered in English Instructor: Dr. Quincy Wu (
POS/420 Introduction to Unix Philip Robbins – March 12, 2013 (Week 1)
LINUX/UNIX WORKSTATIONS Franklin Montenegro Carlos Sierra.
Introduction to Unix Administration Objectives –to identify the basic concepts of Unix administration Contents –history of Unix –unix vendors and standards.
CIS 191 – Lesson 2 System Administration. CIS 191 – Lesson 2 System Architecture Component Architecture –The OS provides the simple components from which.
유닉스, 왜 공부하나 ? 자동화 –GUI vs commands 서버 개발 능력, 관리 능력 – 데스크탑에서의 개발과 관리와의 차이 ?
Potential Unix/Linux Questions March 25, 2014 Dr. Bob Mathis.
Choosing NOS can be a complex and a difficult decision. Every popular NOS has its strengths and weaknesses. NOS may cost thousands of dollars depending.
A Comparison of Linux vs. Windows Bhargav A. Sorathiya B.E. 4 th C.E. Roll no:6456.
Module 1 Introduction to UNIX/Linux
1 University of Palestine Faculty of Business Administration and Finance M.I.S Applications Application of Information Systems (Linux) Prepared By: Muhannad.
Introduction to Unix Part 1 Research Computing Workshops Fall 2008 Office of Information Technology & Mississippi Center for Supercomputing Research Jason.
Linux Admin
Introduction to Linux ( I ) Sidney Fong 4 th Feb 2006.
Linux 简介. Contents Unix GNU/Linux, Distributions Basic usage Applications Compiling, compilers Clustering.
Chapter 1: Welcome to Linux An intro to UNIX-related operating systems.
Unix Background. Introducing Unix Brief Unix History u In 1969, Ken Thompson at AT&T Bell Labs began developing Unix. –First done in assembly language.
Introduction to Unix Part 1 Research Computing Workshops Office of Information Technology & Mississippi Center for Supercomputing Research Jason Hale &
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Linux Introduction What is Linux? How do you use it?
Computers & Operating Systems
IT320 OPERATING SYSTEM CONCEPTS Unit 3: Welcome to Linux June 2011 Kaplan University 1.
Introduction to Unix/Linux ICN Summer Institute Jackson State University June 16, 2009 Mississippi Center for Supercomputing Research Jason Hale & Susan.
IT320 OPERATING SYSTEM CONCEPTS Unit 3: Welcome to Linux September 2012 Kaplan University 1.
CS2204: Introduction to Unix January 19 th, 2004 Class Meeting 1 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty.
1 Lecture 1 Introduction & Getting Started COP 3353 Introduction to UNIX.
CSCI 330 UNIX and Network Programming Unit I Introduction.
Basic UNIX Concepts. Why We Need an Operating System (OS) OS interacts with hardware and manages programs. A safe environment for programs to run is required.
Introduction to UNIX Karl Harrison September 2004.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop I Introduction to Linux Professional Training Academy.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  There are many different.
Gorman, Stubbs, & CEP Inc. 1 Introduction to Operating Systems Lesson 8 Linux.
CEG 2400 FALL 2012 Linux/UNIX Network Operating Systems.
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 01 Introduction.
Linux 101 Mark C. Ballew ACES Program Desert Research Institute.
Introduction to System Administration. System Administration  System Administration  Duties of System Administrator  Types of Administrators/Users.
Intro to GNU/Linux See, Stallman? I said GNU. Are you happy now?
Class Meeting 11 ITI-481 – UNIX ADMIN Chris Uriarte, Instructor ITI-481: Unix Administration Rutgers University Internet Institute Instructor: Chris Uriarte.
Introduction to unix. The UNIX Operating System An operating system "OS” is a set of programs that controls a computer. It controls both the hardware.
CHAP-1 INTRODUCTION TO LINUX 1 Created By: Asst. Prof. Ashish Shah, J.M.Patel College of Commerce.
GNU and Linux.
Karl Harrison September 2004
IT320 Operating System Concepts
Chapter 8 Unix & Linux.
LINUX WINDOWS Vs..
Selected topic in computer science (1)
UNIX & LINUX Operating Systems
The Linux Operating System
LINUX WINDOWS Vs..
Linux Professor Sabol.
Welcome to Linux Chap#1.
Presentation transcript:

Overview of Unix System Administration Bambang A.B. Sarif Unix System Administrator CCSE, KFUPM

Agenda What is Unix/Linux What is system administration Things you must have Rules of thumb Good habits to develop In solving problems Automating unix system administration

What is UNIX UNIX is an operating system that originated at Bell Labs (NJ) in UNIX is actually a trademark, but often used as a generic term to describe “UNIX-like” operating systems. There are numerous different flavors of UNIX – all of which utilize similar UNIX operating system concepts, but may have different features or run on different hardware.

The UNIX Umbrella RedHat, Mandrake †, SuSe, Debian, Caldera, Yellowdog † FreeBSD, BSDI*, NetBSD OpenBSD Sun Solaris, HP HP-UX*, Compaq True 64 UNIX*, IBM AIX*, IRIX*, MAC OSX* SCO UNIX (now Caldera/Tarantula) Hardware Vendors BSD Flavors Linux Distributions Other * = Commercial distribution (i.e you must pay for it) † = Derivative of RedHat

Popularity vs. Maturity Popular Mature Sun Solaris HP-UX Compaq True 64 UNIX RedHat Linux / Linux Mandrake Debian Linux SuSe Caldera Linux FreeBSD / NetBSD / OpenBSD, etc. SCO UNIX RedHat Linux AIX Irix Darwin (Mac OSX) Look for more in

What makes UNIX Unique? UNIX is a multi-user, time-sharing operating system: every user gets a piece of the CPU. UNIX flavors generally adhere to some types of standards (I.e. POSIX) UNIX standards allow for portability of software across multiple UNIX distributions.

What is Linux? A Unix-like operating system initially developed in the early 1990s by Linus Torvald. Initially developed to run on PC hardware but has been ported to other architectures as well. Distributed under a GNU General Public License – “free” software. Kernel is its distinguishing feature. Generally packaged in various distributions.

Linux Distributions Vary according to included software packages, package management systems, installation process, and Window Managers. Distributions  Red Hat Enterprise Linux  Fedora Core  Mandriva  Ubuntu  OpenSuSE  TurboLinux  Debian GNU/Linux  Slackware

Why Linux? Linux has matured greatly over the past 5 years and has positioned itself as the most flexible UNIX distribution today. It can be run on very low-end, generally available hardware. Lots of software available. Flexible – the same Linux distribution used by a hobbyist on low end hardware can be used by an enterprise on high-end hardware. It’s the first UNIX flavor to hit retail store shelves and is easily obtainable across the world. Administration skill sets transfer easily to and from other UNIX flavors. It’s free!

What is system administration To keep, maintain and troubleshoot the system (unix network)  247 job Roles:  Installation and upgrade of system/applications  Installation and upgrade services  Manage users  Restoring and backing up files  Monitoring and performance tuning

User/System Policy Policy has to be created before services are provided  No policy means you kill yourself Some policies:  User account/password  Access  Quotas  Services

Things you must have Independent learning skill Analytical skills  You don’t need to know everything about unix There is manual page, books You can consult your uncle: Google  Ability to analyze the problem and look for solutions is more important Make log files your friend  Many big problems only need a little tweaking or workaround Troubleshooting skills, troubleshooting skills, troubleshooting skills,… Experience  It can be developed  Write it down!!

Things you should have Programming/Scripting skills  Installation new services may require you to compile or even debug the application  You have to master the shell scripting skill Ability to understand man pages, log files Ability to use unix tools  Unix provide many tools to help you in admin job Basic: cd, ls, cat, head, tail Search: which, locate, find Text: cat, head, tail, grep, sed, awk, vi, emacs Process: ps, uptime, top, sar Network: tcpdump, snoop, netstat, ifconfig Disk: du, df, quota, format, fsck

Rules of Thumb Never restart the system unless you really have to.  You can restart some services without restarting the system Don’t use the graphical interface if you are a true admin!!!  Most of configuration files, script, services are in text files  Faster as compared to graphical interface  You will not confused if you are managing systems with different unix/linux distribution

Good habits to develop Write down all your experience, you may need it in the future Backup important files before you do some modifications.  You can do it periodically if you want You can connect with more than 1 root connections to the system you are administering.  In case you messed up with one connection, you can fix it with the other right away.

In solving problems You need all information  Username  Hostname  The way you connect to that hostname  The application you were using  The error messages  The time when you got the error Can you solve the problem if a user come to you and just said “my account is not working”, “Opnet is not working” ?

Log files On linux, you can go to /var/log Depends on the application Information shown in log files depend on the debug level you defined

Check list Before you begin solving a user problem, you have to check few things:  Is it hardware problem  Is it network connection problem  Is it network problem  Is it a specific machine problem  Does it happen only to a specific user  Etc

Common “User” problem Forgot the password Doesn’t have permission Doesn’t have required environment variables such as PATH Mistakenly delete some files/folder Quota exceeded.

Automating Unix Administration You don’t want to spend the whole day making sure that all servers/workstations and its services are fine Use monitoring tools that can alert you for any problem in the network  mon, nagios, cacti, angel Create scripts to check the status of servers/services and use cron to run it periodically  Mail the result to admin

Example script #!/bin/sh machine="sunfire" down= i=0 while [ $i -le 15 ] do sun=$machine"$i" /usr/sbin/ping $sun > /dev/null if [ $? -ne 0 ] then down="$down:$sun" fi i=`echo "$i+1" | bc -l` done if [ -n "$down" ] then echo $down | tr : '\012' | /usr/ucb/mail -s "DOWN machines" fi exit 0

Recommended readings “Unix system administration handbook” by Evi Nemeth, et. all. “Automating Unix and Linux administration” by Bauer, Kirk

Thank You