Beruflich Dokumente
Kultur Dokumente
Linux
1.1 Introduction to Linux
Linux is a Unix-like and mostly POSIX-compliant computer operating system
assembled under the model of free and
open source software development and
distribution. The defining component
of
Linux is the Linux kernel, an operating
system kernel first released on 5
October 1991 by Linux Torvalds.
Linux was originally developed as a
free operating system for Intel x86based personal computers. It has since
been ported to more computer
hardware platforms than any other
operating system.] It is a leading
operating system on servers and other
big iron systems such as mainframe computers and supercomputers. As of June
2013, more than 95% of the world's 500 fastest supercomputers run some variant
of Linux, including all the 44 fastest.
Linux also runs on embedded systems, which are devices whose operating
system is typically built into the firmware and is highly tailored to the system;
this includes mobile phones, tablet computers, network routers, facility
automation controls, televisions and video game consoles. Android, which is a
widely used operating system for mobile devices, is built on top of the Linux
kernel.
1.2 History
The history of Linux began with UNIX in 1969. UNIX was created at Bell Labs
with the goals: Simplicity, Recyclable code, written in C as opposed to assembly.
Development started in 1991. Linux Torvalds wanted to create a free
implementation of UNIX. By 1993 there were 12000 Linux users. Today Linux
rivals UNIX in stability and scalability.
1.4 Features
Multiuser: several users on the same machine at the same time (and no twouser licenses!).
Has memory protection between processes, so that one program can't bring the
whole system down.
Demand loads executable: Linux only reads from disk those parts of a
program that are actually used.
A unified memory pool for user programs and disk cache, so that all free
memory can be used for caching, and the cache can be reduced when running
large programs.
Dynamically linked shared libraries (DLLs) and static libraries too, of course.
Does core dumps for post-mortem analysis, allowing the use of a debugger on
a program not only while it is running but also after it has crashed.
Mostly compatible with POSIX, System V, and BSD at the source level.
All source code is available, including the whole kernel and all drivers, the
development tools and all user programs; also, all of it is freely distributable.
Plenty of commercial programs are being provided for Linux without source,
but everything that has been free, including the entire base operating system, is
still free.
387-emulation in the kernel so that programs don't need to do their own math
emulation. Every computer running Linux appears to have a math coprocessor.
Of course, if your computer already contains an FPU, it will be used instead of
the emulation, and you can even compile your own kernel with math
emulation removed, for a small memory gain.
Support for many national or customized keyboards, and it is fairly easy to add
new ones dynamically.
Supports several common file systems, including minix, Xenix, and all the
common system V file systems, and has an advanced filesystems of its own,
which offers file systems of up to 4 TB, and names up to 255 characters long.
Appletalk server
Linux
Windows
Development
and
Distribution
GUI
File system
support
Text mode
interface
Price
Security
Threat
detection and
solution
Processors
Examples
Gaming
User
experience
Graphics
performance
Company /
developer
Combined
with
newest
DirectX versions and full
graphics card support the
performance is almost as
good as it can get.
Microsoft
Microsoft Windows is a
series of graphical interface
operating
systems
developed, marketed, and
sold by Microsoft. Microsoft
introduced an operating
environment
named
Windows on November 20,
1985
as
a
graphical
operating system shell for
MS-DOS.
Multilingual
Proprietary
PowerPC: versions 1.0 - NT
4.0; DEC Alpha: versions
1.0 - NT 4.0; MIPS R4000:
versions 1.0 - NT 4.0; IA-32:
versions 1.0 - 8; IA-64:
version XP; x86-64: versions
XP - 8; ARM: version RT;
Gnome or KDE (Depends on Graphical (Windows Aero)
distro)
Basic Terminal (CLI)
MS-DOS
Open Source
Closed / Shared source
Many
Windows Update
Default user
interface
Preceded by
Source model
Update
method
Terminal Multi Terminal Windows
Ubuntu
7
--
Mint
Fedora
Debian
Red Hat
Etc.
Red Hat, Inc. is an American multinational software company providing opensource software products to the enterprise community. Founded in 1993, Red Hat
has its corporate headquarters in Raleigh, North Carolina, with satellite offices
worldwide.
Red Hat has become associated to a large extent with its enterprise operating
system Red Hat Enterprise Linux and with the acquisition of open-source
enterprise middleware vendor JBoss. Red Hat provides operating system
platforms, middleware, applications, management products, and support, training,
and consulting services. Red Hat creates, maintains, and contributes to many free
software projects and has also acquired several proprietary software packages and
released their source code mostly under the GNU GPL while holding copyright
under a single commercial entity and selling user subscriptions. As of June 2013,
Red Hat is the largest corporate contributor to Linux.
2.YUM Server
2.1.What is YUM?
This Directory is made for copying all the packages from installation disk to packages
folder. It is done so that we dont have to mount the CD again and again.
10
Step 2: Mount cd
11
Cp is used to copy one or more files to another location. Here we are copying the
packages form Packages folder to /var/ftp/pub
Note :
1. From second cd too Server content in to our /var/ftp/pub/Packages/ folder as shown
below.
2. Here please take destination folder as /var/ftp/pub so that we can implement FTP
server to share our repository.
3. If you have RHEL5 DVD then execute below command once.
12
13
In this step, we change the directory to /var/ftp/pub/Packages and install the all those
package that are required to run the YUM server and remove the dependency
problem.
14
Now, we create a repository to save the server information that we are going to create.
Note : The directory /etc/yum.repos.d/ contains two .repo files which should be
removed or moved to other directory, so that YUM server will check default .repo file
itself. Q. What if I don't move or remove the default .repo files from /etc/yum.repos.d/
folder? A: Every time when you try to install packages through YUM, your yum will
check all these files for repositories for getting packages which will or will not work
and most probably delay is increased in getting those packages from online servers.
15
16
17
Note: In-order to use yum repository we have to clean the yum meta data, so before
installing any package first time use yum clean all command as shown above.
18
YUM server has been created and its content is shown with yum list all command.
19
3.WEB Server
3.1.What is HTTP and HTTP Server?
The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed,
collaborative, hypermedia information systems. HTTP is the foundation of data
communication for the World Wide Web.
Hypertext is structured text that uses logical links (hyperlinks) between nodes
containing text. HTTP is the protocol to exchange or transfer hypertext.
The Apache HTTP Server commonly referred to as Apache, is a web server
application notable for playing a key role in the initial growth of the World Wide Web.
Originally based on the NCSA HTTPd server, development of Apache began in early
1995 after work on the NCSA code stalled. Apache quickly overtook NCSA HTTPd
as the dominant HTTP server, and has remained the most popular HTTP server in use
since April 1996. In 2009, it became the first web server software to serve more than
100 million websites.
Apache is developed and maintained by an open community of developers under the
auspices of the Apache Software Foundation. Most commonly used on a Unix-like
system, the software is available for a wide variety of operating systems, including
Unix, FreeBSD, Linux, Solaris, Novell NetWare, OS X, Microsoft Windows, OS/2,
TPF, OpenVMS and eComStation. Released under the Apache License, Apache is
open-source software.
3.2. Requirements
YUM server, HTTP rpm.
20
In this step, we have to check whether the rpm packages of http are installed or not.
For checking this we use the command rpm qa | grep http. If the packages are
installed it will show them in the result, if the packages are not installed we install
them with the help of YUM server, using command yum install http* -y.
21
httpd.conf file contains the configuration settings for the Apache server.
Edit the httpd.conf file using your vi editor using the vi command. Once loaded, there
are a number of settings that need to be changed to match our environment.
22
23
http t command is used to check whether there is any syntax error in httpd.conf file
or not.
If there arent any errors in the above mentioned file Syntax OK message will be
displayed.
24
Figure3.5Restartinghttpd service
httpd is restarted whenever we edit repositories related to that service so that they are
updated.
25
26
In this file, we are supposed to write html coding or just a simple message to
be displayed.
Save file and exit.
27
Step 8: Now, edit the host file and enter the IP address of server, host
name and server name after removing anything that was previously
written.
IP address: - 192.168.1.1
Host Name: - ashubh
Server Name: - impulseyouth.com
28
httpd is restarted whenever we edit repositories related to that service so that they are
updated.
29
Step 10: Now open firefox and type your server name in the url bar.
Figure.3.9 Firefox
30
3.4.Indexing on webpage
Step 1: Create a directory in /var/www/html/
This directory is created to save the files that we are going to host on download page.
31
We are using mp3 files as downloading files. Here we are creating some mp3 files
that will be used as downloading files.
32
httpd.conf file contains the configuration settings for the Apache server.
Edit the httpd.conf file using your vi editor using the vi command. Once loaded, there
are a number of settings that need to be changed to match our environment.
33
34
35
To check whether download page is successfully created or not we type the address of
song folder in url bar. If the above page is displayed, it means that we have
successfully created the download page.
36
This directory is created to save the files that we are going to host on download page.
37
We are using mp3 files as downloading files. Here we are creating some mp3 files
that will be used as downloading files.
38
httpd.conf file contains the configuration settings for the Apache server.
Edit the httpd.conf file using your vi editor using the vi command. Once loaded, there
are a number of settings that need to be changed to match our environment.
39
40
Now we create hidden file which contains information about which users will be able
to access the download page.
41
Here we are specifying the information about the site or page that we have created
and its location.
Save and quit the file.
42
httpd.conf file contains the configuration settings for the Apache server.
Edit the httpd.conf file using your vi editor using the vi command. Once loaded, there
are a number of settings that need to be changed to match our environment.
43
Step 8: Add password to existing user for visiting the web page as
follows.
In this step, we are allocating username and password to the download page.
44
Step 9: Open firefox and type the address of song directory in url bar.
45
Step 10: Type user name and password to access the page
46
Step 11: If user name and password is correct you will be redirected to
download page.
47
httpd.conf file contains the configuration settings for the Apache server.
Edit the httpd.conf file using your vi editor using the vi command. Once loaded, there
are a number of settings that need to be changed to match our environment.
48
49
Now, create the /var/www/html/ directory and place an malala1.html file in it.
50
In this file, we are supposed to write html coding or just a simple message to
be displayed.
Save and exit.
51
Step 5: Now, edit the host file using command vi /etc/hosts and enter
the IP address of server, host name and server name.
It is beneficial to trick your workstation into believing that a certain hostname points
to a test or development server instance of that hostname instead of the production
(current live) instance.
In Linux, this is done by modifying the /etc/hosts file on your workstation. Simply
open the file with vi editor and add a line to the file with the IP address of the test
server and the name of the production server.
52
Step 6: Open firefox and type the alias server name in urlbar to reach the
designed page.
53
Conclusion
Linux is basically used as a free operating system. The development of Linux is
one of the most prominent examples of free and open source collaboration. Red
Hat Linux, assembled by the company Red Hat is a popular Linux based
operating system.theHypertext Transfer Protocol (HTTP) is an application
protocol for distributed, collaborative, hypermedia information system which is
developed under the LINUX operating system.A web Browser is a very common
example of http server. The given project shows the steps of how to create an http
server using the Linux operating system.
54
Future Work
The interoperability framework provides a high level context and structure within
which interoperability discussion can occur. It identifies key categories and issues
that need to be addressed. It will not provide reference architecture and a high
level model that identifies the primary systems involved in the future smart grid
along with key boundaries information change and interactions. Such architecture
ad model is needed in the future.
The architecture would be based on foundation that distributed generations,
demand response and transmission\distributed technology will become automated
through the use of model large scale, distributed computing technology.
In order to fully evaluate the expected benefits of the proposed architecture here is
a need to implement this architecture in a real grid environment, which then can
be tested for evaluation of scalability and reliability .the architecture provides a
basis for the implementation of the experimental prototype for future research, and
it could be implemented on a grid implementation in the real environment to
develop a grid enabled application, demonstrate the feasibility of semantic
heterogeneity, and evaluate the implementation of the proposed architecture.
There are many avenues that can be explored on the basis of this study. The
architecture proposed as the potential to widely applicable, but has yet to be
proven for its functional feasibility when implemented in a real environment.
55
Bibliography
http://www.basicconfig.com/linux/http
http://computernetworkingnotes.com/network-administration/how-toconfigure-yum-server-in-rhel6.html
http://rbsrhel.blogspot.in/2013/03/rhel-6-yum-server-and-client.html
http://en.wikipedia.org/wiki/Red_Hat_Linux
http://yourlinuxzone.blogspot.in/2011/12/configure-http-server-on-redhat.html
http://www.ehowstuff.com/how-to-install-http-server-on-rhel-6/
56