Unit 1
Unit 1
SYSTEM (WINDOWS/LINUX)
     1.0        Introduction                                                                  5
     1.1        Objectives                                                                    6
     1.2       . Windows Operating System                                                     6
                1.2.1   Features of Windows Operating System                                  8
                1.2.2   Windows Installing Procedure (Windows XP)                            8
                1.2.3   Basic Utilities for Windows                                         20
     1.3       Linux Operating System                                                       22
                1.3.1   Features of Linux Operating System                                  23
                1.3.2   How to Install Linux Operating System (Fedora 9)                    24
                1.3.3   Linux Utilities and Basic Commands                                  34
     1.4       Summary                                                                      39
     1.5       Solutions/Answers                                                            40
     1.6       References/Further Readings                                                  41
1.0 INTRODUCTION
     In this unit, we are going to explore the practical process related to the loading and
     installing of Proprietary and Open Source operating system, so far as the Proprietary
     operating system is concerned we are going to discuss for Windows XP and on the
     end of Open source operating system we are going to work with Fedora. Before
     beginning the actual technicalities, Let us discuss some fundamentals of operating
":   system.
     Learners, after going through the study material of other courses of our eIT
     programme, you might have learned that the term Software, which is broadly
     classified into two categories i.e., Application Software and System Software,
     however you may come across various terminologies related to the types of software
     like; Shareware, Freewares, Middlewares, Device Drivers, Linkers, Loaders, parsers,
     assemblers etc., but soon you will be able to identify that these are either the sub
     categories of our Application Software or System Softwares. As this unit is explicitly
     about the operating system, so, we will restrict our discussion to this term only. An
     Operating System (commonly abbreviated to either OS or O/S) is a System Software
     whose job is to act as an interface between computer hardware and user. OS is .
     responsible for the management and coordi nation of activities and the sharing of the
     limited resources of the computer. The operating system acts as a host for other
     application software that are suppose to.run on the machine (i.e. hardware). As a host,
     one of the purposes of an operating system is to handlethe details of the operation of
     the hardware.
                                                                                                  5
Practicals - Lab Manual-I     This relieves application programs from having to manage these details and makes it
                            . easier to write applications. Almost all computers, including handheld computers,
                              desktop computers, supercomputers, and even video game consoles, use an operating
                              system of some type. Some of the oldest models may however use an embedded
                              operating system, that may be contained on a compact disk or other data storage
                              device. But why to talk of old things, computers is upcoming and dynamic field,
                              today's mobile phones are nothing but small computers, the O.S. which generally
                              works with our mobile phones is Symbian, Windows Mobile edition ofO.S. is also
                            there, and many more are in pipeline. The function ofO.S., here and everywhere is to
                            provide. help for running applications on the hardware, which may be your mobile
                            phone, these applications might be developed in various languages like Java, .Net
                            frame work is also in wide usage.
                            This unit mainly focuses on the installation procedure of both Windows and Linux
                            (Fedora) operating systems. It also covers releases of both the operating systems
                            starting from 1SI version to present version and features of both Windows and Linux
                            operating systems.
1.1 OBJECTIVES
The first independent       version of Microsoft   Windows,     version     1.0, was released in the
year    1985. Since then, Microsoft      released different versions of windows          (windows
2.0,3.0,3.1,      windows   95, windows     ~8 and windows XP) over a period ti1l2001.
Later in the year 2007, Microsoft        released Windows      Vista.
Microsoft      released network operating     system for servers for various network services.
Windows        NT 3.1 is the first release of Microsoft's   Windows NT line of server in the
year    1993. Since then, Microsoft       released various versions (Windows         NT 4.0,
Windows        2000, Windows     server 2003 and Windows        server 2008) over a period till
2008.
You might be thinking when to use the Network O.S. and when to use Other O.S. like
Windows XP, the answer is that, when you are supposed to develop software in client
server Environment        or networked    environment    then use the Server edition of an O.S.                                        .'.
else use other O.S., but generally professional         applications     are developed   on NT or
server technologies.
                                                                                                                                 7
