0% found this document useful (0 votes)
77 views6 pages

Introduction to Operating Systems Lab

Uploaded by

maryamkainat2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views6 pages

Introduction to Operating Systems Lab

Uploaded by

maryamkainat2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA

FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

COMPUTER ENGINEERING DEPARTMENT

Operating systems

INTRODUCTION TO OPERATING
SYSTEMS

LAB MANUAL 1

Date:
Name:
Reg#: Group:
Marks: Signature:
UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA
FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

COMPUTER ENGINEERING DEPARTMENT

Operating systems

Lab Objective: Objective of this lab is to give some background of Linux and elaborate
the procedure of installing Linux.
1. Operating Systems:
An operating system (OS) is a set of programs that manage computer hardware resources and
provide common services for application software. The operating system is the most important type
of system software in a computer system. A user cannot run an application program on the
computer without an operating system, unless the application program is self booting.
Examples of popular modern operating systems include Android, iOS, Linux, Mac OS X, BSD, all of
which have their roots in Unix, and Microsoft Windows.
Components:
The components of an operating system all exist in order to make the different parts of a computer
work together.

2. Background
2.1 Kernel
The kernel is the main component of most computer operating systems; it is a bridge
between applications and the actual data processing done at the hardware level. The
kernel's responsibilities include managing the system's resources (the communication
between hardware and software components)
UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA
FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

COMPUTER ENGINEERING DEPARTMENT

Operating systems

2.2 UNIX and Linux


Linux is based on Unix
o Unix philosophy
o Unix commands
o Unix standards and conventions
There is some variation between Unix operating systems
o Especially regarding system administration
o Often Linux-specific things in these areas

2.3 UNIX System Architecture

The shell and the window environment are programs


Programs’ only access to hardware is via the kernel
2.4 UNIX Philosophy
Multi-user
o A user needs an account to use a computer
o Each user must log in
o Complete separation of different users’ files and configuration settings
Small components
UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA
FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

COMPUTER ENGINEERING DEPARTMENT

Operating systems

o Each component should perform a single task


o Multiple components can be combined and chained together for more
complex tasks
o An individual component can be substituted for another, without affecting
other components

2.5 What is Linux?


Linux kernel
The Linux kernel is an operating system kernel used by the Linux family of Unix-
like systems. It is one of the most prominent examples of free and open source
software.
o Developed by Linus Torvalds
o Strictly speaking, ‘Linux’ is just the kernel
Associated utilities
o Standard tools found on (nearly) all Linux systems
o Many important parts come from the GNU project
 Free Software Foundation’s project to make a free Unix
 Some claim the OS as a whole should be ‘GNU/Linux’
Linux distributions
o Kernel plus utilities plus other tools, packaged up for end users
o Generally with installation program
o Distributors include: Red Hat, Debian, SuSE, Mandrake
Run [Link] command
Booting:
In computing, booting (also known as booting up) is a process that begins when a user
turns on a computer system and prepares the computer to perform its normal operations.
On modern computers, this typically involves loading and starting an operating system.
UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA
FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

COMPUTER ENGINEERING DEPARTMENT

Operating systems

The boot sequence is the initial set of operations that the computer performs when power
is switched on. A boot loader is a computer program that typically loads the main
operating system or runtime environment for the computer after completion of a power-
on self-test.
3- Installation
Dual Boot
 Partitions
 Root boot swap
 File formats
Free some space on your hard disk for installing Linux and delete it. Now when
Linux installation will run you will have to select this unpartitioned area for your
Linux installation.
Perform media check on Linux installation CDs to confirm the integrity of the
installing media.
There are two modes of installation
o Texture Interface for professionals
o Graphical User Interface for novice people
It is recommended to select the latter option.
At the time of partitioning, you will be prompted to select ‘manual partitioning’ or
‘automatic partitioning’. Automatic partitioning is recommended for new users.
For running NS-2 or some other development tools later in Linux, it is
recommended to install all development packages at the time of installation.
Otherwise you can install them later just like ‘add/remove window components’
in windows.
Select the ‘Boot from CD option’ and start installation..
To help you during the installation procedure, some tips are normally provided on
the left top corner of the screen.
UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA
FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

COMPUTER ENGINEERING DEPARTMENT

Operating systems

Virtual Machine
 Minidisks
