<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>linuxbuddies.com</title>
	
	<link>http://linuxbuddies.com</link>
	<description>For linux documentations.</description>
	<lastBuildDate>Fri, 11 Sep 2009 10:11:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<media:keywords>linux</media:keywords><itunes:owner><itunes:email>riyesh@gmail.com</itunes:email></itunes:owner><itunes:explicit>no</itunes:explicit><itunes:keywords>linux</itunes:keywords><itunes:subtitle>linux</itunes:subtitle><itunes:summary>linux</itunes:summary><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Linuxbuddiescom" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>How Kerberos Works</title>
		<link>http://feedproxy.google.com/~r/Linuxbuddiescom/~3/ANd8EZoZ-5A/</link>
		<comments>http://linuxbuddies.com/2009/09/10/how-kerberos-authentication-works/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 08:41:05 +0000</pubDate>
		<dc:creator>riyesh@gmail.com</dc:creator>
				<category><![CDATA[Core Linux]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=365</guid>
		<description><![CDATA[As we know the kerberos authentication method is the most secure network authentication method ever build. In normal method the password is sent accross the network, which is vulnerable but in kerberos method no password is sent accross the network.
The Steps included in kerberos authentication
users enters his user name and ...]]></description>
			<content:encoded><![CDATA[<p>As we know the kerberos authentication method is the most secure network authentication method ever build. In normal method the password is sent accross the network, which is vulnerable but in kerberos method no password is sent accross the network.</p>
<p>The Steps included in kerberos authentication</p>
<p>users enters his user name and password to login program, in kerberos  each user have his own principal. Login program converts the username to his principal and request the KDC (key distrubtion centre) for TGT (ticket granding ticket) for this principal. KDC then check his database if the principal is there KDC create two secret keys. One key is encrypted with the password for the principal stored in his database and is sent back to the login program.</p>
<p>Login program tries to decrypt the packet received from KDC using the password entered by the user, if is possible to decrypt the user is authenticated.</p>
<p>User    (username + password) &#8212;&gt; Login Program</p>
<p>Login program ( principal for the username )  &#8212;&gt; KDC</p>
<p>KDC (create two secret keys ) &#8212;&#8212;&#8212;&#8211;&gt; S1 &amp; S2</p>
<p>KDC (encrypt the S1 with password associated with principal ) &#8212;&#8212;&#8212;&#8211;&gt; Login program</p>
<p>Login Program ( tries to decrypt it with the password entered by the user) &#8212;&#8212;&gt; user is authenticated</p>
<img src="http://feeds.feedburner.com/~r/Linuxbuddiescom/~4/ANd8EZoZ-5A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/09/10/how-kerberos-authentication-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://linuxbuddies.com/2009/09/10/how-kerberos-authentication-works/</feedburner:origLink></item>
		<item>
		<title>Add Internet Users</title>
		<link>http://feedproxy.google.com/~r/Linuxbuddiescom/~3/fZYG2g4r4Qk/</link>
		<comments>http://linuxbuddies.com/2009/09/10/add-proxy-users/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:55:01 +0000</pubDate>
		<dc:creator>riyesh@gmail.com</dc:creator>
				<category><![CDATA[Core Linux]]></category>
		<category><![CDATA[Proxy]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=362</guid>
		<description><![CDATA[We usally configure the proxy server to share the internet over the internal network, users inside the network can access the internet through the proxy server. All the logs of the internet usage are stored in proxy server logs files, but there is a problem in this condition. we cannot ...]]></description>
			<content:encoded><![CDATA[<p>We usally configure the proxy server to share the internet over the internal network, users inside the network can access the internet through the proxy server. All the logs of the internet usage are stored in proxy server logs files, but there is a problem in this condition. we cannot track the usage of internet by user wise and also there is no authentication method used in this. To over this situation we can use the authentication method inbuilt in the proxy server ( Squid), by this method all users in the network will got a username and password for accessing the interwork and admins are able to track the usage by userwise.</p>
<p>Configration changes in the squid.conf file</p>
<p>auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/sqpasswd<br />
acl ncsa_users proxy_auth REQUIRED<br />
http_access allow ncsa_users</p>
<p>create user and password for squid access</p>
<p>htpasswd -cm /etc/squid/sqpasswd eldo</p>
<p>Enter the password for eldo inorder to get internet access</p>
<p>We can sarg  package for Squid Analysis Report Generator, sarg will make HTML report page</p>
<img src="http://feeds.feedburner.com/~r/Linuxbuddiescom/~4/fZYG2g4r4Qk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/09/10/add-proxy-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://linuxbuddies.com/2009/09/10/add-proxy-users/</feedburner:origLink></item>
		<item>
		<title>Dhcp Server Provides Multiple Range of Ips</title>
		<link>http://feedproxy.google.com/~r/Linuxbuddiescom/~3/zTBcoYBWmeo/</link>
		<comments>http://linuxbuddies.com/2009/09/10/dhcp-server-provides-multiple-range-of-ips/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:17:11 +0000</pubDate>
		<dc:creator>riyesh@gmail.com</dc:creator>
				<category><![CDATA[Core Linux]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=355</guid>
		<description><![CDATA[
In some areas they are different networks in the same building, we need a DHCP server to provide Ip address for the computers in this different networks. It is possible to configure DHCP server with multiple range of ip address.
Configuration  Example


 
In the working example configuration shown below, the DHCP ...]]></description>
			<content:encoded><![CDATA[<h4 style="font-size: 10pt">
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">In some areas they are different networks in the same building, we need a DHCP server to provide Ip address for the computers in this different networks. It is possible to configure DHCP server with multiple range of ip address.</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">Configuration  Example</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"><br />
</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"> </span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">In the working example configuration shown below, the DHCP server host is only connected to the 192.168.0.0/24 IP subnet. DHCP clients in the ethernet network segment using a 192.168.2.0/24 IP subnet will be served IP configuration leases in the 192.168.2.100 &#8211; 192.168.2.200 range because the requests are relayed by the 192.168.2.1 DHCP Relay Agent (this DHCP Relay is assumed to already be present on the 192.168.2.0/24 subnet and configured to relay DHCP messages for this DHCP server).</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"> </span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">Most significantly, a host previously connected to the 192.168.0.0/24 network, but later moved to the 192.168.2.0/24 network segment, will be forced to obtain a new IP configuration lease in the 192.168.2.100 &#8211; 192.168.2.200 range, so that it can function correctly on this separate network and IP subnet.</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"><br />
</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"> </span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">Example /etc/dhcpd.conf </span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"><br />
</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"> </span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">ddns-update-style none;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">default-lease-time 3600;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">max-lease-time 7200;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">authoritative;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">log-facility local5;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">subnet 192.168.0.0 netmask 255.255.255.0 {</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">range 192.168.0.100 192.168.0.200;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">option domain-name-servers 192.168.0.2;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">option routers 192.168.0.1;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">}</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">subnet 192.168.2.0 netmask 255.255.255.0 {</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">range 192.168.2.100 192.168.2.200;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">option domain-name-servers 192.168.2.2;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">option routers 192.168.2.1;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">}</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">Configure the DHCP Relay Agent</span></div>
<div style="margin-top: 0px;margin-bottom: 0px">
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">The DHCP Relay Agent (dhcrelay) allows for the relay of DHCP and BOOTP requests from a subnet with no DHCP server on it to one or more DHCP servers on other subnets.</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">When a DHCP client requests information, the DHCP Relay Agent forwards the request to the list of DHCP servers specified when the DHCP Relay Agent is started. When a DHCP server returns a reply, the reply is broadcast or unicast on the network that sent the original request.</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">The DHCP Relay Agent listens for DHCP requests on all interfaces unless the interfaces are specified in /etc/sysconfig/dhcrelay with the INTERFACES directive.</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">To start the DHCP Relay Agent, use the command service dhcrelay start</span></div>
</div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"><br />
</span></div>
<div>
<div style="width: 1px;height: 1px">The DHCP Relay Agent (dhcrelay) allows for the relay of DHCP and BOOTP requests from a subnet with no DHCP server on it to one or more DHCP servers on other subnets.</div>
<div style="width: 1px;height: 1px">When a DHCP client requests information, the DHCP Relay Agent forwards the request to the list of DHCP servers specified when the DHCP Relay Agent is started. When a DHCP server returns a reply, the reply is broadcast or unicast on the network that sent the original request.</div>
<div style="width: 1px;height: 1px">The DHCP Relay Agent listens for DHCP requests on all interfaces unless the interfaces are specified in /etc/sysconfig/dhcrelay with the INTERFACES directive.</div>
<div style="width: 1px;height: 1px"></div>
</div>
</h4>
<img src="http://feeds.feedburner.com/~r/Linuxbuddiescom/~4/zTBcoYBWmeo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/09/10/dhcp-server-provides-multiple-range-of-ips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://linuxbuddies.com/2009/09/10/dhcp-server-provides-multiple-range-of-ips/</feedburner:origLink></item>
		<item>
		<title>Types of Aliases Can Used on mail service</title>
		<link>http://feedproxy.google.com/~r/Linuxbuddiescom/~3/DNhDG0xhhq4/</link>
		<comments>http://linuxbuddies.com/2009/09/10/types-of-aliases-can-used-on-mail-service/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 06:45:11 +0000</pubDate>
		<dc:creator>riyesh@gmail.com</dc:creator>
				<category><![CDATA[Core Linux]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=352</guid>
		<description><![CDATA[In mail service we can use alias function to forward the mails  coming to a mail id to a another mail address, In some cases the destination mail address may be one for more. Basically they are 5 different types of alias methods which can be used to forward the ...]]></description>
			<content:encoded><![CDATA[<p>In mail service we can use alias function to forward the mails  coming to a mail id to a another mail address, In some cases the destination mail address may be one for more. Basically they are 5 different types of alias methods which can be used to forward the mails.</p>
<p>The 5 types are</p>
<p>1. one to one</p>
<p>2. one to many</p>
<p>3. Include function</p>
<p>4. File function</p>
<p>5. Pipe Function</p>
<p><strong><span style="text-decoration: underline">One to One </span></strong></p>
<p>This is the common forward method used  in the mail service, in this method mail coming to user inbox is forward to a another user.</p>
<p>Ex: If we need to forward a user mail to another user</p>
<p>eldo@linuxbuddies.com: riyesh@linuxbuddies.com</p>
<p>By adding this entry in /etc/aliases  the mail coming to eldo is forwarded to riyesh</p>
<p><strong><span style="text-decoration: underline">One to Many</span></strong></p>
<p>In the previous method we seen that the incoming mail is forwarded to a another single mail id, some cases we need to add more users id at the receivers area.</p>
<p>Ex: If  Eldo and Riyesh were in the admin group, and they also need the mails coming to the admin@linuxbuddies.com in that situation we can use the followwing entry in /etc/aliases</p>
<p>admin@linuxbuddies.com: eldo@linuxbuddies.com, riyesh@linuxbuddies.com</p>
<p><strong><span style="text-decoration: underline">Include Function</span></strong></p>
<p>Using the one to many method we can add multiple mail id&#8217;s at the destination area, but there areas this method are not recommended in areas like mailing list, if they are ten thousand users in receivers section we cannot one to many function because it is diffcult to manage that number of users. In include function we include a file which contains the users</p>
<p>Ex: If maillinglist@linuxbuddies.com contains users like eldo,riyesh,arun,philip&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;</p>
<p>For this need create a file</p>
<p>vi /etc/postfix/maillinglist then add mail id&#8217;s in that file, one id per line</p>
<p>then add the entry in /etc/aliases</p>
<p>maillinglist@linuxbuddies.com:  :include: /etc/postfix/maillinglist</p>
<p><strong><span style="text-decoration: underline">File Function</span></strong></p>
<p>In all mail systems we make particular mail id to capture the abuse mails, if we need to store the mails coming to abuse mail id.  In that case we can use the file function, by this method the mails coming for the abuse id is appened to a file and can be used for later reference in need.</p>
<p>Ex: create a file /var/log/abusemaillog</p>
<p>make the following entry in /etc/aliases</p>
<p>abuse@linuxbuddies.com:  /var/log/abusemaillog</p>
<p><strong><span style="text-decoration: underline">Pipes Function</span></strong></p>
<p>They are situations that we need to run a script in server only on particular times, for that we can use pipe function for that. We need to create a particular mail id for that, when ever a mail for id comes the script will get executed. We can use perl or shell script for this.</p>
<p>Ex: If there is alert program on the server, when ever a mail for alert@linuxbuddies.com comes the alert binary get executed.</p>
<p>for this need, add like this on /etc/aliases</p>
<p>alert@linuxbuddies.com:  |/usr/local/bin/alert</p>
<div style="width: 1px;height: 1px">Venue Details:</div>
<div style="width: 1px;height: 1px">Survey #13/1, KB halli ,</div>
<div style="width: 1px;height: 1px">Varthur Hoobli,</div>
<div style="width: 1px;height: 1px">Outer ring road,</div>
<div style="width: 1px;height: 1px">Marathahalli</div>
<div style="width: 1px;height: 1px">Bangalore &#8211; 87</div>
<img src="http://feeds.feedburner.com/~r/Linuxbuddiescom/~4/DNhDG0xhhq4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/09/10/types-of-aliases-can-used-on-mail-service/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://linuxbuddies.com/2009/09/10/types-of-aliases-can-used-on-mail-service/</feedburner:origLink></item>
		<item>
		<title>Block a Range of Ip Address Using IP Tables</title>
		<link>http://feedproxy.google.com/~r/Linuxbuddiescom/~3/SCR5vARfCa0/</link>
		<comments>http://linuxbuddies.com/2009/09/10/block-a-range-of-ip-address-using-ip-tables/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 05:31:24 +0000</pubDate>
		<dc:creator>riyesh@gmail.com</dc:creator>
				<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=349</guid>
		<description><![CDATA[In some cases we can seen that there is attack coming to our server from a particular range of ip, in that case we need to block only that range not the full range. In that situtation we can use iptables
Example: If attack is coming from 202.10.100.20 to range of ...]]></description>
			<content:encoded><![CDATA[<p>In some cases we can seen that there is attack coming to our server from a particular range of ip, in that case we need to block only that range not the full range. In that situtation we can use iptables</p>
<p>Example: If attack is coming from 202.10.100.20 to range of 202.10.100.50</p>
<p>Use the command</p>
<p>iptables -A INPUT -m iprange &#8211;src-range 202.10.100.20-202.10.100.50 -J DROP</p>
<p>service iptables save</p>
<img src="http://feeds.feedburner.com/~r/Linuxbuddiescom/~4/SCR5vARfCa0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/09/10/block-a-range-of-ip-address-using-ip-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://linuxbuddies.com/2009/09/10/block-a-range-of-ip-address-using-ip-tables/</feedburner:origLink></item>
		<item>
		<title>This Site For sale</title>
		<link>http://feedproxy.google.com/~r/Linuxbuddiescom/~3/UCqcFAzqdQM/</link>
		<comments>http://linuxbuddies.com/2009/08/09/this-site-for-sale/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 16:45:45 +0000</pubDate>
		<dc:creator>riyesh@gmail.com</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Hylafax]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[Qmail]]></category>
		<category><![CDATA[RPM]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Sendmail]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[User administration]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server tweak]]></category>
		<category><![CDATA[domain for sale]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=346</guid>
		<description><![CDATA[ This domain for  sale&#8230; Please contact riyesh@gmail.com
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-345" title="forsale" src="http://linuxbuddies.com/wp-content/uploads/2009/08/forsale-150x150.jpg" alt="forsale" width="150" height="150" /> This domain for  sale&#8230; Please contact riyesh@gmail.com</p>
<img src="http://feeds.feedburner.com/~r/Linuxbuddiescom/~4/UCqcFAzqdQM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/08/09/this-site-for-sale/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://linuxbuddies.com/2009/08/09/this-site-for-sale/</feedburner:origLink></item>
		<item>
		<title>Prevent image hotlinking</title>
		<link>http://feedproxy.google.com/~r/Linuxbuddiescom/~3/fJyhfeFIzrM/</link>
		<comments>http://linuxbuddies.com/2009/01/20/prevent-image-hotlinking/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 19:18:26 +0000</pubDate>
		<dc:creator>riyesh@gmail.com</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[server tweak]]></category>
		<category><![CDATA[hotlinkingm preventing image theft]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=313</guid>
		<description><![CDATA[Hotlinking is the use of a linked object, often an image, from one site into a web page belonging to a second site. The second site is said to have an inline link to the site where the object is located.
It is always recommended to enable hotlinking of images, else ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-314" title="hotlinking" src="http://linuxbuddies.com/wp-content/uploads/2009/01/hotlinking-150x150.jpg" alt="hotlinking" width="150" height="150" />Hotlinking is the use of a linked object, often an image, from one site into a web page belonging to a second site. The second site is said to have an inline link to the site where the object is located.<br />
It is always recommended to enable hotlinking of images, else others use just links to your site to load their web-pages, thereby stealing your bandwidth. Do you want that to happen?</p>
<p>If not, copy-paste the below code to your websites .htaccess file.</p>
<p style="padding-left: 30px;">RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC]<br />
RewriteRule ^.*\.(bmp|tif|gif|jpg|jpeg|jpe|png)$ &#8211; [F]</p>
<p style="padding-left: 30px;">
<p style="padding-left: 30px;">Haii.. Linux buddy,, you now. safe&#8230;.  :D</p>
<img src="http://feeds.feedburner.com/~r/Linuxbuddiescom/~4/fJyhfeFIzrM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/01/20/prevent-image-hotlinking/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://linuxbuddies.com/2009/01/20/prevent-image-hotlinking/</feedburner:origLink></item>
		<item>
		<title>kernel compilation</title>
		<link>http://feedproxy.google.com/~r/Linuxbuddiescom/~3/msb3EZGMWYk/</link>
		<comments>http://linuxbuddies.com/2009/01/20/kernel-compilation/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 19:10:44 +0000</pubDate>
		<dc:creator>riyesh@gmail.com</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[server tweak]]></category>
		<category><![CDATA[compilation]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[kernel compilation]]></category>
		<category><![CDATA[updating]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=307</guid>
		<description><![CDATA[Kernel 
 It makes sure that all processes in the system works fine
Rebuilding

It is done to optimize the kernel to suit our requirements as well as make it more secure from internet attacks
 Steps

1. Determining the current hardware 
 This is required during configuration process to enable hardwares that our new kernel has to support.
Commands ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-309" title="kernel" src="http://linuxbuddies.com/wp-content/uploads/2009/01/kernel-150x150.gif" alt="kernel" width="150" height="150" /><strong>Kernel </strong></p>
<p><strong><span style="font-weight: normal;"> It makes sure that all processes in the system works fine</span></strong></p>
<p><strong><span style="font-weight: normal;"><span>Rebuilding</span><br />
</span></strong></p>
<p><strong><span style="font-weight: normal;">It is done to optimize the kernel to suit our requirements as well as make it more secure from internet attacks</span></strong></p>
<p><span><strong> Steps</strong></span></p>
<p><span><strong></strong></span><br />
<span>1. Determining the current hardware </span><br />
 This is required during configuration process to enable hardwares that our new kernel has to support.<br />
Commands used for the same are:</p>
<p> </p>
<p> </p>
<div class="codetitle" style="padding-left: 30px; "><strong><br />
</strong></div>
<div class="codecontent" style="padding-left: 30px; ">/sbin/lspci </div>
<div class="codecontent" style="padding-left: 30px; ">cat /proc/cpuinfo</div>
<div class="codecontent" style="padding-left: 30px; "></div>
<p><span>2. Download the Source</span><br />
latest sources and its corresponding patches are always available from<a class="postlink" href="http://www.kernel.org/pub/linux/kernel/">http://www.kernel.org/pub/linux/kernel/</a><br />
 As of today (Oct 21, 2008) the latest available source is <a class="postlink" href="http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.2.tar.gz">linux-2.6.27.2.tar.gz</a> and the patch is <a class="postlink" href="http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.27.2.gz">patch-2.6.27.2.gz</a></p>
<p><span>Apply the patches</span></p>
<p>Extract the source using tar -zxvf and patch using gunzip to /usr/src/ folder.</p>
<p>Now cd to linux-2.6.27.2 and apply the patch as shown below:</p>
<div class="codetitle"><strong><br />
</strong></div>
<div class="codecontent" style="padding-left: 30px; "> patch -p1 &lt;../patch-2.6.27.2</div>
<div class="codecontent" style="padding-left: 30px; "></div>
<p><span>4. Configuration</span><br />
 You may copy the current configuration by copying the file .config.</p>
<p> </p>
<p style="padding-left: 30px; ">cp ../linux/.config config.old</p>
<p> Begin the configuration by wiping out all previous configurations and resetting the source directory to a pristine state:</p>
<p> </p>
<div class="codetitle"><strong> </strong></div>
<div class="codecontent" style="padding-left: 30px; ">$ make mrproper</div>
<p> </p>
<p>Run the configuration utility. Either of the below step can be used to run the configuration utility:</p>
<p> </p>
<div class="codetitle" style="padding-left: 30px; "><strong> </strong> make config &#8211; least friendly tool</div>
<div class="codetitle" style="padding-left: 30px; "></div>
<div class="codecontent" style="padding-left: 30px; ">  make oldconfig         (- will read the defaults from the existing .config file. Note that oldconfig will only work within the same major version of the kernel. You cannot, for example, use a 2.4.x .config with the 2.6.x kernel.)</div>
<div class="codecontent" style="padding-left: 30px; "></div>
<div class="codecontent" style="padding-left: 30px; "> make menuconfig      (- Most commonly and recommended method. Gives you a graphical front end to select your options)</div>
<p><span>5. Start Build</span><br />
Clean before the build:</p>
<p> </p>
<div class="codetitle"><strong> </strong></div>
<div class="codecontent" style="padding-left: 30px; "> make clean</div>
<div class="codecontent" style="padding-left: 30px; "></div>
<p> Start the build after cleaning process:</p>
<p> </p>
<div class="codetitle" style="padding-left: 30px; ">make bzImage</div>
<p><span>6. Build and install all the loadable modules</span></p>
<div class="codetitle"><strong> </strong></div>
<div class="codecontent" style="padding-left: 30px; ">  make modules<br />
 make modules_install</div>
<div class="codecontent" style="padding-left: 30px; "></div>
<p><span>7. Copy the required files and generate initrd</span><br />
 Copy the files over for the kernel itself</p>
<div class="codetitle"><strong> </strong></div>
<div class="codecontent" style="padding-left: 30px; "> cp .config /boot/config-2.6.27.2<br />
 cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.27.2<br />
 cp System.map /boot/System.map-2.6.27.2<br />
 mkinitrd /boot/initrd-2.6.27.2.img 2.6.27.2</div>
<p> If you come across an error like: &#8220;/dev/mapper/control: open failed: No such file or directory&#8221; , Run the following commands:</p>
<div class="codetitle"><strong> </strong></div>
<div class="codecontent" style="padding-left: 30px; ">  rm -rf /boot/initrd-2.6.27.2.img<br />
  mkinitrd &#8211;omit-lvm-modules /boot/initrd-2.6.27.2.img 2.6.27.2</div>
<p><span>8. Configure Grub &amp; enable failsafe</span><br />
  Open grub.conf file<br />
  Add the below code to the top of the kernel list:</p>
<p> </p>
<div class="codecontent" style="padding-left: 30px; ">title Red Hat Linux (2.6.27.2)<br />
root (hd0,0)<br />
kernel /vmlinuz-2.6.27.2 ro root=LABEL=/<br />
initrd /initrd-2.6.27.2.img</div>
<div class="codecontent" style="padding-left: 30px; "></div>
<p>  Set the default value to your working kernel. (NOTE: NOT NEW KERNEL)<br />
  Now save and exit from grub.conf file and enter into grub mode by typing &#8220;grub&#8221; from bash prompt<br />
  And set to boot from newly compiled kernel during next reboot:</p>
<p> </p>
<div class="codetitle" style="padding-left: 30px; "><strong> </strong> savedefault &#8211;default=0 &#8211;once</div>
<div class="codetitle" style="padding-left: 30px; "></div>
<p> If your server is up, you are done with your new kernel. Open the file grub.conf and change the value of default to &#8220;0&#8243;</p>
<p><span><span><strong>Congratulations! You are done with your new kernel.</strong></span></span></p>
<p> </p>
<p><strong><span style="font-weight: normal;"><br />
</span></strong></p>
<img src="http://feeds.feedburner.com/~r/Linuxbuddiescom/~4/msb3EZGMWYk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/01/20/kernel-compilation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<enclosure url="http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.2.tar.gz" length="63721082" type="application/x-gzip" /><media:content url="http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.2.tar.gz" fileSize="63721082" type="application/x-gzip" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>Kernel   It makes sure that all processes in the system works fine Rebuilding It is done to optimize the kernel to suit our requirements as well as make it more secure from internet attacks  Steps 1. Determining the current hardware   This is required dur</itunes:subtitle><itunes:summary>Kernel   It makes sure that all processes in the system works fine Rebuilding It is done to optimize the kernel to suit our requirements as well as make it more secure from internet attacks  Steps 1. Determining the current hardware   This is required during configuration process to enable hardwares that our new kernel has to support. Commands ...</itunes:summary><itunes:keywords>linux</itunes:keywords><feedburner:origLink>http://linuxbuddies.com/2009/01/20/kernel-compilation/</feedburner:origLink></item>
		<item>
		<title>Processor type in Linux</title>
		<link>http://feedproxy.google.com/~r/Linuxbuddiescom/~3/Bx2hh3dKT-Q/</link>
		<comments>http://linuxbuddies.com/2009/01/20/processor-type-in-linux/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 18:59:47 +0000</pubDate>
		<dc:creator>riyesh@gmail.com</dc:creator>
				<category><![CDATA[server tweak]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[cpuinfo]]></category>
		<category><![CDATA[get information]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Processor]]></category>
		<category><![CDATA[Processor type]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=304</guid>
		<description><![CDATA[







To find the processor type and details
Get the Processor details:


cat /proc/cpuinfo

Find whether the processor is 32 or 64 bit:

 getconf LONG_BIT

Find the architecture:

uname -i



]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-303" title="proccesser" src="http://linuxbuddies.com/wp-content/uploads/2009/01/proccesser-150x150.jpg" alt="proccesser" width="150" height="150" /></p>
<table border="0" cellspacing="0" width="100%">
<tbody>
<tr valign="middle">
<td class="gensmall" align="right"></td>
</tr>
</tbody>
</table>
<div class="postbody"><span><strong>To find the processor type and details</strong></span></p>
<p>Get the Processor details:</p></div>
<div class="postbody"></div>
<div class="postbody"></div>
<div class="postbody" style="padding-left: 30px;">cat /proc/cpuinfo</div>
<div class="postbody" style="padding-left: 30px;"></div>
<div class="postbody">Find whether the processor is 32 or 64 bit:</div>
<div class="postbody"></div>
<div class="postbody" style="padding-left: 30px;"> getconf LONG_BIT</div>
<div class="postbody" style="padding-left: 30px;"></div>
<div class="postbody">Find the architecture:</div>
<div class="postbody"></div>
<div class="postbody" style="padding-left: 30px;">uname -i</div>
<div class="postbody" style="padding-left: 30px;"></div>
<div class="postbody" style="padding-left: 30px;"></div>
<div class="postbody" style="padding-left: 30px;"></div>
<img src="http://feeds.feedburner.com/~r/Linuxbuddiescom/~4/Bx2hh3dKT-Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/01/20/processor-type-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://linuxbuddies.com/2009/01/20/processor-type-in-linux/</feedburner:origLink></item>
		<item>
		<title>Enable/ disable ping requests in linux</title>
		<link>http://feedproxy.google.com/~r/Linuxbuddiescom/~3/QkYCUZIRt3Q/</link>
		<comments>http://linuxbuddies.com/2009/01/20/enable-disable-ping-requests-in-linux/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 18:54:11 +0000</pubDate>
		<dc:creator>riyesh@gmail.com</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[server tweak]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ping]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=299</guid>
		<description><![CDATA[ Ping Requests use ICMP protocols. This is enabled/disabled using sysctl values.
To Disable Ping:
 
echo 1 &#62; /proc/sys/net/ipv4/icmp_echo_ignore_all
 
To Enable Ping:
 
echo 0 &#62; /proc/sys/net/ipv4/icmp_echo_ignore_all
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-298" title="ping" src="http://linuxbuddies.com/wp-content/uploads/2009/01/ping-150x150.gif" alt="ping" width="150" height="150" /> Ping Requests use ICMP protocols. This is enabled/disabled using sysctl values.<br />
To Disable Ping:</p>
<p> </p>
<p style="padding-left: 30px;">echo 1 &gt; /proc/sys/net/ipv4/icmp_echo_ignore_all</p>
<p style="padding-left: 30px;"> </p>
<p>To Enable Ping:</p>
<p> </p>
<p style="padding-left: 30px;">echo 0 &gt; /proc/sys/net/ipv4/icmp_echo_ignore_all</p>
<img src="http://feeds.feedburner.com/~r/Linuxbuddiescom/~4/QkYCUZIRt3Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/01/20/enable-disable-ping-requests-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://linuxbuddies.com/2009/01/20/enable-disable-ping-requests-in-linux/</feedburner:origLink></item>
	<media:rating>nonadult</media:rating></channel>
</rss>