Practicals - Lab Manual-I   1.2.1 Features of Windows Operating System
                            The following are some of the features of Windows Operating system on latest
                            releases:
                            User Interface & Device Support:       Windows has Graphical User interface (GUl)
                            and also has Command Line Interface (CLI) for interaction and maintenance of the
                            system. It also has fast user switching and remote assistance feature. It provides new
                            and/or improved drivers and user interfaces for devices.
                            Accessibility and Usability: Windows has consistency between it's versions and
                            applications. It also has application compatibility.
                            Remote Desktop: Users can log into Windows remotely through the Remote
                            Desktop service. It is built on Terminal Services technology, and is similar to
                            "Remote Assistance", but allows remote users to access local resources such as'
                            printers.
                            Windows XP is a versatile O.S. which took over various laggings in the earlier O.S.
                            given by Micro. oft. You will come across these differences when you work with a
                            machine having Windows 98 as an O.S., and then you switch over to a machine
                            loaded with Windows XP as the O.S. One major component which really improves
                            the performance and working is the availability of various device drivers which really
                            make device operation as simple as plug-n-play, However, there are some sacrifices
                            to enjoy such features, i.e., you need to have system i.e., hardware with minimum
                            configurations as given below in Table 1. If the minimum ystem requirement is not
                            fulfilled then you will not be able to install this O.S. on to your machine, ho~vev,:""
                            Windows 98 might serve the purpose. But to work with Windows 98 you need to
                            install drivers of almost all the devices you want to work with and this hinders h
                            plug-a-play features. So, Windows XP is in huge demand globally, let us learn how to
                            load it before making us to work on it.
8
                   Table 1 : Minimum System Requirements       for Windows XP                   Install Your Operating System
     --                         -                                                                       (WINDOWSiLl UX)
     System Req,:!:rements                Minimum                   Recommended
~                                                                                   --
I Processor                         233 MHz                  300 MHz or higher
                                                                                       --
    Memory                          64MB RAM                 128 MB RAM or higher
I.---monitor
I
f-space
                                 CD-ROM drive or DVD drive
1-Drives
   .-
  Input devices                  Keyboard. Microsoft Mouse or compatible pointing        ~  I
                                 device                                                     I
                                                                                            I
~ Sound        -   -
                                 Sound card. Speakers or headphones                    .,
The following step by step procedure will help you to install Windows XP. The
installation procedure is shown with the figure appears on your screen after doing a
step.
2)   If prompted to start from the CD, press SPACEBAR. If you miss the prompt (it
     only appears for a few seconds), restart your computer to try again.
3) Windows XP Setup begins. During this portion of setup, your mouse will not work,
     so you must use the keyboard. On the Welcome to Setup page, press ENTER.
                                                                                                                          9
Practicals - Lab Manual- J   4) On the Windows XP Licensing Agreement page, read the licensing agreement.
                                Press the PAGE DOWN key to scroll to the bottom of the agreement. Then press
                                F8.
                             5) This page enables. you to select the hard disk drive on which Windows XP will be
                                installed. Once you complete this step, all data on your hard disk drive will be
                               removed and cannot be recovered. It is extremely important that you have a recent
                               backup copy of your files before continuing. When you have a backup copy, press
                               D, and then press L when prompted. This deletes your existing data.
10
7) Press ENTER again to select Format the partition using the NTFS tile system,          Install Your Operating System
                                                                                                  (WINDOWS/LlNUX)
   which appears by default.
8) Windows XP erases your hard disk drive using a process called formatting and then
  copies the setup files. You can leave your compu ter and return in 20 to 30 minutes.
9) Windows XP restarts and then continues with the installation process, From this
   point forward, you can use your mouse. Eventua.lly, the Regional and L:anguage
   Options page appears. Click Next to accept the default settings. If you are
  . multilingual or prefer a language other than English, you can change language
   settings after setup is complete.
                                                                                                                     11
Practicals - Lab Manual-I
                                                                       ,
                                                                                    I\
                                                     R~,al andL~~                          Dption~.I/~you        tJJ chrmQ~
                                                                                                                          tit! WfJIj numb6JfI,    dr.l~~
                                                                                                                                                       .
                                                     ,cullencitt      and If ~            ~t   di3P/ayfd, YQI..Ie          MIll ~t.ippQJtlor ~~
                                                     r~t,             artd em '~Ioe~!ior,lIet~
                                                     r~   gt&t'idard. ~ fOln~H~!tit'la1#tletto r.h
                                                     ,~ti",ri It t', t (I) U ;., $, ~~,.
                                                                                                                          t!Jrraed StC)OO$),~td Uw
