1 2INC0 Operating Systems practical (part 1) Joris Geurts.

Slides:



Advertisements
Similar presentations
1 Introduction to UNIX Ke Liu
Advertisements

Linux+ Guide to Linux Certification, Second Edition
Guide To UNIX Using Linux Third Edition
1 Basics of Linux On linux machine: Login at your home directory Open a “shell” or “terminal” or “xterm” workspace (4) On windows machine Intall 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.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Introduction to Linux Operating System Tutorial 1
POS/420 Introduction to Unix Philip Robbins – March 12, 2013 (Week 1)
Lesson 1. PC vs. Multi-user System  Personal Computer – each user gets his/her own processor (or multicore processor).  Multi-user system – The processor,
COSC513 Project Linux Features Instructor: Prof. Mort Anvari Student: Yingfeng Luo ID: #
Guide To UNIX Using Linux Fourth Edition
Unix Basics Chapter 4.
CENT 305 Information Systems Security Linux Introduction.
Introduction to Computer Organization & Systems Topics: Intro to UNIX COMP John Barr.
2INC0 Operating Systems Introduction to Linux
Introduction to Interactive Media Interactive Media Tools: Software.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Linux+ Guide to Linux Certification, Second Edition
Linux overview. Architecture Kernel File system Shell: Korn, Bourne, C, Bash X Windows: Motif, Open Look, X.OrgX.Org Desktop: Gnome, KDE,etc.
LINUX Tuesday, 5 July :00 pm. Remote Login l Use Secure Shell (ssh) l Machine name/IP address E.g. ssh hydra.sma.nus.edu.sg Or ssh
2INC0 Operating Systems - practical Joris Geurts Tijmen van Dien Serdar Guclu.
Chapter Two Exploring the UNIX File System and File Security.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
Guide to Linux Installation and Administration, 2e1 Chapter 7 The Role of the System Administrator.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
1 Operating Systems Lecture 2 UNIX and Shell Scripts.
INCS Virtual Data Center Security using Linux.
UNIX File System by Tero Toikkanen, CAP02S. UNIX Multi-user system Multi-user system Multi-tasking system Multi-tasking system Wide selection of tools.
Linux file system "On a UNIX system, everything is a file; if something is not a file, it is a process." Sorts of files (on a Linux system) Directories:
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Introduction to Programming Using C An Introduction to Operating Systems.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
 Prepared by: Eng. Maryam Adel Abdel-Hady
Embedded Software Design Week II Linux Intro Linux Kernel.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
August 31, 2010Joris Geurts1 2IN05 Operating Systems Introduction to Linux More information for this course:
UNIX  Portable (common to many computer architectures), multitasking, multi-user operating system  Introduced by Bell labs in mid-1960’s  Thus, much.
Course : PGClass : MCA Subject: Operating SystemSub.Code : 3CT11 Staff Name : S.SomasundaramYear & Sem : II nd & III rd.
Using Linux Kaya Oğuz Room: 310.
Bash Scripting CIRC Summer School 2016 Baowei Liu CIRC Summer School 2016 Baowei Liu.
Linux Filesystem Management
Linux 101: Introduction To Linux Purdue Linux Users Group Speaker: Thor Smith.
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
EE516: Embedded Software Project 1
CSC227: Operating Systems
CIRC Winter Boot Camp 2017 Baowei Liu
Linux 101 Training Module Linux Basics.
UBUNTU INSTALLATION
Linux file system "On a UNIX system, everything is a file;
Some Linux Commands.
The Linux Operating System
Introduction to UNIX.
LING 408/508: Computational Techniques for Linguists
C Programming Lecture Series
Exploring the UNIX File System and File Security
Unix : Introduction and Commands
Introduction Paul Flynn
Introduction to Linux Prof. Ikjun Yeom
CSE 303 Concepts and Tools for Software Development
Presentation transcript:

1 2INC0 Operating Systems practical (part 1) Joris Geurts

2

staff Tanir Ozcelebi (lectures) Joris Geurts (instruction,practical) Serdar Guclu (instruction,practical) Mike Holenderski (instruction,practical) Theo Huberts (instruction,practical) Mitchel Brunings (student assistant) Swati Kumar (student assistant) 3

practical 3 graded practical assignments (C programming in Linux) OS theory exercises with graded homework Linux introduction C workshop exercises 4

grading of 3 Linux-C assignments 8 = fully satisfies requirements o clean code o no deadlock/busy waiting/race conditions o tests OK o documentation o … higher mark: with your investigations strict deadlines (see Peach)

way of working Linux-C assignments practical = saves time prepare your questions use XXX_basics.c make small steps

schedule practical* weekTue afternoon (5+6)Thu morning (1+2) 1Linux, C helloworldC pointers 2explain assignment 1C structs + memory alloc 3C arraysC strings 4explain assignment 2C bit operations 5 6explain assignment 3 7 * schedule of lectures: will be explained Tue 7+8

8 What is Linux?

9 characteristics developed in 1970's by Ritchie and Thomson multi user multi tasking

10 advantages different hardware: IBM, Mips, Intel, ARM simple structure elaborate software tooling command interpreter: the SHELL principles applied in a consequent way

11 disadvantages cryptic names, e.g.: cat filename cryptic syntax: \ / * $ " ' ` ~ e.g.: grep "*.$1" `pick *.c` | lpr many members of the family, and they differ (Debian, Red Hat, Ubuntu, OpenSuse, Fedora, etc.)

12 Unix family tree

13 Some Unix characteristics ‘Everything is a file’ –including screen, mouse, hard disk etc. All (system) commands are just applications –including login procedure, file and directory management, –large and powerful set of commands The central role of the shell (command interpreter) –typing rather than clicking Built-in management of different users –multi-tasking and multi-user

14 Linux take-off

Linux family tree 15

16 Linux distributions (600+) kernel + libraries + software applications

Linux desktop environments 17 GNOME KDE Unity

Using Linux: virtualization VMware Linux Ubuntu image 18

commands in a shell interaction with the OS, e.g.: ls date whoami cal 19

20 Command summary Commands (find out their functionality) –ls –mkdir, cp, mv, which, chmod, echo, grep, pwd, cat, ps –man input/output redirect –ls > file –command1 | command2 | command3 –cat /etc/passwd | sort | less –less /etc/passwd editors –kate, gedit, vi

21 Practical assignments (shell) Startup and login to the system –Username: student Password: student Create a directory in –Your home directory (/home/student/) –The temporary directory (/tmp/) –The root directory (/) Copy the password file to your home directory Search where the ls binary is located –Determine its owner and permissions –Record this information in a file Do a tutorial Install Dropbox (via Software Center)

C programming language Language of the Linux kernel and many of the applications (see lxr.linux.no)lxr.linux.no Low-level –No memory protection –No garbage collection –No decent string type –Direct memory pointer manipulation High execution performance possible –At the cost of a longer development time 22

importance of C 23 source:

24 Hello World compile and run $ gcc -o helloworld helloworld.c $./helloworld printf int i = 73; printf ("Hello World\n"); printf ("decimal display: %d\n", i); printf ("hexadecimal display: %04x\n", i); debugger…

25 Debugging with nemiver sudo apt-get install nemiver (only once; already done) gcc -g –o myapp myapp.c nemiver myapp & –set breakpoints –run, step, etc. –inspect variables

Today install Linux do a Linux tutorial run helloworld.c do C workshop exercises for week 1a