0
Govt. Engg . College Jhalawar<br />Summer<br />TrainingPresentation<br />
Name			Kuldeep Gautam<br />Branch			Computer Science and Engineering<br />College Id.		2007UCS029<br />Roll No.		07EEJCS02...
Software Installation<br />In Linux Software is install two types:<br />First:<br />rpm Command:<br />		Rat hat Packet Man...
Advantages of RPM packages:<br /><ul><li>You can install a new package easily with one operation
You can uninstall a package just as easily
the package can contain information about what else it needs to  work 	properly
The RPM system includes a database with lots of  Information about 	how the files  should be installed, their size, owner,...
rpm -qd httpd <br />		list all documentation files in the httpd package<br />rpm -qc httpd <br />		list all configuration ...
rpm’s problem:<br />rpm tool requires dependency resolution<br /><ul><li>program x depends on library y
library y must be in place
if library y isn’t there, you must obtain an install it separately
finding library y can be hard
library y has its own dependencies</li></li></ul><li>Second:<br /><ul><li>The Yellow dog Updater, Modified (YUM) is an ope...
<ul><li>Create repo of Software pakages</li></ul>			createrepo	-v	pakage name<br /><ul><li>Create a repo file in yum.repos...
Do entry in repo file by following method:</li></ul>			[software name]<br />			baseurl=file:///pakage path<br />			gpgchec...
<ul><li>Clean up yum </li></ul>			yum	clean	all<br /><ul><li>Install the softwares</li></ul>			yum	install	soft ware_name<...
D.N.S. Server<br />Domain Name System:<br /><ul><li>DNS is a network service that enables clients to 	resolve names to IP ...
Allows machines to be logically grouped by domain 	names
Provides email routing information</li></li></ul><li>D.N.S. Hierarchy:<br />
<ul><li>A DNS server maintains the name to IP address mapping of the domain 	for which it is the name server.
The DNS server for a domain is registered with the domain registrar 	and the entry is maintained by the Internet Root-Serv...
The root servers refer to the DNS server for that domain </li></ul>	(in case the domain is a top level domain) or the 	Cou...
Port No.:			53<br />Soft wares :			bind<br />				bind-utils<br />				caching-nameserver<br />Configuration steps of D.N.S....
bind-utils is already installed</li></li></ul><li><ul><li>yum install bind
yum install caching-nameserver</li></ul>Second:<br /><ul><li>Open   the   configuration   file   /etc/named.conf   and   d...
Third:<br /><ul><li>Go to /var/named
command        cd  /var/named
Copy the localhost.zone file into the forward file
command        cp    localhost.zone    forward
Copy the named.local file into the reverse file
command        cp    named.local        reverse</li></li></ul><li><ul><li>Change group of both forward and reverse file:
 chgrp    named    forward
chgrp     named    reverse
Open the forward , reverse and resolve.conf  files   and fills 	the following entry</li></li></ul><li>
Fourth:<br />	Starts the following services<br />	Comm.		Service	named	start<br />	Permanently  server  on Comm.	<br />			...
Lookup  of 	www.gecj.ac.in<br />Reverse   lookup   of   172.24.0.254<br />
Look up  of kuldeep.gecj.ac.in<br />Reverse  lookup  of  172.24.0.254<br />
Upcoming SlideShare
Loading in...5
×

Linux Presentation

1,081

Published on