r v/WO(.!
                            10) On the Personalize Your Software page, type your name and your organization
                                name. Some programs use this information to automatically fill in your name
                                when required. Then, click Next.
                                                                         i
                                       ,~.       "
                                                         {}Jp,!' ,You, (u~·narli~   Cflfi the name     of yout   C~J       QI tlrganization.
                                       ,    ~
                                           I~'
                                                                           I        •
                                       !
                                       I
                                       \
                                        J
12 .
11) On the Your Product Key page, type your product key as it appears on your                 Install Your Operating System
                                                                                                       (WINDOWS/UN UX)
   Windows XP CD case. The product key is unique for every Windows XP
   installation. Then, click Next.
...'
12) On the Computer Name and Administrator           Password page, in the Computer
   name box, type a name that uniquely identifies your computer in your house, such
   as FAMIL YROOM or TOMS. You cannot use spaces or punctuation. If you
   connect your computer to a network, you will use this computer name to find
   shared files and printers. Type a strong password that you can remember in the
   Administrator     password box, and then retype it in the Confirm password box .
  .Write the password down and store it in a secure place. Click Next.
                                                                 1I~~t~\~m(q\(\ll'lf I••~.~
                                                                                          .
                                                   ,~ft   1YL4 'MI<i\"\   n@mt \   ~~tl,
                                                                                                                         13
Practicals - Lab Manual-l   J 3) On the Date and Time Settings page, set your computer's clock. Then, click the
                               Time Zone down arrow, and select your time zone. Click Next.
                                                                                                  -
                                                                                           .•...... .....
                                                                                           '         '-            --_ ..
                                                                                                                                  ..:J
                                      .....             ,.._. __ ~                                :3 ,'"'--'..._,r' __ ,_~....-----:.-J1
                                                                                                                                 ..::..1   I
                                                    I
                                      1._
                            14) Windows XP will spend about a minute configuring your computer. On the
                               Networking       Settings page, click Next.
I~ c~ t•. S;
.'•
14
15) On the Workgroup or Computer Domain page, click Next.                                                 Install Your Operating System
                                                                                                                   (WINDOWS/LINUX)
Windows XP Profeisi"OriafSetdp
WOAKGAOUP
16) Windows XP will spend 20 or 30 minutes configuring your computer and will
   automatically restart when finished. When the Display Settings dialog appears,
   click OK.
17) When the Monitor Settings dialog box appears, click OK.
                                                                                                     :J
                   WtrJdow~adjust ~ your «run r6.so1ut·oti If you c n r       I                  d
       ••          t '" text, diek OK
                                   to tXInt nt.Je.
                                                                                                                                     15
 Pracncars - Lab Manual-I   18) The final stage of setup begins. On the Welcome to Microsoft Windows page,
                                click Next.
                            19) On the Help protect your PC page, click Help protect my j>Cby turning on
                                Automatic Updates now. Then, click Next
                            20) Windows XP will then check if you are connected to the Internet:
                                •   If you are connected to the Internet, select the choice that describes your
                                    network connection on the Will this computer connect to the Internet
                                    directly, or through a networkflpage.    If you're not sure, accept the default
                                    selection, and click Next.
16
                                                                                      Install Your Operating System
                                                                                               (WINDOWS/LINUX)
                                                                                                                      .,
                                                                                                                      ('
21)   If you use dial-up Internet access, or if Windows XP cannot connect to the
      Internet, you can connect to the Internet after setup is complete. On the How
      will this computer connect to the InternetOpage, click Skip.
                                                                                                                17
Practicals - Lab Manual-I   22) Windows XP Setup displays the Ready to activate WindowsOpage.          If you are
                                connected to the Internet, click Yes, and then click Next. If you are not yet
                                connected to the Internet, click No, click Next, and then skip to step 24. After
                                setup is complete, Windows XP will automatically remind you to activate and
                                register your copy of Windows XP.
23) On the Ready to register with Microsoft? page, click Yes, and then click Next.
18
24) On the Collecting Registration Information    page, complete the form.             Install Your Operating System
    Then, click Next.                                                                          (WINDOWS/LINUX)
