<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Jagdeep Singh Malhi</title>
	<atom:link href="http://jagdeepmalhi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jagdeepmalhi.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 04 Jul 2010 10:38:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jagdeepmalhi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Jagdeep Singh Malhi</title>
		<link>http://jagdeepmalhi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jagdeepmalhi.wordpress.com/osd.xml" title="Jagdeep Singh Malhi" />
	<atom:link rel='hub' href='http://jagdeepmalhi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>PHP_MYSQL Tutorial</title>
		<link>http://jagdeepmalhi.wordpress.com/2010/01/22/php_mysql-tutorial/</link>
		<comments>http://jagdeepmalhi.wordpress.com/2010/01/22/php_mysql-tutorial/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 12:18:21 +0000</pubDate>
		<dc:creator>Jagdeep Singh Malhi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jagdeepmalhi.wordpress.com/2010/01/22/php_mysql-tutorial/</guid>
		<description><![CDATA[Please visit this link http://jsmalhi.co.cc/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jagdeepmalhi.wordpress.com&amp;blog=10273442&amp;post=26&amp;subd=jagdeepmalhi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Please visit this link</p>
<p><a href="http://jsmalhi.co.cc/" target="_blank">http://jsmalhi.co.cc/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jagdeepmalhi.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jagdeepmalhi.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jagdeepmalhi.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jagdeepmalhi.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jagdeepmalhi.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jagdeepmalhi.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jagdeepmalhi.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jagdeepmalhi.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jagdeepmalhi.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jagdeepmalhi.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jagdeepmalhi.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jagdeepmalhi.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jagdeepmalhi.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jagdeepmalhi.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jagdeepmalhi.wordpress.com&amp;blog=10273442&amp;post=26&amp;subd=jagdeepmalhi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jagdeepmalhi.wordpress.com/2010/01/22/php_mysql-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0df9c5baeb4a22f7787dd3f91e31026c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jagdeep</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Compile A Linux Kernel &#8211; on ubuntu?</title>
		<link>http://jagdeepmalhi.wordpress.com/2009/11/13/17/</link>
		<comments>http://jagdeepmalhi.wordpress.com/2009/11/13/17/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 19:03:47 +0000</pubDate>
		<dc:creator>Jagdeep Singh Malhi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jagdeepmalhi.wordpress.com/?p=17</guid>
		<description><![CDATA[First I prefer to do all the steps here as the root user. So if you haven&#8217;t already created a root login, you should do so now: #sudo passwd root Afterwards, log in as root: #su Then update : #apt-get update Then we install all needed packages like this: #apt-get install kernel-package libncurses5-dev fakeroot wget [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jagdeepmalhi.wordpress.com&amp;blog=10273442&amp;post=17&amp;subd=jagdeepmalhi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First I prefer to do all the steps here as the root user. So if you haven&#8217;t already created a root login, you should do so now:<br />
#sudo passwd root</p>
<p>Afterwards, log in as root:<br />
#su</p>
<p>Then update :<br />
#apt-get update</p>
<p>Then we install all needed packages like this:</p>
<div>#apt-get install kernel-package libncurses5-dev fakeroot wget bzip2</div>
<h3><strong>Download The Kernel Sources </strong></h3>
<p>Next we download our desired kernel to /usr/src. Go to <a href="http://www.kernel.org/" target="_blank">www.kernel.org</a> and select the kernel you want to install, e.g. linux-2.6.18.1.tar.bz2 (you can find all 2.6 kernels here: <a href="http://www.kernel.org/pub/linux/kernel/v2.6/" target="_blank">http://www.kernel.org/pub/linux/kernel/v2.6/</a>). Then you can download it to /usr/src like this:</p>
<p>#cd /usr/src<br />
#wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.6tar.bz2</p>
<h3>Then we unpack the kernel sources:</h3>
<p>#tar xjf linux-2.6.31.6.tar.bz2<br />
#ln -s linux-2.6.31.6 linux<br />
#cd /usr/src/linux</p>
<h3>Configure The Kernel</h3>
<p>It&#8217;s a good idea to use the configuration of your current working kernel as a basis for your new kernel. Therefore we copy the existing configuration to /usr/src/linux:</p>
<p>#cp /boot/config-`uname -r` ./.config</p>
<p>Then we run</p>
<div>#make menuconfig</div>
<p>which brings up the kernel configuration menu. Go to Load an Alternate Configuration File and choose .config (which contains the configuration of your current working kernel) as the configuration file:﻿</p>
<p><img class="aligncenter size-full wp-image-20" title="1" src="http://jagdeepmalhi.files.wordpress.com/2009/11/11.png?w=570" alt="1"   /><img class="aligncenter size-full wp-image-21" title="2" src="http://jagdeepmalhi.files.wordpress.com/2009/11/21.png?w=570" alt="2"   /></p>
<p>hen browse through the kernel configuration menu and make your choices. When you are finished and select Exit, answer the following question (Do you wish to save your new kernel configuration?) with Yes:</p>
<p><img class="aligncenter size-full wp-image-22" title="3" src="http://jagdeepmalhi.files.wordpress.com/2009/11/3.png?w=570" alt="3"   /></p>
<h3>Build The Kernel</h3>
<p>To build the kernel, execute these two commands:</p>
<div>#make-kpkg clean<br />
#fakeroot make-kpkg &#8211;initrd &#8211;append-to-version=-custom kernel_image kernel_headers</div>
<p>Now be patient, the kernel compilation can take some hours, depending on your kernel configuration and your processor speed.</p>
<h3>Install The New Kernel</h3>
<p>After the successful kernel build, you can find two .deb packages in the /usr/src directory.</p>
<div>#cd /usr/src<br />
#ls -l</div>
<p>On my test system they were called linux-image-2.6.31.6-custom_2.6.31.6-custom-10.00.Custom_i386.deb (which contains the actual kernel) and linux-headers-2.6.31.6-custom_2.6.31.6-custom-10.00.Custom_i386.deb (which contains files needed if you want to compile additional kernel modules later on). I install them like this:</p>
<div>#dpkg -i linux-image-2.6.31.6-custom_2.6.31.6-custom-10.00.Custom_i386.deb<br />
#dpkg -i linux-headers-2.6.31.6-custom_2.6.31.6-custom-10.00.Custom_i386.deb</div>
<p>That&#8217;s it. You can check /boot/grub/menu.lst now, you should find two stanzas for your new kernel there:</p>
<div>#vi /boot/grub/menu.lst</div>
<div>The stanzas that were added on my test system see on this file.</div>
<p>Now reboot the system:</p>
<div>#shutdown -r now</div>
<p>If everything goes well, it should come up with the new kernel. You can check if it&#8217;s really using your new kernel by running</p>
<div>#uname -r</div>
<p>This should display something like</p>
<div>2.6.31.6-custom</div>
<p>If the system doesn&#8217;t start, restart it, and when you see this:</p>
<p><img class="aligncenter size-full wp-image-23" title="4" src="http://jagdeepmalhi.files.wordpress.com/2009/11/4.png?w=570" alt="4"   /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jagdeepmalhi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jagdeepmalhi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jagdeepmalhi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jagdeepmalhi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jagdeepmalhi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jagdeepmalhi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jagdeepmalhi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jagdeepmalhi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jagdeepmalhi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jagdeepmalhi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jagdeepmalhi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jagdeepmalhi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jagdeepmalhi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jagdeepmalhi.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jagdeepmalhi.wordpress.com&amp;blog=10273442&amp;post=17&amp;subd=jagdeepmalhi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jagdeepmalhi.wordpress.com/2009/11/13/17/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0df9c5baeb4a22f7787dd3f91e31026c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jagdeep</media:title>
		</media:content>

		<media:content url="http://jagdeepmalhi.files.wordpress.com/2009/11/11.png" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://jagdeepmalhi.files.wordpress.com/2009/11/21.png" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://jagdeepmalhi.files.wordpress.com/2009/11/3.png" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://jagdeepmalhi.files.wordpress.com/2009/11/4.png" medium="image">
			<media:title type="html">4</media:title>
		</media:content>
	</item>
		<item>
		<title>Porject Report</title>
		<link>http://jagdeepmalhi.wordpress.com/2009/11/07/porject-report/</link>
		<comments>http://jagdeepmalhi.wordpress.com/2009/11/07/porject-report/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 16:29:42 +0000</pubDate>
		<dc:creator>Jagdeep Singh Malhi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jagdeepmalhi.wordpress.com/?p=5</guid>
		<description><![CDATA[FILE SERVER CONFIGURATION ON LINUX In computing, a file server is a computer attached to a network that has the primary purpose of providing a location for the shared storage of computer files (such as documents, sound files, photographs, movies, images, databases, etc.) that can be accessed by the workstations that are attached to the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jagdeepmalhi.wordpress.com&amp;blog=10273442&amp;post=5&amp;subd=jagdeepmalhi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H3 { margin-bottom: 0.21cm } 		H3.western { font-family: "Liberation Sans", "Arial", sans-serif } 		H3.cjk { font-family: "DejaVu Sans", sans-serif } 		H3.ctl { font-family: "DejaVu Sans", sans-serif } --></p>
<h3><span style="color:#4c1900;"> </span><span style="color:#4c1900;"><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em><span style="text-decoration:underline;">FILE SERVER CONFIGURATION ON LINUX </span></em></span></span></span></h3>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">In computing, a </span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong>file server</strong></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> is a computer attached to a network that has the primary purpose of providing a location for the shared storage of computer files (such as documents, sound files, photographs, movies, images, databases, etc.) that can be accessed by the workstations that are attached to the computer network. The term server highlights the role of the machine in the client &#8211; server scheme, where the clients are the workstations using the storage. A file server is usually not performing any calculations, and does not run any programs on behalf of the clients. It is designed primarily to enable the rapid storage and retrieval of data where the heavy computation is provided by the workstations. </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">This project is the combination of 3 protocols FTP+SAMBA+DHCP giving access to data shared in a network to the users. The description/ working of the protocols are mentioned below. I Combined all these Protocols by writing a SCRIPT using BASH environment in REDHAT LINUX Operating System v5.1. In this project  I studied/show how to create a file server providing share access in network using small &amp; easy scripts created in BASH environment. I design a script that manage the service in a network START/STOP. Allowing Access OR Deny Access to share for a user in NETWORK. I also design NFS-SERVER SCRIPT that manage a SHARE in a network.  The Description of the NFS and all Protocols are described below.</span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Liberation Sans", "Arial", sans-serif; font-size: 16pt } 		H1.cjk { font-family: "DejaVu Sans", sans-serif; font-size: 16pt } 		H1.ctl { font-family: "DejaVu Sans", sans-serif; font-size: 16pt } --></p>
<h1></h1>
<h1><span style="color:#b84747;"><span style="font-family:Times New Roman,serif;"><span style="font-size:large;">WORKING OF THE PROJECT</span></span></span></h1>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Liberation Sans", "Arial", sans-serif; font-size: 16pt } 		H1.cjk { font-family: "DejaVu Sans", sans-serif; font-size: 16pt } 		H1.ctl { font-family: "DejaVu Sans", sans-serif; font-size: 16pt } --></p>
<h1><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em>Working :</em></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> </span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Sharing Data or files in NETWORK using any environment LINUX/WINDOWS</span></span></h1>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em><strong>Required :</strong></em></span></span><span style="font-family:Times New Roman,serif;"> FTP, SAMBA &amp; DHCP. </span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="color:#4c1900;"><span style="font-family:Times New Roman,serif;"><span style="font-size:large;"><strong>File Transfer Protocol (FTP) </strong></span></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H3 { margin-bottom: 0.21cm } 		H3.western { font-family: "Liberation Sans", "Arial", sans-serif } 		H3.cjk { font-family: "DejaVu Sans", sans-serif } 		H3.ctl { font-family: "DejaVu Sans", sans-serif } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Liberation Sans", "Arial", sans-serif; font-size: 16pt } 		H1.cjk { font-family: "DejaVu Sans", sans-serif; font-size: 16pt } 		H1.ctl { font-family: "DejaVu Sans", sans-serif; font-size: 16pt } 		PRE { font-family: "DejaVu Sans Mono", monospace } 		H5 { margin-bottom: 0.21cm } 		H5.western { font-family: "Liberation Sans", "Arial", sans-serif; font-size: 12pt } 		H5.cjk { font-family: "DejaVu Sans", sans-serif; font-size: 12pt } 		H5.ctl { font-family: "DejaVu Sans", sans-serif; font-size: 12pt } --><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">t is a network protocol used to transfer data from one computer to another through a network such as the Internet.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">FTP is a file transfer protocol for exchanging and manipulating files over a TCP computer network. An FTP client may connect to an FTP server to manipulate files on that server.</span></span></p>
<h3>Connection Methods</h3>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">FTP runs over TCP.[1] It defaults to listen on port 21 for incoming connections from FTP clients. A connection to this port from the FTP Client forms the control stream on which commands are passed from the FTP client to the FTP server and on occasion from the FTP server to the FTP client. FTP uses out-of-band control, which means it uses a separate connection for control and data. Thus, for the actual file transfer to take place, a different connection is required which is called the data stream. Depending on the transfer mode, the process of setting up the data stream is different. Port 21 for control and authentication( match user password ), port 20 for data transfer.</span></span></p>
<h3>FTP and web browsers</h3>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Most recent web browsers and file managers can connect to FTP servers, although they may lack the support for protocol extensions such as FTPS. This allows manipulation of remote files over FTP through an interface similar to that used for local files. This is done via an FTP URL, which takes the form ftp(s)://&lt;ftpserveraddress&gt;  (e.g., ftp://ftp.gimp.org/). A password can optionally be given in the URL, e.g.: ftp(s)://&lt;login&gt;:&lt;password&gt;@&lt;ftpserveraddress&gt;:&lt;port&gt;. Most web-browsers require the use of passive mode FTP, which not all FTP servers are capable of handling. Some browsers allow only the downloading of files, but offer no way to upload files to the server.</span></span></p>
<h1><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">vsftpd</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> Configuration Options</span></span></h1>
<p><span style="font-size:small;">Although </span><tt><span style="font-size:small;">vsftpd</span></tt><span style="font-size:small;"> may not offer the level of customization other widely available FTP servers have, it offers enough options to fill most administrator&#8217;s needs. The fact that it is not overly feature-laden limits configuration and programmatic errors. </span></p>
<p><span style="font-size:small;"> </span></p>
<p><span style="font-size:small;"> 10</span></p>
<p><span style="font-size:small;">All configuration of </span><tt><span style="font-size:small;">vsftpd</span></tt><span style="font-size:small;"> is handled by its configuration file, </span><tt><span style="font-size:small;">/etc/vsftpd/vsftpd.conf</span></tt><span style="font-size:small;">. Each directive is on its own line within the file and follows the following format: </span></p>
<pre><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em>&lt;directive&gt;</em></span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em>=</em></span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em>&lt;value&gt;</em></span></span></tt></pre>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">There must not be any spaces between the </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em>&lt;directive&gt;</em></span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">, equal symbol, and the </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em>&lt;value&gt;</em></span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> in a directive. </span></span></p>
<h5>Package used for FTP  in   Linux      :    vsftp*</h5>
<h5>Daemon name				:   vsftpd</h5>
<p>_____________________________________________________]</p>
<p>&nbsp;</p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="color:#4c1900;"><span style="font-size:large;"><strong>Samba</strong></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H5 { margin-bottom: 0.21cm } 		H5.western { font-family: "Liberation Sans", "Arial", sans-serif; font-size: 12pt } 		H5.cjk { font-family: "DejaVu Sans", sans-serif; font-size: 12pt } 		H5.ctl { font-family: "DejaVu Sans", sans-serif; font-size: 12pt } --><span style="font-size:small;">It</span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> is a free software re-implementation of SMB/CIFS networking protocol, originally developed by Australian Andrew Tridgell. Samba is released under the GNU General Public License. The name Samba comes from SMB (Server Message Block), the name of the standard protocol used by the Microsoft Windows network file system.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">As of version 3 Samba provides file and print services for various Microsoft Windows clients and can integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a domain member. It can also be part of an Active Directory domain. Samba runs on most Unix and Unix-like systems, such as Linux, Solaris, AIX and the BSD variants, including Apple&#8217;s Mac OS X Server (which was added to the Mac OS X client in version 10.2). Samba is standard on nearly all distributions of Linux and is commonly included as a basic system service on other Unix-based operating systems as well.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Samba sets up network shares for chosen Unix directories (including all contained subdirectories). These appear to Microsoft Windows users as normal Windows folders accessible via the network. Unix users can either mount the shares directly as part of their file structure or, alternatively, can use a utility, smbclient (libsmb) installed with Samba to read the shares with a similar interface to a standard command line FTP program. Each directory can have different access privileges overlaid on top of the normal Unix file protections. For example: home directories would have read/write access for all known users, allowing each to access their own files. However they would still not have access to the files of others unless that permission would normally exist. Note that the net logon share, typically distributed as a read only share from /etc/samba/net logon, is the logon directory for user logon scripts.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Configuration is achieved by editing a single file (typically installed as /etc/smb.conf or /etc/samba/smb.conf). Samba can also provide user logon scripts and group policy implementation through poledit.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Samba includes a web administration tool called Samba Web Administration Tool (SWAT)</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">By using a Samba the sharing is done on  Linux to Linux and Windows to Linux  &#8216;</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:large;"><em><strong>Samba features :- </strong></em></span></span></p>
<ul>
<li><span style="font-family:Times New Roman,serif;">1.Serve directory trees and 	printers to Linux, UNIX, and Windows clients </span></li>
<li><span style="font-family:Times New Roman,serif;">2.Assist in network browsing 	(with or without NetBIOS) </span></li>
<li><span style="font-family:Times New Roman,serif;">3.Authenticate Windows domain 	logins </span></li>
<li><span style="font-family:Times New Roman,serif;">4.Provide Windows Internet Name 	Service (WINS) name server resolution </span></li>
<li><span style="font-family:Times New Roman,serif;">5.Act as a Windows NT®-style 	Primary Domain Controller (PDC) </span></li>
<li><span style="font-family:Times New Roman,serif;">6.Act as a Backup Domain 	Controller (BDC) for a Samba-based PDC </span></li>
<li><span style="font-family:Times New Roman,serif;">7.Act as an Active Directory 	domain member server </span></li>
<li><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">8.Join 	a Windows NT/2000/2003 PDC </span></span></li>
</ul>
<p><span style="font-family:Times New Roman,serif;"><em><strong>H</strong></em></span><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em><strong>ow we can configure a samba server by  taking a example? </strong></em></span></span></p>
<ul>
<li><span style="font-family:Times New Roman,serif;">Let us see installed packages 	needed for samba  setup</span></li>
</ul>
<ul>
<li><span style="font-family:Times New Roman,serif;">Edit the file and enter 	following details<br />
(configuration file of samba is smb.conf) </span></li>
<li><span style="font-family:Times New Roman,serif;">#vi /etc/samba/smb.conf </span></li>
</ul>
<p><span style="font-family:Times New Roman,serif;">[sunteam] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&gt;Display Name for the shared path.<br />
comment = For Sunteam use Only &#8212;&#8212;&#8212;&#8211;&gt;Optional.<br />
path = /home/data&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&gt;Path to be shared.<br />
writable = yes                                                                                                                                                                      printable = no<br />
browseable = yes</span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"># we can limit the access to this path by adding the following             line into the above conf file:<br />
valid users = users to be allowed to share the path<br />
# To connect to a samba share from a shell prompt use the               following command :<br />
Smbclient//hostname/host_dir –u username<br />
13<br />
# To mount a samba share to a directory:<br />
Mount –t cifs –o username passwd //servername /share  /mnt/point</span></span></p>
<h5>Package used for SAMBA in   Linux      :    samba*</h5>
<h5>Daemon name			           :   smb</h5>
<p><span style="font-family:Nimbus Roman No9 L,Times New Roman,serif;"><span style="font-size:small;">________________________________________________________]</span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H5 { margin-bottom: 0.21cm } 		H5.western { font-family: "Liberation Sans", "Arial", sans-serif; font-size: 12pt } 		H5.cjk { font-family: "DejaVu Sans", sans-serif; font-size: 12pt } 		H5.ctl { font-family: "DejaVu Sans", sans-serif; font-size: 12pt } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Liberation Sans", "Arial", sans-serif; font-size: 16pt } 		H1.cjk { font-family: "DejaVu Sans", sans-serif; font-size: 16pt } 		H1.ctl { font-family: "DejaVu Sans", sans-serif; font-size: 16pt } -->
<p>&nbsp;</p>
<p><span style="color:#4c1900;"><span style="font-family:Times New Roman,serif;"><span style="font-size:large;"><strong>Dynamic Host Configuration Protocol (DHCP) </strong></span></span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">It is a network application protocol used by devices (DHCP clients) to obtain configuration information for operation in an Internet Protocol network. This protocol reduces system administration workload, allowing devices to be added to the network with little or no manual intervention.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">When a DHCP-configured client (be it a computer or any other network-aware device) connects to a network, the DHCP client sends a broadcast query requesting necessary information from a DHCP server. The DHCP server manages a pool of IP addresses and information about client configuration parameters such as the default gateway, the domain name, the DNS servers, other servers such as time servers, and so forth. Upon receipt of a valid request the server will assign the computer an IP address, a lease (the length of time for which the allocation is valid), and other IP configuration parameters, such as the subnet mask and the default gateway. The query is typically initiated immediately after booting and must be completed before the client can initiate IP-based communication with other hosts.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">DHCP provides four modes for allocating IP addresses. The best-known mode is dynamic, in which the client is provided a &#8220;lease&#8221; on an IP address for a period of time. Depending on the stability of the network, this could range from hours (a wireless network at an airport) to months (for desktops in a wired lab). At any time before the lease expires, the DHCP client can request renewal of the lease on the current IP address. A properly-functioning client will use the renewal mechanism to maintain the same IP address throughout its connection to a single network, otherwise it may risk losing its lease while still connected, thus disrupting network connectivity while it renegotiates with the server for its original or a new IP address. The other modes for allocation of IP addresses are automatic , in which the address is permanently assigned to a client, and manual, in which the address is selected by the client (manually by the user or any other means) and the DHCP protocol messages are used to inform the server that the address has been allocated. The automatic and manual methods are generally used when finer-grained control over IP address is required (typical of tight firewall setups), although typically a firewall will allow access to the range of IP addresses that can be dynamically allocated by the DHCP server. The process of address allocation is known as ROSA. Request, Offer, Send, Accept.</span></span></p>
<p>&nbsp;</p>
<h1><a name="S1-DHCP-CONFIGURING-SERVER"></a><span style="font-family:Times New Roman,serif;"><em>Configuring a DHCP Server</em></span></h1>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">You can configure a DHCP server using the configuration file </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/etc/dhcpd.conf</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">. </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">DHCP also uses the file </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/var/lib/dhcp/dhcpd.leases</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> to store the client lease database. Refer to</span></span><span style="color:#000000;"><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> the Section called Lease Database </span></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">for more information. </span></span></p>
<h1><a name="CONFIG-FILE"></a><span style="font-family:Times New Roman,serif;"><em>Configuration File</em></span></h1>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">The first step in configuring a DHCP server is to create the configuration file that stores the network information for the clients. Global options can be declared for all clients, or options can be declared for each client system. </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">The configuration file can contain any extra tabs or blank lines for easier formatting. The keywords are case-insensitive, and lines beginning with a hash mark (#) are considered comments. </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">There are two types of statements in the configuration file: </span></span></p>
<ul>
<li><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Parameters 	— state how to perform a task, whether to perform a task, or what 	network configuration options to send to the client.</span></span></li>
<li><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Declarations 	— describe the topology of the network, describe the clients, 	provide addresses for the clients, or apply a group of parameters to 	a group of declarations.</span></span></li>
</ul>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Some parameters must start with the </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">option</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> keyword and are referred to as options. Options configure DHCP options; whereas, parameters configure values that are not optional or control how the DHCP server behaves. </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Parameters (including options) declared before a section enclosed in curly brackets ({ }) are considered global parameters. Global parameters apply to all the sections below it. </span></span></p>
<p>&nbsp;</p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em><strong>Important</strong></em></span></span></p>
<p><span style="font-size:small;">If you change the configuration file, the changes will not take effect until you restart the DHCP daemon with the command </span><tt><span style="font-size:small;">service dhcpd restart</span></tt><span style="font-size:small;">.</span></p>
<h5><span style="font-size:small;">Package used for DHCP  in  Linux     :    dhcp*</span></h5>
<h5><span style="font-size:small;">Daemon name				  :   dhcpd</span></h5>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;]</p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } -->
<p>&nbsp;</p>
<p><span style="color:#4c1900;"><span style="font-size:large;"><strong>Network File System (NFS)</strong></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Liberation Sans", "Arial", sans-serif; font-size: 16pt } 		H1.cjk { font-family: "DejaVu Sans", sans-serif; font-size: 16pt } 		H1.ctl { font-family: "DejaVu Sans", sans-serif; font-size: 16pt } 		H2 { margin-bottom: 0.21cm } 		H2.western { font-family: "Liberation Serif", "Times New Roman", serif } 		H2.cjk { font-family: "DejaVu Sans", sans-serif } 		H2.ctl { font-family: "DejaVu Sans", sans-serif } 		PRE { font-family: "DejaVu Sans Mono", monospace } 		H5 { margin-bottom: 0.21cm } 		H5.western { font-family: "Liberation Sans", "Arial", sans-serif; font-size: 12pt } 		H5.cjk { font-family: "DejaVu Sans", sans-serif; font-size: 12pt } 		H5.ctl { font-family: "DejaVu Sans", sans-serif; font-size: 12pt } --><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">A network file system is any computer file system that supports sharing of files, printers and other resources as persistent storage over a computer network. The first file servers were developed in the 1970s, and in 1985 Sun Microsystems created the file system called &#8220;Network File System&#8221; (NFS) which became the first widely used network file system. Other notable network file systems are Andrew File System (AFS), NetWare Core Protocol (NCP), and Server Message Block (SMB) which is also known as Common Internet File System (CIFS).</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Ideally, a network file system should appear to its users to be a conventional, centralized file system. The multiplicity and dispersion of its servers and storage devices should be made invisible. That is, the client interface used by programs should not distinguish between local and remote files. It is up to the network file system to locate the files and to arrange for the transport of the data.</span></span></p>
<p>&nbsp;</p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">The most important performance measurement of a network file system is the amount of time needed to satisfy service requests. In conventional systems, this time consists of a disk-access time and a small amount of CPU-processing time. But in a network file system, a remote access has additional overhead due to the distributed structure. This includes the time to deliver the request to a server, the time to deliver the response to the client, and for each direction, a CPU overhead of running the communication protocol software. The performance of a network file system can be viewed as one dimension of its transparency: ideally, it would be comparable to that of a conventional file system.</span></span></p>
<h1><a name="S1-SYSADMIN-NFS"></a><span style="font-family:Helvetica,Arial,sans-serif;"><span style="font-size:small;"><em>NFS Configuration </em></span></span></h1>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">NFS stands for  network file  system, and is a way to share files between machines as if they were on your local hard drive. Linux can be both an NFS server and an NFS client, which means that it can </span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em>export</em></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> file systems to other systems, and </span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em>mount</em></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> file systems exported from other machines. </span></span></p>
<p>&nbsp;</p>
<h2><a name="S2-SYSADMIN-NFS-MOUNT"></a><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em>Mounting NFS File systems</em></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"> </span></span></h2>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Use the </span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong>mount</strong></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> command to mount an NFS file system from another machine: </span></span></p>
<pre><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong>mkdir </strong></span></span>
<tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong>/mnt/local</strong></span></span></tt>

 <span style="font-family:Times New Roman,serif;"><span style="font-size:small;"># Only required if /mnt/local doesn't exist</span></span>

<span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong>mount </strong></span></span>
<tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong>bigdog:/mnt/export</strong></span></span></tt>

<tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong>/mnt/local</strong></span></span></tt></pre>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">In this command, bigdog is the hostname of the NFS fileserver, </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/mnt/export</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> is the</span></span><span style="font-family:Times New Roman,serif;"> </span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">file system that bigdog is exporting, and </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/mnt/local</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> is a directory on my local machine where we want to mount the file system. After the </span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong>mount</strong></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> command runs (and if we have the proper permissions from </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">bigdog</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> ) we can enter </span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong>ls /mnt/local</strong></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> and get a listing of the files in </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/mnt/export</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> on bigdog.</span></span><span style="font-family:Times New Roman,serif;"> </span></p>
<h2><a name="S2-SYSADMIN-NFS-EXPORT"></a><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em>Exporting NFS File systems </em></span></span></h2>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">The file that controls what file systems you wish to export is </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/etc/exports</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> . </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">the </span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong>(</strong></span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong> </strong></span></span></tt><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em><strong>options</strong></em></span></span></tt><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong> </strong></span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong>)</strong></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> are optional. For example: </span></span></p>
<pre><tt>   <span style="font-family:Helvetica,Arial,sans-serif;"><span style="font-size:small;"><strong>/mnt/export                           example.com (rw , sync)     </strong></span></span></tt></pre>
<h1><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em>NFS Client Configuration Files</em></span></span></h1>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Any NFS share made available by a server can be mounted using various methods. The share can be manually mounted, using the </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">mount</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> command. However, this requires that the root user type the </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">mount</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> command every time the system restarts. Two methods of configuring NFS shares to be mounted automatically at boot time include modifying the </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/etc/fstab</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> or using the </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">autofs</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> service.</span></span></p>
<p><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><strong>/etc/fstab</strong></span></span></tt></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Placing a properly formatted line in the </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/etc/fstab</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> file has the same effect as manually </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">mounting the exported file system. The </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/etc/fstab</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> file is read by the </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/etc/rc.d/init.d/netfs</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> script at system startup and any NFS shares listed there will be mounted.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">A sample </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/etc/fstab</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> line to mount an NFS export looks like the following:</span></span></p>
<pre><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em>&lt;server&gt;:&lt;/path/of/dir&gt; &lt;/local/mnt/point&gt; nfs &lt;options&gt; 0 0</em></span></span></tt></pre>
<p>&nbsp;</p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">The </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em>&lt;server-host&gt;</em></span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> corresponds to hostname, IP address, or fully qualified domain name of the server exporting the file system.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">The </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em>&lt;/path/of/directory&gt;</em></span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> is the path to the exported directory.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">The </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em>&lt;/local/mount/point&gt;</em></span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> specifies where on the local file system to mount the exported directory. This mount point must exist before </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">/etc/fstab</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> is read or the mount will fail.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">The </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">nfs</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> option specifies the type of file system being mounted.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">The </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em>&lt;options&gt;</em></span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> area specifies mount options for the file system. For example, if the options area states </span></span><tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">rw,suid</span></span></tt><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">, the exported file system will be mounted read-write and the user and groupid set by the server will be used. Note that parentheses are not to be used here.</span></span></p>
<h5><span style="font-size:small;">Package used for DHCP  in  Linux     :    nfs*</span></h5>
<h5><span style="font-size:small;">Daemon name				           :   nfsd</span></h5>
<p><span style="font-family:Nimbus Roman No9 L,Times New Roman,serif;"><span style="font-size:small;">___________________________________________________________]</span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H2 { margin-bottom: 0.21cm } 		H2.western { font-family: "Liberation Serif", "Times New Roman", serif } 		H2.cjk { font-family: "DejaVu Sans", sans-serif } 		H2.ctl { font-family: "DejaVu Sans", sans-serif } --></p>
<h2><span style="color:#b84747;"><span style="font-family:Times New Roman,serif;"><span style="font-size:large;">TESTING </span></span></span></h2>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em><strong>This is script is to create a combination of four servers : -</strong></em></span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em><strong>NFS -</strong></em></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> Network file System</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em><strong>SAMBA -</strong></em></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> Server Message Block</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em><strong>FTP &#8211; </strong></em></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">File Transfer Protocol</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><em><strong>DHCP &#8211; </strong></em></span></span><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Dynamic Host Transfer Protocols</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">First of all we need to install Extended Internet Daemon for support of SAMBA</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#rpm -ivh /dump/Server/xinetd* &#8211;aid &#8211;force</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Now I am installing samba packages </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Samba provide sharing of data between LINUX and WINDOW</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#rpm -ivh /dump/Server/samba* &#8211;aid &#8211;force</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">After that install FTP packages </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Do not worry VSFTPD is very secure File Transfer Protocols and is enabled for</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">local users </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#rpm -ivh /dump/Server/vsftp* &#8211;aid &#8211;force</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">I am also installing DHCP for future </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Lab setup if required then I will use this to assign IP address</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#rpm -ivh /dump/Server/dhcp* &#8211;aid –force</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"> </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em><strong>USERS</strong></em></span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">I am adding two users named POP and ROCK</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#useradd  pop</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#useradd  rock</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Adding files in the directory of USERS for sharing</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#echo &#8220;this is a file of users POP &#8221; &gt; /home/pop/sales</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#echo &#8220;this is a file of users ROCK &#8221; &gt; /home/rock/myfile</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Configuring the DHCP for NETWORK </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#cat /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample &gt; /etc/dhcpd.conf</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#clear</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Staring DHCP service </span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#service dhcpd restart</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Starting FTP service</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#service vsftpd restart</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Starting NFS service</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#service nfs restart</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">Starting SAMB service</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#service smb restart</span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em><strong>Permanent ON the services </strong></em></span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#chkconfig smb on</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#chkconfig dhcpd on</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#chkconfig nfs on</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#chkconfig vsftpd on</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#clear</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#echo &#8221; all services are started&#8221;</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#echo &#8220;plz assign passwords to both users manually according to your requirement&#8221;</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">#echo &#8221; thanks all things are done and working fine.&#8221;</span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } -->
<p>&nbsp;</p>
<p><span style="color:#b84747;"><span style="font-family:Times New Roman,serif;"><span style="font-size:x-large;"><strong>SCREEN SHOT</strong></span></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><img src="/DOCUME%7E1/JAGDEE%7E1/LOCALS%7E1/Temp/moz-screenshot.png" alt="" /></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><strong>WHOLE SCRIPT IS RUNNING  IN SINGLE RUN </strong></span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><strong><img class="aligncenter size-full wp-image-8" title="Screenshot" src="http://jagdeepmalhi.files.wordpress.com/2009/11/screenshot-41.png?w=570&#038;h=456" alt="Screenshot" width="570" height="456" /><br />
</strong></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="color:#b84747;"><span style="font-family:Times New Roman,serif;"><span style="font-size:large;"><strong>ADVANTAGES OR APPLICATION OF PROJECT </strong></span></span></span></p>
<p>&nbsp;</p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em><strong>Advantages of file sharing</strong></em></span></span></p>
<p><span style="font-size:small;">In a file sharing environment, a large number of users can access a program as though it were on their local machines, when actually the program resides on a single file server. This is a great benefit to small workstations, where disk space is at a premium. A user can have access to a much larger program repertoire than could fit on a private disk. </span></p>
<p><span style="font-size:small;">By having a resource reside physically on a single server, then distributed throughout the network, you can greatly simplify administration. First, you reduce the number of copies of various programs that need to be maintained on the network. Second, you reduce the problems involved in performing backups for a number of machines dispersed over a wide geographical area. By keeping files in a single location, this task becomes comparable to backing up a single machine. </span></p>
<p><span style="font-size:small;">Centralizing files on a few file servers not only simplifies administration, it helps maintain consistency of shared data files. When changes are made to a shared file, they become available to all users immediately. </span></p>
<p><span style="font-size:small;">As an alternative to centralizing files on a few file servers, files may be shared. When a single computer runs out of capacity, more computers can be added to a configuration. Files can be moved to the new computers, while a consistent view of the file system from the user&#8217;s perspective is maintained. </span></p>
<p>&nbsp;</p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">The advantages of running a fileserver for your network include (but are not limited to ) speed, non-interference, security.</p>
<p>1) You will get faster response time with the dedicated server, as it&#8217;s not running anything else that a normal user would be running.</p>
<p>2) Same as #1, except on client-side. You don&#8217;t get any lag by others streaming files from your shares.</p>
<p>3) You don&#8217;t really have to worry about your machine being nuked by anything, as it&#8217;s not your personal box. You can also tighten it up more (blocking all but samba/NFS ports, chroot jail, etc.</span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:medium;"><em><strong>File Server Application Development </strong></em></span></span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">The File Server technology enables clients to access files and other resources, such as printers, from a server over a network using TCP/IP.</span></span></p>
<p><a name="src3"></a><a name="src4"></a><a name="src5"></a> <span style="font-size:small;">File Server uses the Common Internet File System (CIFS). This is an extension of the Server Message Block (SMB) file sharing protocol. CIFS enables a network-enabled application to access and manipulate files and directories on a remote server in the same way that it the application accesses and manipulates files and directories on the local system. </span></p>
<p><a name="src6"></a><a name="src7"></a><a name="src8"></a> <span style="font-size:small;">File Server supports user-level authentication. This means that any client attempting to access a share on a server must provide a user name and password. When authenticated, the user can then access all shares that are not protected by share-level security on a server. </span></p>
<p><span style="font-family:Times New Roman,serif;"><span style="font-size:small;"><strong> </strong></span></span></p>
<p>&nbsp;</p>
<p lang="en-US"><span style="color:#ffffff;"><span style="font-family:Times New Roman,serif;"><span style="font-size:small;">.</span></span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jagdeepmalhi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jagdeepmalhi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jagdeepmalhi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jagdeepmalhi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jagdeepmalhi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jagdeepmalhi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jagdeepmalhi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jagdeepmalhi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jagdeepmalhi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jagdeepmalhi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jagdeepmalhi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jagdeepmalhi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jagdeepmalhi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jagdeepmalhi.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jagdeepmalhi.wordpress.com&amp;blog=10273442&amp;post=5&amp;subd=jagdeepmalhi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jagdeepmalhi.wordpress.com/2009/11/07/porject-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0df9c5baeb4a22f7787dd3f91e31026c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jagdeep</media:title>
		</media:content>

		<media:content url="http://jagdeepmalhi.files.wordpress.com/2009/11/screenshot-41.png" medium="image">
			<media:title type="html">Screenshot</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://jagdeepmalhi.wordpress.com/2009/11/04/hello-world/</link>
		<comments>http://jagdeepmalhi.wordpress.com/2009/11/04/hello-world/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 16:53:24 +0000</pubDate>
		<dc:creator>Jagdeep Singh Malhi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jagdeepmalhi.wordpress.com&amp;blog=10273442&amp;post=1&amp;subd=jagdeepmalhi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jagdeepmalhi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jagdeepmalhi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jagdeepmalhi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jagdeepmalhi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jagdeepmalhi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jagdeepmalhi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jagdeepmalhi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jagdeepmalhi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jagdeepmalhi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jagdeepmalhi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jagdeepmalhi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jagdeepmalhi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jagdeepmalhi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jagdeepmalhi.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jagdeepmalhi.wordpress.com&amp;blog=10273442&amp;post=1&amp;subd=jagdeepmalhi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jagdeepmalhi.wordpress.com/2009/11/04/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0df9c5baeb4a22f7787dd3f91e31026c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jagdeep</media:title>
		</media:content>
	</item>
	</channel>
</rss>
