Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. Linux Basics



Similar documents
LSN 10 Linux Overview

CSE 120 Principles of Operating Systems. Modules, Interfaces, Structure

Fall Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu.

Example of Standard API

Programming for GCSE Topic H: Operating Systems

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 2 Introducing Operating Systems

The BackTrack Successor

OPERATING SYSTEMS STRUCTURES

Building a Penetration Testing Virtual Computer Laboratory

Operating System Components and Services

PowerPanel Business Edition Installation Guide

Operating Systems 4 th Class

Getting Started with Mplus Version 7.31 Demo for Mac OS X and Linux

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.

CS 377: Operating Systems. Outline. A review of what you ve learned, and how it applies to a real operating system. Lecture 25 - Linux Case Study

VMware Server 2.0 Essentials. Virtualization Deployment and Management

A single user ran a single program ran on a single computer there was no need for Page 1 of 6 Copyright Virtual University of Pakistan

Operating System Structure

VMware Horizon FLEX User Guide

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

Intro to Virtualization

Objectives. Chapter 2: Operating-System Structures. Operating System Services (Cont.) Operating System Services. Operating System Services (Cont.

Command-Line Operations : The Shell. Don't fear the command line...

VMware Horizon FLEX User Guide

Operating System Components

NETWORK EMULATION AND NETKIT

Chapter 7A. Functions of Operating Systems. Types of Operating Systems. Operating System Basics

Using Red Hat Network Satellite Server to Manage Dell PowerEdge Servers

Review from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture

CPS221 Lecture: Operating System Structure; Virtual Machines

Testing New Applications In The DMZ Using VMware ESX. Ivan Dell Era Software Engineer IBM

OPERATING SYSTEM SERVICES

1 Download & Installation Usernames and... Passwords

IOS110. Virtualization 5/27/2014 1

Red Hat enterprise virtualization 3.0 feature comparison

4.1 Introduction 4.2 Explain the purpose of an operating system Describe characteristics of modern operating systems Control Hardware Access

Chapter 2 System Structures

Introduction to Mirametrix EyeTracker

Hypervisor Software and Virtual Machines. Professor Howard Burpee SMCC Computer Technology Dept.

Using VMware Workstation

ELEC 377. Operating Systems. Week 1 Class 3

Lesson 06: Basics of Software Development (W02D2

VMware Horizon FLEX User Guide

CS197U: A Hands on Introduction to Unix

Operating System Structures

Red Hat Enterprise linux 5 Continuous Availability

Understand and Build Android Programming Environment. Presented by: Che-Wei Chang

Kaltura On-Prem Evaluation Package - Getting Started

PARALLELS SERVER BARE METAL 5.0 README

Unit 10 : An Introduction to Linux OS

Introduction to Operating Systems

Tablets in Data Acquisition

Operating System Today s Operating Systems File Basics File Management Application Software

vtcommander Installing and Starting vtcommander

windows maurizio pizzonia roma tre university

COS 318: Operating Systems. Virtual Machine Monitors

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

CSE 265: System and Network Administration. CSE 265: System and Network Administration

13.1 Backup virtual machines running on VMware ESXi / ESX Server

Operating Systems. Design and Implementation. Andrew S. Tanenbaum Melanie Rieback Arno Bakker. Vrije Universiteit Amsterdam

Outline. Operating Systems Design and Implementation. Chap 1 - Overview. What is an OS? 28/10/2014. Introduction

HIG s Remote Desktop Services (RDS) on Linux

Week Overview. Installing Linux Linux on your Desktop Virtualization Basic Linux system administration

PARALLELS SERVER 4 BARE METAL README

Freshservice Discovery Probe User Guide

This guide specifies the required and supported system elements for the application.

1. Install a Virtual Machine Download Ubuntu Ubuntu LTS Create a New Virtual Machine... 2

OS Concepts and structure

Outline: Operating Systems

RED HAT ENTERPRISE VIRTUALIZATION 3.0

Install Guide for JunosV Wireless LAN Controller

5nine Hyper-V Commander

Module I-7410 Advanced Linux FS-11 Part1: Virtualization with KVM

Operating Systems. and Windows

How To Understand The History Of An Operating System

FOG Guide. IPBRICK International. July 17, 2013

MarkLogic Server. Installation Guide for All Platforms. MarkLogic 8 February, Copyright 2015 MarkLogic Corporation. All rights reserved.

SAS University Edition: Installation Guide for Linux

USB 2.0 Flash Drive User Manual

System Structures. Services Interface Structure

Virtualization and the U2 Databases

October Gluster Virtual Storage Appliance User Guide

1/5/2013. Technology in Action

Table of Contents. Online backup Manager User s Guide

CS 103 Lab Linux and Virtual Machines

Embedded Linux development training 4 days session

Basic Computer Skills Module 2. Software Concepts

How to Backup XenServer VM with VirtualIQ

Restoring a Suse Linux Enterprise Server 9 64 Bit on Dissimilar Hardware with CBMR for Linux 1.02

Unit 4 Objectives. System Software. Component 4: Introduction to Information and Computer Science. Unit 4: Application and System Software Lecture 2

Enterprise-Class Virtualization with Open Source Technologies

Try Linux: Brief Guide for Rookies

JAMF Software Server Installation Guide for Linux. Version 8.6

Student installation of TinyOS

Yocto Project Eclipse plug-in and Developer Tools Hands-on Lab

Chapter Contents. Operating System Activities. Operating System Basics. Operating System Activities. Operating System Activities 25/03/2014

Linux Driver Devices. Why, When, Which, How?

Parallels Desktop 4 for Windows and Linux Read Me

PCI Express SATA / esata 6Gb/s RAID Card User Manual

HP Operations Orchestration Software

Transcription:

ECPE 170 Jeff Shafer University of the Pacific Linux Basics

2 Pre- Lab Everyone installed Linux on their computer Everyone launched the command line ( terminal ) and ran a few commands What problems were encountered? Virtualiza7on support in processor not enabled (BIOS) VMWare Player (current version) only runs on Windows 64 3D graphics virtualizaqon incompaqble with specific hardware Old virtual machine sotware Others? Tip: If you have problems maximizing your VM to full screen, or doing copy- and- paste between Linux and Windows, make sure you installed the VM tools

3 Person of the Day: Linus Torvalds ì Creator of Linux Kernel Started in 1991 First developer hobby project (for fun!) ì Modern kernel is product of work by thousands of programmers ì Currently final authority on what is included in the kernel ì ì ì Creator of Git version control system ì Computer Systems and Networks IniQally for Linux kernel dev Fall 2015

4 Operating System Tasks What does the OS need to do? Schedule processes to run Memory management Interrupt handling (manage hardware in general) Security (between processes) Network access Storage management (filesystem) Graphical user interface May be a middleware layer on top of the OS

5 Operating Systems Processes Process management is a key operaqng system task OS must iniqally create processes when you run your program OS can allow processes to access resources Must schedule access to shared resources (e.g., CPU) OS can allow processes to communicate with each other OS must clean up ater process finishes Deallocate resources (e.g. memory, network sockets, file descriptors, etc ) that were created during process execuqon

6 Operating Systems Scheduling The operaqng system schedules process execuqon What processes are allowed to run at all? What processes are allowed to run right now? Context switches occur when the CPU is taken from one process and given to another process CPU state (registers, current PC, etc ) is preserved during a context switch

7 Operating Systems Scheduling Preemp7ve Scheduling Each process is allocated a Qmeslice. When the Qmeslice expires, a context switch occurs A context switch can also occur when a higher- priority process needs the CPU

8 Operating Systems Security Process A is forbidden from reading/modifying/wriqng the memory of Process B Virtual memory is a huge help here! Each process has a separate virtual address space that maps to different regions of physical memory Process A has other limits besides which memory pages it can access What are some other limits? Amount of memory consumed Number of open files on disk Which files on disk can be read/wrifen

9 Operating Systems Filesystem OS is responsible for managing data on persistent storage Job of the filesystem! What files exist? (i.e. names) How are they organized? (i.e. paths/folders) Who owns and can access them? (i.e. usernames, permissions) Where are individual file blocks stored on the disk? i.e. filename database.dat is really composed of 15823 blocks, of which block 1 is located at logical block address #... on the hard drive.

10 Operating Systems Device Management Manage devices How do we send data to the NIC for transmission? How do we render an image for display on screen? How do we read a block of data from our RAID disk controller? OperaQng systems can be extended through device drivers to manage new hardware Hardware vendors write sotware to manage their devices OS provides a fixed interface (API) that driver must follow Common task for a device driver is responding to interrupts (from that device)

11 Operating Systems The Kernel Who does all this essenqal work in the operaqng system? (besides the GUI) The kernel (i.e. the heart or core of the OS) Kernel performs: Scheduling SynchronizaQon Memory management Interrupt handling Security and protecqon

12 Operating Systems GUI OperaQng systems with graphical user interfaces (GUI) were first brought to market in the 1980s MicrosoT Windows 1.0 (released 1986) Apple Mac OS 1.0 (released 1984) Captures from hdp://www.guidebookgallery.org/screenshots

13 ì Significant evoluqon in GUI design in subsequent decades Computer Systems and Networks Fall 2015

14 Operating Systems GUI Technical perspecqve: The GUI is one of the least important parts of the operaqng system A GUI does not even have to be part of the true OS at all Windows 1.0 was just a program that ran on top of MS- DOS, the true operaqng system (of that era) But to a user, the GUI is one of the most important parts of the OS!

15 Command- Line Advantages of Command Line Advantages of Windows / GUI

16 Linux Command Line

17 Shell What is the shell? (e.g. BASH, CSH, SH) Program between user and the kernel Command- line interpreter Parses user input and carries out commands

18 Shell Shortcuts <TAB> key to auto- complete commands <UP ARROW> key to cycle through previous commands These two Qps make your life so much easier!

19 Linux: Sudo Command sudo <<command>> Command is run as root user root = Administrator hfp://xkcd.com/149/

20 Linux: Apt- Get Command What is a package manager? Where did these apps come from? apt-get <<mode>> <<options>> apt-get install gedit Mode = install a package OpQon = Gedit (name of package) Must run as ROOT to use! sudo apt-get

21 Linux: Directory Tree Absolute path: /home/hpotter/thesis/intro.txt Rela7ve path: If I am already in /home/potter/ addresses.html hfp://osl.iu.edu/~pgofsch/swc2/lec/shell01.html

22 Labs

23 Labs Labs have (at most) two graded elements: 1. Pre- Lab checkpoint quick verificaqon that pre- lab appears to be done 1. Due at start of first day of lab 2. Lab Report 1. Submit all source code used with lab report 2. Due by posted date ater lab

24 Lab Reports Not really reports, more like worksheets Create in LibreOffice (aka OpenOffice) using example template on website Export in PDF format Submit Via Canvas Assignments secqon for Lab 1 only! Via Version control for Lab 2 and beyond

25 Upcoming Schedule Today Lab 1 Linux Basics Thursday Lab 2 Version Control Deadlines Lab 2 pre- lab checkpoint Start of class Thursday Lab 1 Report Sept 5 th, 2015 by 5am Submit via Canvas Lab 2 Report Sept 7 th, 2015 by 5am