25) On the Who will use this computerDpage, type the name of each person who
   will use the computer. You can use first names only, nicknames, or full names.
   Then click Next. To add users after setup is complete or to specify a password to
   keep your account private, read Create and customize user accounts .•
                                                                                                                  19
 Practicals - Lab Manual-I   26) On the Thank you! page, click Finish.
                             Note: Whenever you are working with your computer system do not save your data
                                    in to the disk space or drive where your O.S. resides, because if something
                                    goes wrong and you need to format yOW'system then yOW'data will be lost.
                                    Generally, O.S. is loaded in C: drive, so avoid saving yOW'data in this drive
                                    and save it in other partitions. So that your data is safe, even if something goes
                                    wrong and you need to format your system.
                             Windows has a rich set of utilities you can check the details of these in yOW'Windows
                             XP. In this section we have given you few additional. utilities for File. Management,
                             Productivity, Security and System maintenance.
                             File Management:     WinRAR is a powerful archive manager. It can backup your data
                             and reduce the size of email attachments, decompress RAR, ZIP and other files
                             downloaded from Internet and create new archives in RAR and ZIP file format.
                             FlashGet is a leading download manager and has the highest amount of users on the
                             internet. It uses MHT (Multi-server Hyper-threading Transportation) technique,
                             supports various protocols and has excellent document management features.
                             FlashGet is a freeware without any adware or spyware.
20
                                                                                                c
Productivity:Paint. NET is free image and photo editing software for computers that                          Install Your Operating System
                                                                                                                      (WINDOWS/LINUX)
run Windows. ThumbsPlus is an image manager that also includes a database system
for image organization and cataloging
Security: Windows has various security tools for FircwaJl, Antivirus and
Antispyware.
System Maintenance: The Symantec's Norton Save & ~store, which can create
         .
full system and file backups to another drive, either in the background or on demand .
Disk Director Suite: It can reorganize a PC for better performance and data
protection. It is the easiest and most convenient partition manager and hard disk
toolkit. It brings together the most popular disk management functions, partition
recovery tools, and boot disk manager.
Lab Exercises 1
2)   Does the increase in the capacity of hard disk from its minimum requirement to
     say some upper limit affects the system's performance?
3)   Does question 2 above means that attaching a hard disk having capacity in
     terabytes to a system having 64MB RAM and 233MHz processor will not affect
     the system performance?
4)   If some network application is to be developed then which O.S. you would prefer
     to work with and why?
........... ~ .
5)   Do we have any operating system which makes our Mobile phones to work and
     run the applications on it , or some different mechanism is there?
     .................................................................................................
                                                                                                                                        21
 Practicals - Lab Manual-I   6)    "Once the    our   of an Windows O.S. is loaded, then also we can work with its
                                   CLl ", if you agree then give the steps involved to switch over from OUI to CLl
                                   in say, WindowsXP?
                             7) After completing the O.S. Loading process, what have you realized, as to where
                                   does our O.S. resides in to the computer system?
                             8)    In which drive should we save our data, and why? What problem may occur if
                                   we try to save data in the partition or memory segment where our O.S. is residing
                                   or loaded?
                             The first public release of Red Hat Linux (version 1.0) is dated 1994, after that there
                             are many versions of Red Hat Linux 1.1,2.0,2.1,       3.0.3, 4.0, 4.1, 4.2,5.0,5.1,    5.2,
                             6.0,6.1,6.2,7,7.1,7.2,       7.3,8.0and   9 over a period till the year 2003. After that
                             Redhat and Fedora project were merged.
Fedora
                             Fedora is a Linux-based operating ystem that showcases the latest in free and open
                             source software. Fedora is always free for anyone to use, modify, and distribute. It is
                             built by people across the globe who work together as a community: the Fedora
                             Project. The Fedora Project is open and anyone is welcome to join.
22
Fedora Core 1 was the first version of Fedora and was released inthe year 2003.               Install Your Operating System
                                                                                                       (WINDqWS/LINUX)
