Practical-1 Write A Process of Installing Various Operating System
Practical-1 Write A Process of Installing Various Operating System
Practical-1
Step 1: connect the bootable usb flash drive with your pc and reboot it.
Step 2: as soon as your pc boots, press the f11 ( this key will differ from one pc to
another ) key to bring up the boot drive selection menu and select the bootable windows
10 usb flash drive. This key will differ from one pc to another, so do a quick google
search to find out the correct key to bring up the bios boot menu.
Alternatively, you can also go into the bios of your pc and set the bootable windows 10 usb
flash drive with the firstbootpriority.
Step 11: select the drive where you want to install windows 10.
Step 12: wait for a some time until windows is being installed. This may take from a
few minutes to a hour depending on the hardware of your personal computer. Once this
process is complete, your pc will restart.
Step 15: enter a serial key, otherwise click on dothislater to skip this option.
Practical-2
An operating system acts as an intermediary between the user of a computer and computer
hardware. The purpose of an operating system is to provide an environment in which a user
can execute programs in a convenient and efficient manner.
An operating system is software that manages the computer hardware. The hardware must
provide appropriate mechanisms to ensure the correct operation of the computer system and
to prevent user programs from interfering with the proper operation of the system.
Operating System
An operating system is a program that controls the execution of application programs and
acts as an interface between the user of a computer and the computer hardware.
A more common definition is that the operating system is the one program running at all
times on the computer (usually called the kernel), with all else being application programs.
An operating system is concerned with the allocation of resources and services, such as
memory, processors, devices and information. The operating system correspondingly
includes programs to manage these resources, such as a traffic controller, a scheduler,
memory management module, I/O programs, and a file system.
STRUCTURE OF MS-DOS
The above image contains the layers for application program, system program, MS-DOS
device drivers and ROM BIOS device drivers.
Application Program
These programs perform a particular fu.nction directly for the users. In other words, these
programs provide an application to the end users, so they are known as application programs.
System Program
The system programs are used to program the operating system software. While application
programs provide software that is used directly by the user, system programs provide
software that is used by other systems.
Most of the device drivers on MS-DOS are part of the operating system such as keyboard and
screen console drivers, floppy and hard-disk drivers, printer port driver, serial port driver etc.
The BIOS drivers are the programs stored in the EPROM or EEPROM memory chips on the
motherboard. These are the basic drivers needed to start the computer system. BIOS stand
for Basic Input/output System.
STRUCTURE OF WINDOWS
Windows is an operating system program that communicates your instructions to the actual
computer hardware and displays the results. Windows is a rectangular area which provides an
environment to run many programs. It is based on Graphical User Interface (GUI).
It consists of:
Windows Explorer: It is a tool that allows you to browse, view, copy and delete files.
It acts as a file manager that provides detailed information about your files, folders
and drives.
Active Window: It refers to the object that is being currently used or display on the
desktop.
Up gradation: It is the process of enhancing the features of any object. It changes or
replaces the characteristics of any windows to any other advanced version of
windows.
The kernel-mode components of Windows are the following: Executive: Contains
the base operating system services, such as memory management, process and thread
management I/O security and inter-process communication.
Kernel: Consists of the most used and most fundamental components of the operating
system.
STRUCTURE OF LINUX
Linux is one of popular version of UNIX operating System. It is open source as its source
code is freely available. It is free to use. Linux was designed considering UNIX
compatibility. Its functionality list is quite similar to that of UNIX.
Components of Linux System
Linux Operating System has primarily three components
● Kernel − Kernel is the core part of Linux. It is responsible for all major activities of
this operating system. It consists of various modules and it interacts directly with the
underlying hardware. Kernel provides the required abstraction to hide low level
hardware details to system or application programs.
● System Library − System libraries are special functions or programs using which
application programs or system utilities accesses Kernel's features. These libraries
implement most of the functionalities of the operating system and do not require
kernel module code access rights.
● System Utility − System Utility programs are responsible to do specialized,
individual level tasks.
Architecture
The following illustration shows the architecture of a Linux system −
DOS Windows
Text is used as the basic input Uses a mouse for all operating
Input System
system commands. system input.
Windows is a multitasking
DOS is unable to run multiple operating system; allowing more
Multitasking
processes at the same time. than one process to work
simultaneously.
Customizable Yes No
partition.
using
File system EXT2, EXT3, EXT4, Reisers FS, FAT, FAT32, NTFS and ReFS
XFS and JF
Practical-3
computing.
Installing Virtual PC 2007:
1. Once you have downloaded the proper Setup.exe file, locate the file and
double-click Setup.exe to start the installation.
2. When the installation wizard appears, click Next.
3. You will need to accept the terms in the license agreement to continue. Click
Next.
4. Enter your customer information and choose whether you would like to
make Virtual PC available to all who use the computer (default) or make it
available only to a certain user name. Click Next to continue.
5. Virtual PC 2007 will recommend installing to your program files folder. If
this is fine with you, simply click the Install button or click the "Change"
button to install Virtual PC 2007 to a location of your choosing.
6. Click the Finish button
Create a Virtual Machine:
1. Open Virtual PC 2007 and select New.
2. The Virtual Machine wizard will start. Select "Create a Virtual Machine",
then click Next.
3. In the Name and Location window, browse to a location where you would
like to place your Virtual Machine. It is recommended that you do not use
the same hard disk location as your physical operating system. If you do not
have a separate drive partitioned, then I recommend using an external drive
such as a USB 2.0 thumb drive. Click Next.
4. Select the operating system that you would like to install from the
"Operating System" drop down menu. Click Next.
5. In the Memory window, Virtual Machine will calculate the memory usage
for the operating system you are installing. You can either use the recommended value or
change the memory usage to a specified amount.
Click Next.
6. In the Virtual Hard Disk Options windows, Virtual Machine will need to add
a new virtual hard disk to your system. Select the option: "A new virtual
hard disk". If you already know that you have an existing virtual hard disk
install, select the option: "An existing virtual hard disk". Click Next.
7. In the Virtual Hard Disk Location window, click the Browse button and
locate the new hard disk that Virtual Machine has created and type in a name
for it. Review the calculated sizes for your hard disk size making sure that
there is enough space allotted for the operating system and any other
software you plan to install on it. Once you are satisfied with these figures,
click Next.
8. Click Finish.
Install a Virtual Operating System using Virtual PC 2007:
1. Open your Virtual PC Console. From here you will see 4 available options:
2. New: Use this option to install a Virtual operating system. Using Microsoft
Virtual PC 2007, you can install up to 3 virtual operating systems. Once
installed, they will show up in the left pane of the Virtual PC Console
window.
3. Settings:Use this option when it is necessary to change the settings of your
virtual operating system.
4. Remove:You can easily remove a virtual operating system from the console
using this option.
5. Start:Click any of the available virtual operating systems in the left pane of
your console window and select the "Start" button to start the selected virtual
operating system. Now that you are familiar with the option in your Virtual PC
Console, let's begin the installation of your virtual operating system. Select your
configured virtual machine from the left pane and then click the "Start" button.
6. Virtual Machine will boot to its Main window. Insert your installation media
in to your CD or DVD drive for the operating system you are attempting to
install.
7. Once the media is installed, reset your Virtual Machine by selecting
Action>> Reset.
8. The installation process should begin. You may need to press any key to
continue.
9. Follow the on-screen prompts and continue the installation just as you would
any operating system installation.
Practical-4
2. ls (list)
Just like the other, you often want to see anything in your directory. With list command, the
terminal will show you all the files and folders of the directory that you're working in. Let's
say I'm in the /home folder and I want to see the directories & files in /home.
/home$ ls
ls in /home returns the following -
imad lost+found
3. cd
Changing directory (cd) is the main command that always be in use in terminal. It's one of the
most Linux basic commands. Using this is easy. Just type the name of the folder you want to
go in from your current directory. If you want to go up just do it by giving double dots (..) as
the parameter.
Let's say I'm in /home directory and I want to move in usr directory which is always in the
/home. Here is how I can use cd commands -
/home $ cd usr
/home/usr $
4. mkdir
Just changing directory is still incomplete. Sometimes you want to create a new folder or
subfolder. You can use mkdir command to do that. Just give your folder name
after mkdir command in your terminal.
~$ mkdir folderName
5. cp
copy-and-paste is the important task we need to do to organize our files. Using cp will help
you to copy-and-paste the file from terminal. First, you determine the file you want to copy
and type the destination location to paste the file.
$ cp src des
Note: If you're copying files into the directory that requires root permission for any new file,
then you'll need to use sudo command.
6. rm
rm is a command to remove your file or even your directory. You can use -f if the
file need root permission to be removed. And also you can use -r to do recursive removal to
remove your folder.
$ rm myfile.txt
7. apt-get
This command differs distro-by-distro. In Debian based Linux distributions, to install,
remove and upgrade any package we've Advanced Packaging Tool (APT) package manager.
The apt-get command will help you installing the software you need to run in your Linux. It
is a powerful command-line tool which can perform installation, upgrade, and even removing
your software.
In other distributions, such as Fedora, Centos there are different package managers. Fedora
used to have yum but now it has dnf.
8. grep
You need to find a file but you don't remember its exact location or the path. grep will help
you to solve this problem. You can use the grep command to help finding the file based on
given keywords.
$ grep user /etc/passwd
9. cat
As a user, you often need to view some of text or code from your script. Again, one of the
Linux basic commands is cat command. It will show you the text inside your file.
$ cat CMakeLists.txt
10. poweroff
And the last one is poweroff. Sometimes you need to poweroff directly from your terminal.
This command will do the task. Don't forget to add sudo at the beginning of the command
since it needs root permission to execute poweroff.
$ sudo poweroff