CHM Lab
CHM Lab
A CMOS battery.
Motherboards also include a small separate block of memory made
from CMOS RAM chips which is kept alive by a battery (known as a
CMOS battery) even when the PC’s power is off. This prevents
reconfiguration when the PC is powered on.
CMOS devices require very little power to operate.
The CMOS RAM is used to store basic Information about the PC’s
configuration for instance:-
Floppy disk and hard disk drive types
Information about CPU
RAM size
Other Important data kept in CMOS memory is the time and date,
which is updated by a Real Time Clock (RTC).
Cache Memory:
PCI slots.
An expansion bus is an input/output pathway from the CPU to
peripheral devices and it is typically made up of a series of slots on
the motherboard. Expansion boards (cards) plug into the bus. PCI is
the most common expansion bus in a PC and other hardware
platforms. Buses carry signals such as data, memory addresses,
power, and control signals from component to component. Other
types of buses include ISA and EISA.
Expansion buses enhance the PCs capabilities by allowing users to
add missing features in their computers by slotting adapter cards into
expansion slots.
Chipsets
A chipset is a group of small circuits that coordinate the flow of data
to and from a PC's key components. These key components include
the CPU itself, the main memory, the secondary cache, and any
devices situated on the buses. A chipset also controls data flow to and
from hard disks and other devices connected to the IDE channels.
A computer has got two main chipsets:
The NorthBridge (also called the memory controller) is in charge
of controlling transfers between the processor and the RAM,
which is why it is located physically near the processor. It is
sometimes called the GMCH, for Graphic and Memory Controller
Hub.
The SouthBridge (also called the input/output controller or
expansion controller) handles communications between slower
peripheral devices. It is also called the ICH (I/O Controller Hub).
The term "bridge" is generally used to designate a component
which connects two buses.
Chipset manufacturers include SIS, VIA, ALI, and OPTI.
CPU Clock
The CPU clock synchronizes the operation of all parts of the PC and
provides the basic timing signal for the CPU. Using a quartz crystal,
the CPU clock breathes life into the microprocessor by feeding it a
constant flow of pulses.
For example, a 200 MHz CPU receives 200 million pulses per second
from the clock. A 2 GHz CPU gets two billion pulses per second.
Similarly, in any communications device a clock may be used to
synchronize the data pulses between sender and receiver.
A "real-time clock," also called the "system clock," keeps track of the
time of day and makes this data available to the software. A "time-
sharing clock" interrupts the CPU at regular intervals and allows the
operating system to divide its time between active users and/or
applications.
NOTE: You can check the jumper pins and jumper cap at the back of
an IDE hard disk and a CD/DVD ROM/Writer.
2.Partition a hard drive during Windows setup
Windows build-in tool, Disk Management or Diskpart.exe can be used for hard
drive partitioning. Disk Management can only be used when OS has been
successfully loaded, so you can use Disk Management to create a new partition
for another OS if you already have windows installed. If you want to create
partition without Windows pre-installed on the hard drive, you can use a
Windows installation disc to run Diskpart. The specific steps listed as below:
1. Insert the installation disc, and boot your computer from it.
2. At the Windows Setup screen, press Shift+F10 simultaneously to open a
command line prompt. If you use the New button to create partitions, it will
generate a system partition for an MBR disk.
3. Type “diskpart” and press Enter.
List disk
Select disk [disk number]
Create partition primary [size=n]
List disk
Select disk 0
Create primary partition size=30000
5. Then you will have created a partition around 30GB.
You can use this command to create more partitions or
exit.
If your hard drive has enough space, then it is recommended to
allocate more than 100GB to the system drive because Windows
update, installed programs, and other system files will keep
comsuming space on system partition. If you don’t have a Windows
installation disc, then you can use third party free partition manager
software to partition hard drive without operating system.
Create partitions with free partition manager
3. At the next screen, drag the slider or enter the amount of space to
specify the partition size. You can also click Advanced option to see
more options. Click OK when settings are done.
4. The program allows you to preview the partition layout without
making any changes to your hard drive. If no problem, click Apply to
run the operations.
Before you can partition a hard drive in Windows, you must have installed a new unused hard
disk, deleted an existing partition, or have some unpartitioned space available on an existing
drive. In the example in this tutorial I will take the unused space from one of my hard drives
and partition/format it. The steps shown here will work whether you are working with a brand
new hard drive, deleting an existing partition and reusing it, or partitioning available space on
an existing hard drive.
All hard disk management is done in the Disk Management Administrative Tool. Follow
these steps to open this tool:
1. If you are using Windows 8, type Disk Management at the start screen, click on Settings,
and then click on the Create and format hard disk partitions option. Then skip to step 3.
Otherwise, click on the Start button and select the Control Panel option.
2. If in Classic control panel mode, double-click on the Administrative Tools icon and then
double-click on Computer Management icon.
If your control panel is in the Category view, click on Performance and Maintenance, then
click on Administrative Tools, and finally double-click on the Computer
Management icon.
3. When the Computer Management screen opens, click on the Disk Management option
under the Storagecategory. This will present you with a screen similar to the one below.
To make a partition from the unused space you would do the following.
2. At the menu that comes up, click on the New Partition option.
3. You will now be presented with a wizard as to how you would like the partition to be
created. At the first screen press Next.
4. At the following screen, determine if you need a primary or extended partition. For more
information about these partitions you can read our partition tutorial listed above. Most
people will be fine selecting Primary Partition. Select Primary Partition and press Next.
5. At the next screen you will be prompted to type in how much of the unallocated space you
would like used for the new partition. In my example, my unallocated space is 26.43 GB, so I
can choose to make a partition of that entire amount of only use half and save the rest for
another partition. Regardless, of what you decide, you need to enter a size in the Partition
size in MB: field, or stick with the default size, and press the Next button.
6. At the next screen select the drive letter you would like assigned to it, or use the default
one given. When done, press the Next button. The drive letter that you assign here will be
how you access the partition later.
7. In this step you will determine how you would like the new partition to be formatted. For
the most part you are advised to use the NTFS file system. If you need a file system that can
be readable by older operating systems like DOS, Windows 95, Windows 98, or Windows
ME, then you should instead choose the FAT32 file system.
8. Type a name in the Volume Label field that will be associated with this partition or leave
it blank.
9. Finally press the Next button and you will come to a summary screen. Review how the
partition will be created, and if you are satisfied, press the Finish button to complete the
creation and formatting of your new hard disk partition.
When the computer finishes creating and formatting the new partition you will be presented
with the Disk Management screen again and will see that you have a new partition and drive
letter on your computer. Now you can use that drive to start storing your data.
If you have existing partitions on your computer that you would like to delete in order to use
its space for other purposes, then you first need to delete this partition. It is important to
note that by deleting a partition you will lose all your data on that partition. With that
warning given, let me give some examples of why you would want to delete a partition. Lets
say that you have a 60 GB hard drive in your computer that was originally partitioned into a
20 GB partition and a 40 GB partition. You would like to install another operating system on
your computer, but feel that neither partition is big enough on its own, and would like to
instead create one partition using the full storage of 60 GB. The only way to do that would be
to delete both of the existing partitions and recreate a new one using all the available space.
1. Click on the Start button and select the Control Panel option.
2. If in Classic control panel mode, double-click on the Administrative Tools icon and then
double-click on Computer Management icon.
If your control panel is in the Category view, click on Performance and Maintenance, then
click on Administrative Tools, and finally double-click on the Computer
Management icon.
3. When the Computer Management screen opens, click on the Disk Management option
under the Storagecategory.
4. Right-click on the partition you would like to delete and choose the Delete
Partition option.
5. A confirmation box will come up asking if you are sure you would like to continue. If you
press the yes button, all data on this partition will be deleted. If you are sure about deleting
this partition, press the Yes button.
The partition will now be deleted and you can either create a new partition or exit the
program.
--
HOW TO INSTALL WINDOWS XP:
For this step, you will need to open your CD-Rom drive and insert your Windows XP disk.
you can restart it. While the station is restarting, begin pressing the F12 key over and over
keyboard to move over the choice for an Onboard or USB CD-ROM Drive. Press Enter.
After you have pressed Enter, most Windows XP disks will prompt you to press any key to
boot from the CD (As seen in picture 2). When this appears, you will have only a few
seconds to press any key on the keyboard. I usually choose the Space-bar because it is the
will check your hard drive to see if windows XP is currently installed on it. After the disk
has made its check you should see a screen like the one in the first picture on this page.
You will want to press Enter because you are planning on installing Windows XP on your
system. If you realize that you have data on your hard drive and need to back it up, now
would be the time to press F3 and exit the installation program to back it up.
can take the time to read through the agreement, but it is just saying that you will not be
breaking any laws using this product. I personally just hit F8 (to agree) and move on to the
After pressing F8, you will come to the beginning of the Windows XP setup. On this page,
you will want to press the Esc key on the keyboard. This will tell the program not to try and
will see a screen similar to the one in the first picture of this page. You will want to scroll
over the C: partition that is current on your hard drive. The next thing you will need to do is
click the D key. This will tell the program that you want to Delete the current partition.
After you click the D key, you will see a screen like the one in the second picture. On this
screen you will want to press the L key to confirm the deletion of the partition of the hard
drive.
Step 6: Beginning the Install
Now that you have deleted the old partition, you will need to be sure that partition is selected
and press the Enter key. This will tell the program that you want to install Windows XP on
that partition.
Step 7: Choosing the Type of Installation
In this step, you will want to choose whether you want to have system do a quick installation
or a standard installation. For the purposes of this set of instructions, I have chosen to do a
standard installation.
After choosing your method of installation, you will want to press the Enter key to continue
to the installation.
Step 8: Allowing Windows XP to Install
This step will probably be the longest step. This is because you are at the mercy of the
system and how fast it installs Windows XP. After you have pressed the Enter key in the last
step, you will see the screen in the first picture here appear. This will mean that the program
Over time, the progress bar will move across the screen, as shown in the second picture
where the progress bar is at twenty-five percent. After the Installation has finished placing
the file system on your hard drive, you will see the program restart your computer. Do not
be alarmed at this. it will boot back up and you will see a screen similar to the third picture
on this page.
Step 9: Choosing Your Keyboard Layout, Organization, and Computer Name
The first screen (seen in the first picture) that will come up will be a screen for you to select
the language and keyboard style that you wish to use for your new installation of Windows
XP. I have chosen to use the English Language and the US keyboard layout. You may select
any configuration that you are comfortable with and then press the Next button.
The next thing the program will ask for is the name and organization that this install is
affiliated with (as seen in the second picture). You will want to fill this in with your
information. After filling in the information, you will press the Next button.
When the next screen comes up (as seen in the third picture), you will want to choose the
name you want to give to your computer and the password the Administrator of the computer
will correspond to the Time Zone in which you live. I live in the Central Time Zone, so I
have chosen to have the date and time correspond to that. You may pick which ever you
After choosing the Time Zone you are in, you will need to make sure the time is correct.
This can be done by checking the time (as seen in the second picture).
Now you will need to wait for the installation to continue before you can do anything more.
After pressing the OK button, you will see another box appear (like the one in the second
picture). This box will want you to press the OK button also.
appear (like the first picture). On this page, you will want to press the next button at the
bottom right.
Now you will see a screen prompting you to protect your PC. You will want to decide if you
want Windows XP to have automatic updates on or not. I chose to have the system do
automatic updating to save from the hassle of having to be sure the computer's user
remembers to update the computer. After making your choice, you will need to press the
Now you will be prompted to give the computer a user. For the purposes of this set of
instructions I gave it a user named "MyName", but you can name this user whatever you
would like. After giving the computer at least one user (you may want to give it many), you
to press Finish.
This will bring up a screen similar to the second picture on this page.
Now you will see that the computer has logged you in for the first time. You should see a
• Go to https://www.kernel.org/
• Download the tarball of the latest/stable version into any directory within your home
directory.
• Read more about distinguishing between a stable and development version here: ◦
http://www.makelinux.net/books/lkd2/ch01lev1sec4
• Extract the tarball using ◦ tar -xvfJ linux-x.x.x.tar.xz • cd into the linux-x.x.x directory thus
created.
a. From the build directory configure the Kernel your are going to build using
one of: ◦ make defconfig ◦ make config ◦ make menuconfig ◦ Read more
▪ http://www.linux.org/threads/the-linux-kernel-configuring-the-kernel-part-1.4274/ ▪
http://www.linuxchix.org/content/courses/kernel_hacking/lesson2
• Now compile the Kernel using: ◦ make or ◦ make -jx (Where x = 2*no.of cores in your
• Install the new Kernel onto the system using: ◦ make install • This creates: ◦ kernel
▪ vmlinuz-x.x.x* ◦ the initramfs(initial RAM file system) or initrd(initial RAM Disk) by the
• Here is a list of files of importance created in the /boot directory ◦ vmlinuz-x.x.x* – The
• The make install command also executes a update-grub command which will make the
grub (the Grand Unified Boot Loader) aware of the new kernel image available • and
updates /boot/grub/grub.cfg file so that during the next boot the new kernel image shows up
Step 2: Making your new Kernel the default entry in your GRUB menu. • In the scenario
where you are logging into a remote machine using, for eg., ssh or telnet you won't be
presented with a grub menu. You'll be just logging into an already booted up machine.
• In order to ensure that you boot into the Kernel that we just built we need to make its entry
• Locate the menuentry that has our vmlinuz-x.x.x* image file listed against the linux field
• Our aim is to boot into this menuentry by default. • For example in the sample grub.cfg, we
wish to make the menuentry ◦ 'Ubuntu GNU/Linux, with Xen hypervisor' the default one.
• Note that it is the 3rd main menuentry item in the grub.cfg. Out of all these: ◦ (0) menuentry
'Ubuntu'
◦ (3) submenu 'Advanced options for Ubuntu GNU/Linux (with Xen hypervisor)'
• To achieve this open /etc/default/grub in a text editor and update the value of
GRUB_DEFAULT to 2
command. • Another example: • We wish to make the menuentry ◦ 'Ubuntu, with Linux
3.13.0-32-generic' • within the submenu item ◦ 'Advanced options for Ubuntu' the default;
• submenu 'Advanced options for Ubuntu' is the 2 nd main menuentry item in grub.cfg • And
menuentry 'Ubuntu, with Linux 3.13.0-32-generic' is the 3 rd sub-menuentry within that ◦ (0)
▪ (0) menuentry 'Ubuntu, with Linux 3.13.0-39-generic' ▪ (1) menuentry 'Ubuntu, with Linux
▪ (5) menuentry 'Ubuntu, with Linux 3.3.1-mortar (recovery mode)' ◦ (2) menuentry 'Ubuntu
GNU/Linux, with Xen hypervisor' ◦ (3) submenu 'Advanced options for Ubuntu GNU/Linux
(with Xen hypervisor)' • In order to boot into this we need to make the following change in
/etc/defaults/grub ◦ GRUB_DEFAULT=”1>2”
https://help.ubuntu.com/community/Grub2/Submenus#Setting_a_Submenu_entry_as_the_d
efault
• Note that you won't be able to log into the remote system until it reboots.
• Once you've logged into the re-booted system check whether you've booted into the latest
Circuit boards and the chips of the PC are enough reliable if you handle them
properly and keep them under suggested environmental and power protection.
That is keeping them away from the water, high temperature, high voltage etc.
While putting a new board into your system you have to follow these steps
* Configuring
* Testing
* Device connection.
Specify the COM port of modem, LPT port for printer, DMA port for printer,
I/O address on the boards, IRQ lines on the board.
One specifying to the each source is configured then connect the ports to
complete the connections of your computer and starts its working.
Testing
If configured then Reboot the system and let the window to detect the card and
install the drivers.
Test the operations of the board and also test all the other devices on your
system to ensure that the new card is not causing any problem to the PC.
Loading and configuring the drivers
Once again after installing the drivers check whether each connection provided
on the circuit board is right or the wrong. if wrong then configure it in a right
manner and then again check the drivers and other connections.
Device connection
***
Load testing
PC power supplies are of a switching rather than a linear design. The switching type of
design uses a high-speed oscillator circuit to convert the higher wall-socket AC voltage to the
much lower DC voltage used to power the PC and PC components. Switching type power
supplies are noted for being very efficient in size, weight, and energy in comparison to the
linear design, which uses a large internal transformer to generate various outputs. This type of
transformer-based design is inefficient in at least three ways. First, the output voltage of the
transformer linearly follows the input voltage (hence the name linear), so any fluctuations in
the AC power going into the system can cause problems with the output. Second, the high
current-level (power) requirements of a PC system require the use of heavy wiring in the
transformer. Third, the 60Hz (hertz) frequency of the AC power supplied from your building
is difficult to filter out inside the power supply, requiring large and expensive filter capacitors
and rectifiers.
The switching supply, on the other hand, uses a switching circuit that chops up the incoming
power at a relatively high frequency. This enables the use of high-frequency transformers that
are much smaller and lighter. Also, the higher frequency is much easier and cheaper to filter
out at the output, and the input voltage can vary widely. Input ranging from 90 volts to 135
volts still produces the proper output levels, and many switching supplies can automatically
adjust to 220v input.
One characteristic of all switching-type power supplies is that they do not run without a load.
This means that you must have the supply plugged into something drawing power for the
supply to work. If you simply have the power supply on a bench with nothing plugged into it,
either the supply burns up or its protection circuitry shuts it down. Most power supplies are
protected from no-load operation and shut down automatically. Some of the cheap clone
supplies, however, lack the protection circuit and relay. They are destroyed after a few
seconds of no-load operation. A few power supplies have their own built-in load resistors, so
they can run even though no normal load is plugged in.
According to IBM specifications for the standard 192-watt power supply used in the original
AT, a minimum load of 7.0 amps was required at +5v and a minimum of 2.5 amps was
required at +12v for the supply to work properly.
Because floppy drives present no +12v load unless they are spinning, systems without a hard
disk drive often do not operate properly. Some power supplies have a minimum load
requirement for both the +5v and +12v sides. If you fail to meet this minimum load, the
supply shuts down.
Because of this characteristic, when IBM used to ship the original AT systems without a hard
disk, they plugged the hard disk drive power cable into a large 5-ohm, 50-watt sandbar
resistor, which was mounted in a little metal cage assembly where the drive would have been.
The AT case had screw holes on top of where the hard disk would go, specifically designed
to mount this resistor cage.
NOTE
Several computer stores I knew of in the mid-1980s would order the diskless AT and install
their own 20MB or 30MB drives, which they could get more cheaply from other sources than
from IBM. They were throwing away the load resistors by the hundreds! I managed to grab a
couple at the time, which is how I know the type of resistor they used.
This resistor would be connected between pin 1 (+12v) and pin 2 (Ground) on the hard disk
power connector. This would place a 2.4-amp load on the supply's +12v output, drawing 28.8
watts of power (it would get hot!) and thus enabling the supply to operate normally. Note that
the cooling fan in most power supplies draws approximately 0.1–0.25 amps, bringing the
total load to 2.5 amps or more. If the load resistor were missing, the system would
intermittently fail to start up or operate properly. The motherboard would draw +5v at all
times, but +12v would normally be used only by motors, and the floppy drive motors would
be off most of the time.
Most of the power supplies in use today do not require as much of a load as the original IBM
AT power supply. In most cases, a minimum load of 0–0.3 amps at +3.3v, 2.0–4.0 amps at
+5v, and 0.5–1.0 amps at +12v is considered acceptable. Most motherboards easily draw the
minimum +5v current by themselves. The standard power supply cooling fan draws only 0.1–
0.25 amps, so the +12v minimum load might still be a problem for a diskless workstation.
Generally, the higher the rating on the supply, the more minimum load required; however,
exceptions do exist, so this is a specification you want to check when evaluating power
supplies.
Some high-quality switching power supplies have built-in load resistors and can run under a
no-load situation because the supply loads. Other high-quality power supplies, such as those
from PC Power and Cooling, have no internal load resistors. They require only a small load
on the +5v line to operate properly. Many of the cheaper clone supplies, which often do not
have built-in load resistors, might require +3.3v, +5v, and +12v loads to work.
If you want to bench test a power supply, make sure you place loads on at least one but
preferably all of the positive voltage outputs. This is one reason you should test the supply
while it is installed in the system, instead of testing it separately on the bench. For impromptu
bench testing, you can use a spare motherboard and hard disk drive to load the outputs.
TASK (1)
AIM:- Identify the peripherals of a computer, components in a CPU
and its functions. Draw the block diagram of a CPU along with the
configuration of each peripheral and submit it to your instructor.
INPUT DEVICES:-
The devices which are connected to computer and they are used to send the
data to the computer internally, are known as the input devices. Following
are some important input devices;
Mouse: Mouse is the one of the most common device that one would find in a
desktop. It is normally plugged with the USB connection. It would be connected
through the PS/2 port which is located on the back of the computer. In older
system, one might find the serial port which was used to move the move around.
The old mouse contained ball inside of it which helped it move. But nor the
trend has changed the mouse that one uses contains some LED light. They are
called the laser mouse. The LED light now emits out of the mouse sensing that
where the mouse is being moved. The installation of mouse is easy, one can just
plug the mouse and the drivers would be searched by windows itself. The
mouse can be configured from the control panel where the speed of it can be
improved.
Keyboard: it is the famous device that is being used today and it is connected
through a USB connection at the back of the computer. Old keyboards used to
have the Mini DIN PS/2 connection with them; one would have to go through
the manufacturer's website to know that what are the drivers for the keyboard
and then can get them installed when he connects the keyboard with the
computer.
Touch screen: Touch screen is becoming common as well. They are normally
used on the mobile phones and other smart devices. Also, the tablets also
contain this feature. Now it is even common to find a computer's large screen
which works with the touch screen system. It makes it very easy to type and
navigate and one can bring the keyboard on the screen and type it there as well
hence one doesn't have to install the keyboard. The configurations and the
installation of the touch screen are also done in a display when it is bought.
Scanner: At a time, the fax machines were widely used by the people and till
now, they use it. But now the tables have turned and people tend to use the
scanners. The scanners have the ability to turn the paper's image into a digital
one hence sending the data from one place to another while keeping the same
paper with us is now an easy task and the data can be sent more easily through
the internet. The scanners are now used a lot and one can simply scan a paper
and save it in any format he wants to.
Barcode reader: If one goes to some super market or the retail environment,
one would see the barcode. It's a machine that is used to read the code which is
printed at the back of the products. The connection of the bar code is normally
made through the USB connection. Some old versions of the bar codes also use
the PS.2 connections to get connected to the computer. The barcodes use the
laser technology to read the barcode. The light comes and goes when the code is
exposed to the barcode reader. This eye can directly damage one's eye as well
so one has to be careful while using this machine. The barcode contains a
specific driver when it is connected, the driver is detected by the windows and
hence it can work properly.
Biometric devices: these devices are used as the security tools. They are mostly
used on some portable devices which tend to go away from one. If one tries to
use the laptop, he might find there is a finger print reader there and hence it is
protected since only the administrator who has set it up can log in to the
computer.
Game pads: Game pad is the wonderful thing for the gamers. It allows the
gamers to have some control over the gaming experience.
Joysticks: it is the gaming input which is widely used. It is a stick which has
many buttons on it.
Digitizer: the digitalizing pad has some specialized pins that allow the user to
draw on it very carefully and accurately. They are for those who have got some
artistic abilities and they are installed with the driver.
Multimedia devices:
Multimedia devices have become so common these days and now they are an
important part of our lives. Following are a few devices which are as follows;
Digital cameras: the digital cameras are the standalone cameras which are used
by the individuals. These days almost everyone has got a digital camera and
they are even embedded into the mobile phone where they can be used to take
picture. The digital cameras when connected to the PC for transfer of pictures
require the driver to get installed and that driver comes with the accessories.
Microphone: if one wants to do some conferences or the voice chat, he would
be meeting the microphone. They are available as the separated ones as well
which can be easily used. They are normally connected through some USB
connection and there is the digital connector which is associated with it to
provide the high quality.
Webcam: Having a video is now a great need of the everyday life. Now it is
very common to find some built in cameras into the displays which are being
used these days. Specially, they are so common in the laptop and if they are not
present, it is pretty common to get it connected and it is done pretty cheap
amount. One can also enjoy the live video if it is plugged through the 802.11
wireless connections which go into the USB connection in the computer.
Camcorder: Most of the video conference has to be recoded and hence one
needs the camcorders. They are normally done for some live videos. They are
not only into the digital cameras but they can be found easily on every laptop
and almost every mobile phone so one can record anything anytime without any
hustle. The video is stored in the flash memory.
MIDI enabled devices: MIDI stands for the Musical Instrument Digital
Interface. It is actually a device which is musical one and can digitalize all of
the information and can transfer it to the computer in some really standard way.
Many of the application which contains these capabilities of the music use this
midi as the standard format so that the information can be getting in and out of
the computer. It is common to get these devices plugged into the computers
with the help of some Ethernet cables and even the USB cable.
OUTPUT DEVICES:-
Output devices are those devices which do not send the data into the
computer, in fact through these devices, the computer communicates with
the user. They contain the devices like displays, printers etc. Some of these
output devices are as follows;
Printers: if one has the data in the computer, it is obvious that he has to take it
out of the computer. There are several ways for it and one of them is the
painters. These printers are available not only in the office environment and in
some retail environment, but at the homes as well. One might need the printer
to take out the prints of the important information he finds on the internet or
the assignment which he creates. At office, many important documents are
sent and received in the digitalized format and they have to be converted to
the hard copy so they can be read easily. At the shops, one might find the
painters which are used for printing out the receipts which are handed over to
the customers. Hence printers are used in every aspect of the busy life.
Speakers: many of the features which are used by us are mainly related to the
audio. Doesn't matter whether one listens to the podcasts or plays music, He
would need the audio to be heard. Even while watching the movie or some
educational video, hearing the voice is really important part and for that
purpose, one needs the speakers. The laptop contains the right left speakers
which are located at these both sides. There is also a subwoofer which can be
used for the mixing of the voice. Also, one can have some advanced computer
speaker which can be plugged into the computer externally for the sake of better
quality of the sound. The laptops have various options which ate provided to
user so that he can hear the sound with different options.
Display devices: one of the most integral parts of the PC is the display devices
which are used. The human beings need to see that what's going on the
operating system and to get in touch with the interface, they must have some
display device which can show them the appropriate amount of data. These
device can be both non touchable and the touchscreen. These display devices
are not just connected to the computers; instead they are connected to the
mobile phones as well.These displays show us what is exactly going on there
and how we can control the computer.
Hence, the computer is made up of many parts and each part plays some really
vital role so one should know all the parts of the computer so that he can get the
knowledge about how they work, how they are installed and how they can be
configured once they are connected to the computer/laptops.
In order to carry out the operations mentioned in the previous section the
computer allocates the task between its various functional units. The computer
system is divided into three separate units for its operation. They are
Logical Unit :After you enter data through the input device it is stored in the
primary storage unit. The actual processing of the data and instruction are
performed by Arithmetic Logical Unit. The major operations performed by the
ALU are addition, subtraction, multiplication, division, logic and comparison.
Data is transferred to ALU from storage unit when required. After processing
the output is returned back to storage unit for further processing or getting
stored.
The next component of computer is the Control Unit, which acts like the
supervisor seeing that things are done in proper fashion. Control Unit is
responsible for co ordinating various operations using time signal. The control
unit determines the sequence in which computer programs and instructions are
executed. Things like processing of programs stored in the main memory,
interpretation of the instructions and issuing of signals for other units of the
computer to execute them. It also acts as a switch board operator when several
users access the computer simultaneously. Thereby it coordinates the activities
of computer’s peripheral equipment as they perform the input and output.
Central Processing Unit (CPU) :-The ALU and the CU of a computer system
are jointly known as the central processing unit. You may call CPU as the brain
of any computer system. It is just like brain that takes all major decisions,
makes all sorts of calculations and directs different parts of the computer
functions by activating and controlling the operations.
BLOCK DIAGRAM:-
A computer can process data, pictures, sound and graphics. They can solve
highly complicated problems quickly and accurately. A computer as shown in
Fig. performs basically five major computer operations or functions
irrespective of their size and make. These are :
TASK:-2
AIM:-Every student should disassemble and assemble the pc back to working
condition. Lab instructors should verify the work and follow up it with a viva.
Also students need to go through the video which shows the process of
assembling a pc. A video would be given as a part of the course content.
BASIC TOOLS:
Before you begin building or refitting a computer, you should have some basic
tools:
OTHER TOOLS:
Some other tools and equipment can come in handy as well, such as:
SAFETY PRECAUTIONS:
1. Static electricity is the biggest danger to the expensive parts you are about
to assemble. Even a tiny shock which is much too small for you to feel
can damage or ruin the delicate electronic traces many times smaller than
a human hair that make up your CPU, RAM and other chips. It’s
important to use your anti-static wrist strap to prevent damage to these
components. Once you have the power supply installed in the case, clip
the end of the wrist strap to the outside of the power supply. (Never plug
your computer in while you are connected to it by a wrist strap.) This
will ensure that you, the case and the power supply are all connected to a
common ground, in other words there will be no inequality of charge that
will allow a spark to jump from you to the case. It’s also helpful to have
an anti-static mat to set the case and other components on.
2. Nobody but you is at fault if you shock your components with static
electricity. Make sure that you take the precautions in the previous
paragraph to ground yourself from static electricity. (Note: if you really
must work on a computer and have not got proper anti-static equipment,
it is usually OK if you make sure that you do not move about much; are
not wearing any static-prone clothing; handle components by the edges;
and regularly (once a minute or so), touch a grounded object.). The case
metal of your PC's power supply will usually be a suitable grounded
object. As noted above, touch it every few minutes while you are
working on your PC if you haven’t got a wrist strap.
3. Turn off your computer and switch off your Power Supply at the wall
before installing or removing any components - if power is flowing to
components as they are installed or removed, they can be seriously
damaged. In order to have a computer properly grounded, you need it
plugged in at the wall but turned off at the power supply and at the wall.
The neutral line may be earthed
4. Never cut the grounding pin off your power cord. This "safety ground"
stands between you and potentially lethal voltages inside the power
supply.
5. Be wary of sharp edges! Many lower-end PC cases have sharp,
unfinished edges. This is especially so on interior surfaces, and where the
case has been cut or punched-out. Use care and take your time to avoid
cutting your hands. If your case has this problem, a little time with some
sandpaper before you begin construction can spare you a lot of pain. Be
extra careful not to cut yourself when installing the I/O Shield.
6. Dismantling discrete electronic components such as your Power Supply
or Monitor is dangerous. They contain high voltage capacitors, which
can cause a severe electric shock if you touch them. These hold a charge
even when the unit is not plugged in and are capable of delivering a fatal
shock.
TASK -3
Insert the CD or flash drive. If nothing starts up automatically, open the drive in Windows
Explorer and run wubi.exe. Select the option Install inside Windows, and follow the prompts.
When you reboot after the install, your PC will boot Linux and start setting it up. This can
take a long time--especially if you're using a CD. Be patient.
The next time you boot, and with every boot afterwards, you'll get to pick between Windows
and Ubuntu. And you can uninstall Ubuntu like any other Windows program.
You can run both OSes simultaneously by installing Ubuntu inside a virtual machine (VM).
In a VM, software imitates hardware so that you effectively run one computer inside another.
I can recommend two free VM programs: VMware Player and Oracle VM VirtualBox.
Ubuntu installs just fine in either of them. VirtualBox is more powerful, but I find VMware
Player easier for the virtual machine novice. (Yes, I know that I recommended VirtualBox
just last week, but that was for a Windows 8-specific job.)
By the way, you don't actually need to burn a CD or prepare a flash drive to install Ubuntu
inside a virtual machine. Both VMware Player and Oracle VM VirtualBox can install directly
from the .iso file.
STEPS FOR UBUNTU INSTALLATION:-
Steps:
1.
Download the Ubuntu image. Ubuntu is available for free from the Ubuntu
website. It is downloaded in ISO format, which needs to be burned to a CD or
DVD before you can use it. Most newer computers (built after 2011) will use
the 64-bit version, while older computers will need the 32-bit version.
2
Burn the image to a disc. There are a variety of free image burning programs
available, and Windows 7, 8 and Mac OS X all have image burning capabilities
built-in.
In Mac OS X, open the Disk Utility. This is located in the Utilities folder, in
your Applications folder. Insert your blank disc into your disc drive. Drag and
drop the ISO file into the left frame of Disk Utility. Select the ISO file in the
frame and click Burn.
3
Set your computer to boot from the CD/DVD drive. In order to install Ubuntu,
you will need to set your computer to boot from discs. This is because the
installation has to occur before your existing operating system is loaded from
the hard disk.
When you reboot your computer, press the BIOS setup key to enter your BIOS
menu. In the Boot section, select your CD/DVD drive as the primary boot
device. Once you have it set, save and exit the BIOS. Your computer will reset
again.
In Windows 8, hold the Shift key while clicking Restart in the Power menu.
This will reboot the computer into the Advanced Startup Options. From here,
you can choose to boot from a CD or DVD.
4
Try Ubuntu before you install. If you’d like to take Ubuntu for a test drive
before you commit to installing it, you can run Ubuntu directly from the
installation CD without making any changes to your computer. Click the “Try
Ubuntu” button to test it out.
5
Start the installation process. Click the Install Ubuntu button to begin the
installation. If you are trying out Ubuntu before installing, you can start the
installation by opening the Install file on the test desktop.
You will need around 5 GB of free space on your computer to install Ubuntu.
Installation works best if you are connected to the internet. The easiest way to
do this is to plug an Ethernet cable directly into your computer from the router.
You can also connect to a wireless network if Ubuntu recognizes your wireless
adapter.
6
Check the boxes in the “Preparing to install Ubuntu” window. Ubuntu can
automatically download updates during the installation, and can install software
that will allow you to play MP3 files and Flash video (YouTube). Installing
these updates and software during installation will save you a significant
amount of time and headaches when the operating system is installed.
7
Choose your installation type. You can choose to install Ubuntu alongside your
existing operating system, you can replace your existing operating system, or
you can create new partitions yourself. If you choose to install alongside your
existing operating system, you will be given the option to set how much space is
allocated for each operating system.
If your computer doesn’t have an operating system installed yet, you will need
to select “Something else” and create a partition to install Ubuntu on. Make sure
that the partition is formatted as Ext4.
If you install Ubuntu alongside your existing operating system, you will be
given the option to choose your operating system every time your computer is
rebooted.
If you replace your existing operating system with Ubuntu, you will lose all of
your files and programs. Make sure that you have everything backed up that you
want to save.
8
Select your user options. Ubuntu will ask for your location in order to set the
correct timezone. If you are connected to the internet, this should happen
automatically. You will also need to select your keyboard layout, which is
typically automatically picked for you.
9
Select a username and password. In the “Who are you?” window, you will need
to enter your name, your computer’s name, and a username and password that
you will use to log in. You will need the password when making administrative
changes to the computer as well.
10
Wait for the installation to complete. Once you have set your options, Ubuntu
will begin to install. This can take 30 minutes or more depending on your
computer’s speed. Tips for using Ubuntu will be displayed above the progress
bar. Once the installation is complete, you will be prompted to reboot your
computer. Ubuntu is ready to use.
TASK-4
AIM:-Every student should install LINUX on the computer .This computer
should have windows installed. The system should be configured as dual boot
with both windows and LINUX. Lab instructor should verify the installation
and follow it up with a viva.
(2) Select your window partition .Depending on your system ,it will
usually be the second ,large partition .
(3) Once You have resized your window partition ,ensure you “ Apply
all operations ” on the hard disk. Exit gparted and reboot.
(4) The installation kali linux need to select large free space .
(5) Once the installation is done .you should be greeted with a GRUB
boot menu, which will allow to you to boot either into kali or
windows.
(6) Now that Your completed installing kali linux , its time to customize
your system .
TASK-5
AIM :- Several mini tasks would be that cover basic command in linux and
basic system on administration in linux which includes : basic linux command
in bash ,create hard and symbolic link ,text processing ,using wildcard .
Basic linux command in bash :- “bash” is a unix shell and command
language written by brian fox for the GNU project as a free software
replacement for the bourne shell. First released in 1989, it has been distributed
widely as the default login shell for most linux distribution and apple’s macOS.
(2) Symbolic links :- To create a symbolic links in linux ,we will use same in
utility with –s switch for example the following command creates a symbolic
link named TOPP.SH to file TOPPEROCS.SH.
Text processing :-
The rich set of text processing command is comprehensive and time
saving .knowing even their existence in enough to avoid the need of written yet
another script .
Text Processing
sort
uniq
comm
cmp
diff
tr
sed
awk
perl
cut
paste
column
pr
The rich set of text processing commands is comprehensive and time saving.
Knowing even their existence is enough to avoid the need of writing yet
another script (which takes time and effort plus debugging) – a trap which
many beginners fall into. An extensive list of text processing commands and
examples can be found.
sort
As the name implies, this command is used to sort files. How about alphabetic
sort and numeric sort? Possible. How about sorting a particular column?
Possible. Prioritized multiple sorting order? Possible. Randomize? Unique?
Just about any sorting need is catered by this powerful command
Options
-R random sort
-r reverse the sort order
-o redirect sorted result to specified filename, very useful to sort a file inplace
-n sort numerically
-V version sort, aware of numbers within text
-h sort human readable numbers like 4K, 3M, etc
-k sort via key
-u sort uniquely
-b ignore leading white-spaces of a line while sorting
-t use SEP instead of non-blank to blank transition
Examples
sort dir_list.txt display sorted file on standard output
sort -bn numbers.txt -o numbers.txt sort numbers.txt numerically (ignoring
leading white-spaces) and overwrite the file with sorted output
sort -R crypto_keys.txt -o crypto_keys_random.txt sort randomly and write to
new file
o shuf crypto_keys.txt -o crypto_keys_random.txt can also be used
du -sh * | sort -h sort file/directory sizes in current directory in human
readable format
$ cat ip.txt
6.2 : 897 : bar
3.1 : 32 : foo
2.3 : 012 : bar
1.2 : 123 : xyz
$ # -n option for numeric sort, check out what happens when -n is not used
$ sort -t: -k2,2n ip.txt
2.3 : 012 : bar
3.1 : 32 : foo
1.2 : 123 : xyz
6.2 : 897 : bar
uniq
This command is more specific to recognizing duplicates. Usually requires a
sorted input as the comparison is made on adjacent lines only
Options
-d print only duplicate lines
-c prefix count to occurrences
-u print only unique lines
Examples
sort test_list.txt | uniq outputs lines of test_list.txt in sorted order with
duplicate lines removed
o uniq <(sort test_list.txt) same command using process substitution
o sort -u test_list.txt equivalent command
uniq -d sorted_list.txt print only duplicate lines
uniq -cd sorted_list.txt print only duplicate lines and prefix the line with
number of times it is repeated
uniq -u sorted_list.txt print only unique lines, repeated lines are ignored
uniq Q&A on unix stackexchange
$ uniq -d sorted_colors.txt
Blue
Red
$ uniq -u sorted_colors.txt
Black
Green
comm
compare two sorted files line by line
Without any options, it prints output in three columns - lines unique to file1,
line unique to file2 and lines common to both files
Options
-1 suppress lines unique to file1
-2 suppress lines unique to file2
-3 suppress lines common to both files
Examples
comm -23 sorted_file1.txt sorted_file2.txt print lines unique to sorted_file1.txt
o comm -23 <(sort file1.txt) <(sort file2.txt)' same command using process
substitution, if sorted input files are not available
comm -13 sorted_file1.txt sorted_file2.txt print lines unique to sorted_file2.txt
comm -12 sorted_file1.txt sorted_file2.txt print lines common to both files
comm Q&A on unix stackexchange
examples
$ # 3 column output - unique to file1, file2 and common
$ comm colors_1.txt colors_2.txt
Black
Blue
Brown
Green
Purple
Red
Teal
White
Yellow
cmp
compare two files byte by byte
Useful to compare binary files. If the two files are same, no output is
displayed (exit status 0)
If there is a difference, it prints the first difference - line number and byte
location (exit status 1)
Option -s allows to suppress the output, useful in scripts
$ cmp /bin/grep /bin/fgrep
/bin/grep /bin/fgrep differ: byte 25, line 1
More examples
diff
compare files line by line
Useful to compare old and new versions of text files
All the differences are printed, which might not be desirable if files are too
long
Options
-s convey message when two files are same
-y two column output
-i ignore case while comparing
-w ignore white-spaces
-r recursively compare files between the two directories specified
-q report if files differ, not the details of difference
Examples
diff -s test_list_mar2.txt test_list_mar3.txt compare two files
diff -s report.log bkp/mar10/ no need to specify second filename if names are
same
diff -qr report/ bkp/mar10/report/ recursively compare files between report
and bkp/mar10/report directories, filenames not matching are also specified in
output
o see this link for detailed analysis and corner cases
diff report/ bkp/mar10/report/ | grep -w '^diff' useful trick to get only names
of mismatching files (provided no mismatches contain the whole word diff at
start of line)
Further Reading
diff Q&A on unix stackexchange
gvimdiff edit two, three or four versions of a file with Vim and show
differences
GUI diff and merge tools
tr
translate or delete characters
Options
sed
stream editor for filtering and transforming text
Options
commands
We'll be seeing examples only for three commonly used commands
range
By default, sed acts on all of input contents. This can be refined to specific
line number or a range defined by line numbers, search pattern or mix of the
two
=======================================================