Since, then different versions of Fedora such as Fedora Core 2, 3, 4,5 and 6 were
released till 2006. Then new versions such as Fedora 7,8',9 and 10 are also released
till 2008. The installation procedure for Fedora 9 is explained in this unit.
There is no need to spend time and huge amount money to obtain licenses since Linux
and much of its software come with the GNU General Public License. There is no
need to wo,rry about any software that you use in Linux.
Stability
Linux has high stability compared with other operating systems. There is no need to
reboot the Linux system to maintain performance levels rarely. Its freezes up or slow
down. It has a continuous up-times of hundreds of days or more.
Performance
Linux provides high performance on various networks. It has the ability to handle
large numbers of users simultaneously.
Networking
Linux provides a strong support for network functionality; client and server systems
can be easily set up on any computer running Linux. It can perform tasks like network
backup more faster than other operating systems,
Flexibility
Linux is very flexible. Linux can be used for high performance server applications,
desktop applications, and embedded systems. You can install only the needed
components for a particular use. You can also restrict the use of specific computers.
Compatibility
It runs all common Unix software packages and can process all common file formats.
                                                                                                                        23
Practicals - Lab Manual-l     Better use of Hard Disk
Linux uses its resources well enough even when the hard disk is almost full.
Multitasking
Linux is a multitasking operating system. It can handle n~any things at the same time.
Open Source
                            ~ Linux is an Open source operating systems. You can easily get the source code for
                              Linux and edit it to develop your personal operating system.
"
                             Note: For proper installation 'keep the size of swap space or swap area, approximately
                                   greater than or equal to the double of the size of the RAM of your system, the
                                                                                                                  ",
                                   reason behind requires more in depth understanding of the concepts ofO.S.,
                                   which can't be discussed at this level. However, the concern is related to the
                                   paging and segmentation management when swaps in the memory segments
                                   are ,performed.
                             The following step by step procedure helps the stud~nt to install Fedora 9, Similar to
                             Windows XP installation procedure, Step by Step figures are also shown for more
                             clarity.
24
        Then you will get the following Fedora welcome screen. Select "Install or   Install Your Operating System
                                                                                             (WINDOWS/LlNUX)
        upgrade an existing system" and press enter key. Wait for a while for the
        system to load ...