Copy image of fedora in any drive of your computer.
Install virtual box software and just follow the next instruction
Give path of image of fedora in the desired tab and click next
It will start installation

4- Lab Exercises
(Note: All Lab exercises must be submitted in hand written form)

a. What is the file system used by the Linux?


b. Name two types of boot loaders available.
c. What are the names of partitions created for Linux?
d. Why we use Linux?
e. What are the benefits of Linux Operating Systems?

Common questions

Powered by AI

The key differences in system administration between Unix and Linux stem from their different evolutionary paths and communities. Unix systems often have variations specific to each version, especially in system administration tasks. Linux, being open source, has multiple distributions which can lead to differences in administration tools and practices. Linux-specific tools and methods often exist, due to its open-source nature, allowing for more customization and community-driven development . Furthermore, Linux benefits from the GNU project, which provides standardized tools that might not be present in all Unix systems .

Linux offers several features that are beneficial for developers and system administrators, including its open-source nature, which allows users to customize and optimize the system extensively . It supports a wide range of programming languages and development tools, many of which are included in the standard Linux distributions through the GNU project . Additionally, the modularity inherent in the Unix philosophy allows for easy automation and scripting via command-line tools, which is ideal for development and system administration tasks . Lastly, Linux's strong community support and extensive documentation make it an advantageous platform for problem-solving and development .

Using a virtual machine (VM) for running Linux environments offers several advantages, including isolation from the host system, ease of managing multiple environments simultaneously, and the ability to test and develop software in a controlled setting . However, potential limitations include performance overhead due to resource sharing with the host system, which can impact the behavior of resource-intensive applications. Additionally, setting up VM environments can be complex and requires a good understanding of virtualization software .

The boot loader is significant in the Linux boot process as it is responsible for loading the operating system into memory after the computer powers on and completes the power-on self-test . Two commonly used boot loaders in Linux systems are GRUB (Grand Unified Bootloader) and LILO (Linux Loader), both of which provide options to select which operating system or kernel to boot in dual-boot environments .

Linux distributions differ in their approach to packaging and distributing system components and applications primarily through the choice of package management systems and bundled software. Distributions like Red Hat use RPM Package Manager, while Debian uses DEB packages through tools like APT . Each distribution packages the Linux kernel with a selection of utilities and additional tools, creating systems that can vary significantly in default applications, configuration, and system management practices. This means that users can choose distributions that best meet their requirements for stability, ease of use, or feature-rich environments .

The Unix philosophy influences the design and functionality of Linux systems by emphasizing the use of composable, small, single-task utilities that can be combined to perform complex operations. This philosophy encourages a modular approach where programs do one thing well, enhancing flexibility and simplicity . In Linux systems, this is manifested through the extensive use of command-line tools and scripts that follow this design principle, allowing users to easily extend and replace components without altering the entire system .

The open-source nature of Linux contributes to its widespread adoption and development by allowing users to freely use, modify, and distribute the software. This has led to a large and active community of developers who continuously contribute to its improvement and expansion . The availability of source code enhances transparency and security, as any user can review and audit the code for vulnerabilities. Additionally, open-source licensing allows for diverse custom distributions catering to specific needs, fostering innovation and rapid development in various fields .

The kernel is considered a crucial component in an operating system because it acts as a bridge between applications and the actual data processing done at the hardware level. Its responsibilities include managing the system's resources and facilitating communication between hardware and software components . In Linux and Unix systems, the kernel is fundamental as it is the core that provides necessary services for all other parts of the operating system, which enhances the modularity and flexibility these systems are known for .

Partitioning during Linux installation involves dividing a hard drive into multiple sections where each partition can be treated as a separate volume. This is crucial for organizing data and files, especially in systems where dual booting or multiple operating systems are involved . Automatic partitioning is recommended for new users because it simplifies the installation process by allocating necessary partitions such as root and swap automatically, reducing the risk of user errors that can occur during manual partitioning .

The concept of a multi-user environment in Unix systems enhances security and resource management by ensuring that each user operates within a controlled and isolated environment. User accounts require individual logins, which helps maintain privacy and separate user data and settings . This isolation prevents unauthorized access to files and applications, mitigating potential security breaches. Resource management is improved as the system can allocate resources such as CPU time and memory separately, optimizing performance and maintaining system stability even with multiple concurrent users .

You might also like