19
Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4010: Operating Systems Lab Lab # 1 Introduction to Linux Eng. Haneen El-Masry September, 2014

Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Islamic University of Gaza Faculty of Engineering

Department of Computer Engineering ECOM 4010: Operating Systems Lab

Lab # 1 Introduction to Linux

Eng. Haneen El-Masry

September, 2014

Page 2: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

2

What is an Operating System?

A set of basic programs and utilities that make your computer run.

A program that manages the computer hardware. It also provides a basis for application

programs and acts as an intermediary between the computer user and the computer

hardware.

OS is a resource allocator: Manages all resources and decides between conflicting

requests for efficient and fair resource use.

OS is a control program: Controls execution of programs to prevent errors and improper

use of the computer.

The One program running at all times on the computer (usually called the kernel).

System Calls

Programming interface to the services provided by the OS.

Interface between the process and the operating system.

Typically written in a high-level language (C or C++).

Page 3: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

3

Linux Operating System

Linux is an alternative operating system for personal computers and servers. It competes mainly

against Microsoft's Windows. It is based on the UNIX operating system and was originally created

by Linus Torvalds.

The development of Linux is one of the most prominent examples of free and open source

software collaboration; typically all the underlying source code can be used, freely modified, and

redistributed by anyone.

Linux Architecture

The Linux architecture comprises two main sections: the kernel space and user space.

Kernel space

The kernel space is where all of the system level processes happen. These processes are things

that affect the entire system and have to be very stable and well maintained.

A problem in kernel space can cause the system to crash.

The main resident in kernel space is, of course, the kernel. The kernel is the piece of software

that manages memory allocation for processes and divides up the CPU’s time appropriately. The

kernel also contains the drivers for the hardware devices installed in the system. The kernel is

the core of the Linux operating system.

User space

The user space manages the user processes run by people working on the system. User processes

are things such as your e-mail client, Web browser, or word processor. These processes work

with the kernel to handle low level functions such as printing to the screen or talking to storage

hardware. But, since these functions are not handled in kernel space, a corrupted user application

will not bring the entire system down.

Tip: Kernel space and user space provide an important separation. Drivers and

other things that affect system stability run in kernel space.

Page 4: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

4

Directory Structure

File system: The way the files of an operating system are organized on the disk.

All the files are grouped together in the directory structure. The file-system is arranged in

a hierarchical structure, like an inverted tree. The top of the hierarchy is traditionally

called root (written as a slash /).

File systems from other hard drive partitions mount to directories beneath the root

directory, providing access to a single directory structure.

The File system hierarchy standard (FHS) governs the unified file system for Linux by

defining a standard set of directories, sub-directories and files.

Linux is case sensitive operating system.

Directory Description

/ The root directory, all directories are below the / (root directory)

of the system.

/bin Contains binary commands available to all users.

/boot Contains kernel and boot loader files.

/dev Contains device files.

/etc Contains system configuration files.

/home Contains by default the user home directories.

/lib Contains shared programs libraries and kernel modules.

/root Home directory for the root user.

/media Mount point for removable media.

/mnt Mount point for mounting a file system temporarily.

/opt Add-on application software packages.

/sbin Contains system binary commands.

/proc Contains information about system state and processes.

/srv Contains the files for services like FTP and Web servers.

/tmp Contains temporary files.

/usr Contains system commands and utilities.

/var Contains data files that are changed constantly.

Page 5: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

5

Linux Distributions

The Linux OS is frequently packaged as a Linux distribution that includes the Linux kernel (the

core of the operating system) as well as supporting tools and libraries.

These distributions have the same kernel but with different interfaces.

Some Linux distributions:

Debain

Ubuntu

Slackware

SuSE

RedHat

Fedora

Turbo Linux

Debian

The Debian project is an association of individuals who have made common cause to create a

free operating system. This operating system is called Debian GNU/Linux, or simply Debian for

short. Debian systems currently use the Linux kernel.

VirtualBox

VirtualBox is the newest program that creates virtual operating system inside of your current OS.

It is a virtual machine that lets you run various operating systems on your PC.

Page 6: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

6

VirtualBox Download

Page 7: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

7

Congrats ^_^

Debian Installing

Page 8: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

8

Page 9: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

9

R-Click

Click

Page 10: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

10

R-Click

Click

Click any place here to capture the

mouse.

To uncapture the mouse, press Right Ctrl.

Click

Page 11: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

11

Page 12: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

12

Page 13: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

13

I recommend

to enter it

“123”

Click

Page 14: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

14

Page 15: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

15

Page 16: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

16

Page 17: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

17

Page 18: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

18

Page 19: Lab # 1 Introduction to Linuxsite.iugaza.edu.ps/hmasry/files/Lab-1-Introduction-to-Linux.pdfSome Linux distributions: Debain Ubuntu Slackware SuSE RedHat Fedora Turbo Linux Debian

Operating Systems Lab

19

Finally ^_^

Best Wishes