Then Anaconda (the Fedora installer) will load and you'll see the welcome screen.
Click the "Next" button
                  s                                      1 •
         fedora                         .                I,            \
                                                                                                               25
 Practicals - Lab Manual-I   3)        Choose your language
                                                      11iittoj_•••.Utl"""Ib~ ••••••,..,;"
                                               !lIl1lt4ttftt)Dt\~ofr.$1
~I
                                        C"ftm'tIr'~a:tr'}
                                        '~t:~ll~jn\lll.:.:::t
                                       ~1r~rNt1tJJ'Nt~1
.&10«
                             A warning message about the hard drive partitions may appear. If so, click on "Yes"
                             button
.r
• J W-«u-nlnD
                                       'lIWia iMm
                                       _      ••••••
                                                  t\"'lio ••OI
                                       ~SiWml""
                                            an \\;mJIUfl I~UW:)
                                       11,>,"1
                                             Ih           I
                                       Ir.mWITWa ••••••• ')
                                       'm
                                  b)         If you have an IPv4 address, make sure it's enabled. If you have an IPv6
                                             address, make sure it's enabled too (if yeu don't have an IPv6 address,
                                             uncheck the 'Enable IPv6 support' option).
                                  c)         Check the "Manual configuration" option and enter your IP address and
                                             the Netmask, Gateway, primary and secondary DNS as shown in the
                                             following screens
                                            (ask your provider if you don't know them). Do the same for the IPv6
                                            address (if you have one). Click on "OK" button, once you've finished.
26
                                                                           ~nstall Your Operating System
                                  .                       -~----                   (WINDOWS/LINUX)
f I''1t it" #" f
                     -   --   .                           -
             ,
                                          -              ----   -- -
ff;d '.)r,..,""                                                        1
                     .                -       - - -- -   --
fcrf'~(#(~   .• ;,
                                                                                                      27
Practicals - Lab Manual-I    5)     Select your location (Country)
                             Click on "Next" button, once you have done with the network configuration to select
                             your location (country) and time zone.
fedora'
                            Click on "next" button to enter the root (System Administrator) password. The
                            longer, the better (WRITE IT SOMEWHERE OR MEMORIZE IT)
                            Here comes the partitioning part! If you have an empty hard drive, all you have to do
                            is click "Next" button (make sure the "Remove all partitions on selected drives and
                            create default layout" option is selected), If you don't have an empty hard drive and
                            you still want to install Fedora 9 on your machine, then make sure you select the "Use
                            free space on the selected drives and create default layout" option (Note: 10 GB
                            minimum of free space is r~CJuired).Click on "Next" button.
28
                                                                                                                                  Install Your Operating System
                                                                                                                                           (WINDOWS/LlI\lUX)
Note: Encryption is supported in this release and you can enable it with a single
        mouse click, by checking the "Encrypt system" option!
                                    I                                          "       .       ",       .   _.   -       .,
                   ("<;l(.,,   I)                                                                   "
                                                                           -   -           -   -    -       --   -
                                                                                                            ",06_-
                          . ~1'iI _""~"'ltj1il""'HI'4_1I6"
                  .'     .If/!."I'\>t ••••••
- ,~*,,,"", I
           I,;;uUI •• '                                                                                                       ,
                - --                           --       -   -   --   - -   - -     -   ----                 -        -
~ _ 'n;!.
            "'"
                           "Y~wr-
                               ~"              ..   '
                                                                                                                                                             29
 Practicals - Lab Manual-l   The hard disk will be formatted and the partitions will be created
                                     hl:eff           =,qrt •.. CNirl;'$par--:i           ••• Qfy'~""h41'd time,              I:!y de:fa\Jlt,    OpOlt llo
                                    r         lOo;.tU!J;@fS,         "~'[;~I~;t           ""f\I)I~s~tOIJ$-A         tlll~i).(('~~t~        ,/()t{ii'.:l'f'JII
t')-Ot' ly'~,,""'"
fe dor o"
                                        The-d!!~ ".It Ins.t •. la                o~r1!:-GOI'b f1dud~ 4 '(I'ot of ,of:"'Jaf~ ~u::t!U~ 'for 'G eral
                                        ktt mQt \A,,,g-:. Wh.:                  Q,ddttionwt t~ks would yc,,",like your ~y~:tz.m   t"'Oinclude %l1J~~.;rtf~,,.t
fedora' I
                                                                                                                                                                ..
                                              Appllc.atloos                                                                                           lOE IK Desktop Envlrorwnentl
                                              Dv¥tlllup •••••• l                                                                                     .1          CIOW   _gfl"S
                                              Serve,..                                                                                                ltFCE
                                              8              syn          RI
'-"""".\1_'"
                                                                                                                                                                             •       .• .
                                                                                                                                                                                      "....,
30
                                                                                                                                                                                             Install Your Operating System
                                                                                                                                                                                                      (WINDOWS/LINUX)
t",doroJ
          'M~""~"',,ulr         tn~tall"'l       0" F\I!.dM'.h1£lud"!'!t;,      a is'#!.o't fOfwJal'+' ""., Icalllll!!! tar 'l@~I'al
          Int011QI; USolOO, iJ','hat: aUditiOn.)' taskS 'N(luICl 'Yllt.;;U~t' yOlJr                SY-;CI:1l1 to lntlutic suppor:                              f~   r
';"~.I.
          'mu:.- ~rt .•""",r 'CUltOfTlt:.               t:h•.•. .ofl:"· •.•   $."cclon         l"C'",   Of'.~.I·        r\~~.1I .n.a      cl.,.    1.0f":YloI'-"
          N!4r ~<::t·f":-nt.~p4Gllon   .
          • Cv"::om              "l~t~r             .G.1)~tl)mi;~now                                          tZ>
9) Format the partitions and copy the packages into your hard disk'
Click on "Next" button and everything will be done automatically and watch how the
partitions are formatted and the software packages are copied to your hard drive. The
installation process will take about 8-10 minutes (depending on your computer specs
and the selected packages).
fedora.' ±
                                                                                                                                                                                                                       31
Practicals - Lab Manual-l
                            When the installation is over, you will get a "Congratulations, the installation is
                            complete" screen. Click on "Reboot" button and your computer will automatically
                            restart.
'.'
                            Note: Remove the DVD from your optical drive. Now Fedora 9 Linux operating
                                       system will start for the first time.