In this slide i present hoe\\w to make your web hosting server on your Linux server

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,081
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
33
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Linux Presentation"

  1. 1. Govt. Engg . College Jhalawar<br />Summer<br />TrainingPresentation<br />
  2. 2. Name Kuldeep Gautam<br />Branch Computer Science and Engineering<br />College Id. 2007UCS029<br />Roll No. 07EEJCS028<br />Training Company<br />Grras Linux Training and Development Center <br />Jaipur<br />
  3. 3. Software Installation<br />In Linux Software is install two types:<br />First:<br />rpm Command:<br /> Rat hat Packet Manager<br /><ul><li>What is an RPM Package?</li></li></ul><li><ul><li>It’s a piece of software, all put in one RPM file.</li></ul> • For example, I am using the. . . let’s see. . .<br /><ul><li>$ rpm -q evince -</li></ul>evince-0.5.1-3. . . software package to display these notes.<br /> • The name of the package is evince.<br /> • The version of the package is 0.5.1<br /> • The release is 3<br />
  4. 4. Advantages of RPM packages:<br /><ul><li>You can install a new package easily with one operation
  5. 5. You can uninstall a package just as easily
  6. 6. the package can contain information about what else it needs to work properly
  7. 7. The RPM system includes a database with lots of Information about how the files should be installed, their size, owner, type,. . .</li></li></ul><li>rpm Commands: <br />rpm -qa | less <br /> list all installed software packages<br />rpm -q httpd <br /> show the version of the httpd package, if it is installed<br />rpm -qa | grep httpd <br /> show all installed packages that have httpd in their name<br />rpm -ql httpd <br /> list all files in the httpd package<br />
  8. 8. rpm -qd httpd <br /> list all documentation files in the httpd package<br />rpm -qc httpd <br /> list all configuration files in the httpd package<br />rpm -qi httpd <br /> display information about the package<br />rpm -V httpd <br /> verify that the httpd package is correctly installed<br />rpm -qf /etc/passwd <br /> determine which package the /etc/passwd file belongs to<br />
  9. 9. rpm’s problem:<br />rpm tool requires dependency resolution<br /><ul><li>program x depends on library y
  10. 10. library y must be in place
  11. 11. if library y isn’t there, you must obtain an install it separately
  12. 12. finding library y can be hard
  13. 13. library y has its own dependencies</li></li></ul><li>Second:<br /><ul><li>The Yellow dog Updater, Modified (YUM) is an open-source command – line package - management utility for </li></ul>RPM-compatible Linux operating systems <br /><ul><li>Released under the GNU General Public License It was developed by Seth Vidal and a group of volunteer programmers.</li></li></ul><li><ul><li>Yum repositories</li></ul>A separate tool, createrepo, sets up yum repositories, generating the necessary XMLmetadata <br />Yum Steps:<br /><ul><li>Install createrepo by rpm command</li></ul> rpm -ivh createrepo<br />
  14. 14. <ul><li>Create repo of Software pakages</li></ul> createrepo -v pakage name<br /><ul><li>Create a repo file in yum.reposd with extension .repo
  15. 15. Do entry in repo file by following method:</li></ul> [software name]<br /> baseurl=file:///pakage path<br /> gpgcheck=0<br />
  16. 16. <ul><li>Clean up yum </li></ul> yum clean all<br /><ul><li>Install the softwares</li></ul> yum install soft ware_name<br /><ul><li>Uninstall soft wares</li></ul> yum remove soft ware_name<br />
  17. 17. D.N.S. Server<br />Domain Name System:<br /><ul><li>DNS is a network service that enables clients to resolve names to IP address and vice-versa.
  18. 18. Allows machines to be logically grouped by domain names
  19. 19. Provides email routing information</li></li></ul><li>D.N.S. Hierarchy:<br />
  20. 20. <ul><li>A DNS server maintains the name to IP address mapping of the domain for which it is the name server.
  21. 21. The DNS server for a domain is registered with the domain registrar and the entry is maintained by the Internet Root-Servers or Country Level Root-Servers.</li></li></ul><li><ul><li>Whenever a server is queried, if doesn’t have the answer, the root servers are contacted.
  22. 22. The root servers refer to the DNS server for that domain </li></ul> (in case the domain is a top level domain) or the Country Root Server (in case the domain is country level domain).<br />
  23. 23.
  24. 24. Port No.: 53<br />Soft wares : bind<br /> bind-utils<br /> caching-nameserver<br />Configuration steps of D.N.S.:<br />First: <br /><ul><li>Install the soft wares which is used in D.N.S.
  25. 25. bind-utils is already installed</li></li></ul><li><ul><li>yum install bind
  26. 26. yum install caching-nameserver</li></ul>Second:<br /><ul><li>Open the configuration file /etc/named.conf and do the entry following:</li></li></ul><li>
  27. 27. Third:<br /><ul><li>Go to /var/named
  28. 28. command cd /var/named
  29. 29. Copy the localhost.zone file into the forward file
  30. 30. command cp localhost.zone forward
  31. 31. Copy the named.local file into the reverse file
  32. 32. command cp named.local reverse</li></li></ul><li><ul><li>Change group of both forward and reverse file:
  33. 33. chgrp named forward
  34. 34. chgrp named reverse
  35. 35. Open the forward , reverse and resolve.conf files and fills the following entry</li></li></ul><li>
  36. 36.
  37. 37.
  38. 38. Fourth:<br /> Starts the following services<br /> Comm. Service named start<br /> Permanently server on Comm. <br /> chkconfig named on <br />Fifth:<br /> Lookup the server:<br /> comm. nslookup address (forward)<br /> nslookup ip address (reverse)<br />
  39. 39. Lookup of www.gecj.ac.in<br />Reverse lookup of 172.24.0.254<br />
  40. 40. Look up of kuldeep.gecj.ac.in<br />Reverse lookup of 172.24.0.254<br />
  41. 41. WebServer(ApacheServer)<br /><ul><li>The Apache HTTP Server, commonly referred to as Apache Web Server software notable for playing a key role in the initial growth of the World Wide web
  42. 42. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation</li></li></ul><li><ul><li>Apache supports a variety of features, many implemented as compiled modules which extend the core functionality. These can range from server-side programming language support to authentication schemes. Some common language interfaces support Perl, Python , Tcl and PHP
  43. 43. Virtual hosting allows one Apache installation to serve many different actual websites. For example, one machine with one Apache installation could simultaneously serve </li></ul> www.example.com, www.test.com, <br /> test47.test-server.test.com, etc. <br />
  44. 44.
  45. 45. Port No.: 80<br />Soft wares : httpd<br /> httpd-manual<br /> httpd-devel<br />Configuration File: /etc/httpd/conf/httpd.conf<br />Configuration steps of Web Server:<br /> First: <br /><ul><li>Install the soft wares which is used in Web Server
  46. 46. Comm. yum install httpd*</li></li></ul><li>Second:<br /><ul><li>Open the configuration file</li></ul> /etc/httpd/conf/httpd.conf and do the entry following:<br />
  47. 47.
  48. 48. <ul><li>Copy last seven lines and change the following:
  49. 49. Set document root where your index page is save
  50. 50. Set server name which open this page
  51. 51. Set Document Root where your Web pages are saved
  52. 52. Set Server name which you resolve by D.N.S. Server</li></li></ul><li>
  53. 53. Third:<br /><ul><li>Start the service</li></ul> Comm. Service httpd start<br /> chkconfig httpd on<br />Fourth:<br /><ul><li>Open the web pages in the web browser or by command</li></ul> Comm. elinks www.gecj.ac.in<br /> elinks kuldeep.gecj.ac.in<br />
  54. 54. www.gecj.ac.in<br />
  55. 55.
  56. 56. kuldeep.gecj.ac.in<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×