32
                                                                                  Install Your Operating System
                                                                                           (WINDOWS/LINUX)
And, before you reach the Fedora desktop, you must do a one-time general system
configuration. Now log in to your new Linux operating system.
                                                                                                             33
     Practicals - Lab Manual-I    1.3.3 Linux Utilities and Basic Commands
                                 The following arc some of the basic commands used in the CLI ~inux operating
                                 system, however GUI option is always available, as in the case of Windows:
                                               awk reads the input from given file (or from stdin also) one line at a
                                               time, then each line is compared with pattern. If pattern is match for
                                               each lin e then given' action is taken. Pattern can be regular
                                               expres sions,
34
           Following is the summery of common awk metacharacters:                               Install Your Operating System
                                                                                                         (W[NDOWS/LINUX)
Metacharacter Meaning
                        []                 ]      List
                     {}                           Match range of instance
               Permissions
               u - User who owns the file.                  g - Group that owns the file.
               a - Other.                                   a - All.
               r - Read the file.                           w - Write or edit the file.
              x - Execute or run the file as .aprogram.
              Numeric Permissions:
              CHMOD can also to attributed by using Numeric Pennissions:
                                             -R recursively change file user and group IDs. For each file operand
                                             that names a directory, chown shall change the user ID (and group ID,
                                             if specified) of the directory and all files in the file hierarchy below it.
                                             Example               $cp abc. txt pqr. txt [copy the file abc. txt as pqr.txt]
                                                                   $cp *.txt /etc/     [copy all files with .txt extension
                                                                   into /etc directory]
                                                                   $cp a* /etc/      [copy all files starts with the letter 'a'
                                                                   into /etc directory]
                            g)   date        An essential command to set the date and time. Also a useful way to
                                             output current information when working in a script file.
Example $datc
                                             With no arguments, 'df reports the space used and available on all
                                             currently mounted filesystems (of all types). Otherwise, "df reports
                                            on the filesystcm containing each argumentjile.
Normally the disk space is printed in units of 1024 bytes, but this can be overridden.
36
i)   pwd    To know the current working directory                                              Install Your Operating System
                                                                                                        (WINDOWS/LINUX)
            Syntax              pwd
            Example             $pwd
j) In       The In command makes new, alternate file names for a file by hard
            linking, letting multiple users share one file. The In command creates
           pseudonyms for files which allows them to be accessed by different
           names. These pseudonyms are called links. There are two different
           forms of the command and two different kinds of links that can be
           created.
           In the first form, a new name is created called new yath which is a
           psuedonym for existing path.             In the second form, the last argument is
           taken to be a directory name and all the other arguments are paths to
           existing files. A link for each existing file is created in the specified
           directory with the same filename as the existing files.
           The only way to see that linux is a symbolic link is by using the Is -I
           command (Is -l Iinux). The output of this command will look much
           like this:
           Syntax Is [-a] [-A] [-c] [-d] [-i] [-1] [-L] [n] [-r] [-R] (pathnames]
                                                                                                                       37
Practicals - Lab Manual-l                 -a:   shows all files, even files that are hidden (these files begin with
                                                a dot.)
                                          -A: list all files including the hidden files. However, does not display
                                                the working directory (.) or the parent directory (..).
                                          -c:   use time oflast modification of the i-node (file created, mode
                                                changed, and so forth) for sorting (-t) or printing (-I or on).
                                          -d: if an argument is a directory it only lists its name not its contents.
                                          -i:   for each file, print the i-node number in the first column of the
                                                report.
                                          -I:   shows you huge amounts of information (permissions, owners,
                                                size, and when last modified.)
                                          -L:   if an argument is a symbolic link, list the file or directory the link
                                                references rather than the link itself.
                                          -n: The same as -1, except that the owner's UID and group's GID
                                                numbers are printed, rather than the associated character strings.
                                          -r: reverses the order of how the tiles are displayed.
                                          -R: includes the contents of subdirectories.
                            I) man        Short for "manual," man displays information about commands and a
                                          keyword search mechanism for needed commands.
                                          Example #passwd
                                                     #passwd --cl xyz         [ to delete the password of the
                                                                              account 'xyz']
                            n) Shutdown   Shutdown is a command that turns off the computer and can be                   ,.
                                          combined with variables such as -h for halt or -r for reboot.
                                          Syntax            Shutdown [-h][-r]
Example #shutdown
Syntax top
Example $top
38
  p) vrnstat      The vmstat command is used to get a snapshot of everything in a          Install Your Operating System
                                                                                                    (WINDOWS/LINUX)
                 . system, helping admins determine whether the bottleneck is CPU,
                  memory or I/O. Run this command to get virtual memory statistics.
                  vmstat reports information ~bout processes, memory, paging, block
                  10, traps, and cpu activity.
Example $vmstat
Lab Exercises 2
1.4 SUMMARY
 The installation process of two well known O.S. i.e., Windows XP and Fedora,
 con~ibuting to Proprietary and Open source community are discussed. Apart from the
 peculiar technicalities and tasks one has to perform while installing the O.S. are also
 discussed. In the Fedora part the exploration of some useful CLl commands is also
 performed, however to work with Fedora professionally you need to refer to the
                                                                                                                   39
 Practicals - Lab Manual-l   Further readings section given at the end of this unit & may need to explore the
                             internet for further help. Apart from this Different versions/releases of both Windows
                             and Linux are clearly specified from first release to till latest release of each. Various
                             features of both the operating systems are also explained. At last the purpose of this
                             unit is to let you perform the actual installation procedures of Windows (Windows
                             XP) and Linux (Fedora 9).
1.5 SOLUTIONS/ANSWERS
Lab Exercises 1
                             2)    No, the performance is not affected, if the size of the hard disk is not that high.
                                   But if processor is slow i.e. ofless frequency and other parameters and RAM is
                                   Less then by attaching very high capacity hard disk (directly i.e. not in master
                                   slave manner) will make the system slow.
                             3)    No, the performance will be severely affected. For arguments, refer to answer
                                   given above.
                             5)    Yes, Symbian is one of the well known O.S. apart from this Windows Mobile
                                   edition is also there and many other are in pipeline , but these two are quite
                                   famous.
                             6)    Yes, even if the GUI of an Windows O.S. is loaded, then also we can work with
                                   its CLl. You can switch yourself from one mode to other i.e. GUI to Non GUI
                                   (i.e.CLI), depending on your choice. Below the installation process of Windows
                                   XP is given, once it is loaded, then you can click your mouse on Start menu, go
                                   to Run, click in it a window will pop up, in the box simply write cmd and press
                                   enter, you will see the DOS prompt as shown below which is the CLl of the GUI
                                   i.e. Windows XP loaded by you.
                             7)    The O.S. itself resides in the Hard Disk ofthe system and that's why the
                                   minimum system requirement takes care of hard disk specifications too.
                             8)    Whenever you are working with your computer system, do not save. your data in
                                   to the disk space or drive where your O.S. resides, because if something goes
                                   wrong and you need to format your system then your data will also be lost.
                                   Generally O.S. is loaded in C: drive, so avoid saving your data in this drive and
                                   save it in other partitions. So that yourdata is safe, even if some thing goes'
                                   wrong and you need to format your system.
40
Lab Exercises 2                                                                              Install Your Operating System
                                                                                                      (WINDOWS/LINUX)
                                              /
2)           The following are some basic commands of the Linux operating system
             alias, Is, In, find, awk, passwd, shutdown, vstat, top, cp and cd
             Microsoft released in parallel the network operating system for servers for
     "       various network services also. Windows NT 3.1 is the first release of
             Microsoft's Windows NT line of server in the year 1993. Since then,     ,
             Microsoft released various versions (Windows NT 4.0, Windows 2000,
             Windows server 2003 and Windows server 2008) over a period till 2008.
4) Exercise yourself
5) Exercise yourself
6)           For proper installation keep the size of swap space or swap area,
             approximately greater than or equal to the double of the size of the RAM of
             your system, the reason behind requires more in depth understanding of the
             concepts ofO.S. , which can't be discussed at this level. However the concern
             is related to the paging and segmentation management when swaps in the
             memory segments are performed.
• http://www.microsoft.com/windowsxp/using/setup/winxp/instal1.mspx
• http://www.1inux.org
         •   http://www.fedoraproject.org
         •   http://www.redhat.comldocs/manuals/~inux
41