<?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/"
	>

<channel>
	<title>linuxbuddies.com &#187; Featured</title>
	<atom:link href="http://linuxbuddies.com/category/featured-2/feed/" rel="self" type="application/rss+xml" />
	<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.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Open VPN installation</title>
		<link>http://linuxbuddies.com/2008/12/23/open-vpn-installation/</link>
		<comments>http://linuxbuddies.com/2008/12/23/open-vpn-installation/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 12:13:08 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Vpn]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open vpn]]></category>
		<category><![CDATA[remote]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=189</guid>
		<description><![CDATA[
Install openvpn using the rpm
Installing OpenVPN from a binary RPM package has these dependencies:




openssl 
lzo 
pamInstall rpms as root:# rpm -ivh      openvpn-2.0.5-1.el4.rf.i386.rpm

 
installing rpm 
 

    rpm -ivh lzo-1.08-4.2.el4.rf.i386.rpm



 The main configuration directory for open vpn is /etc/openvpn
Setting up your Certificate Authority (CA) and generating certificates and keys for ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-188" title="vpn-1_sc_connect" src="http://linuxbuddies.com/wp-content/uploads/2008/12/vpn-1_sc_connect-150x150.gif" alt="vpn-1_sc_connect" width="150" height="150" /></p>
<p class="MsoNormal"><strong><span>Install openvpn using the rpm</span></strong><span><br />
Installing OpenVPN from a binary RPM package has these dependencies:</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
</span></p>
<ul type="disc">
<li class="MsoNormal"><span>openssl </span></li>
<li class="MsoNormal"><span>lzo </span></li>
<li class="MsoNormal"><span>pamInstall rpms as root:# rpm -ivh      openvpn-2.0.5-1.el4.rf.i386.rpm</span></li>
</ul>
<p> </p>
<p>installing rpm </p>
<p> </p></blockquote>
<blockquote>
<p class="MsoNormal"><span>    rpm -ivh lzo-1.08-4.2.el4.rf.i386.rpm</span></p>
</blockquote>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><span> The main configuration directory for open vpn is <strong><em>/etc/openvpn</em></strong></span></p>
<p class="MsoNormal"><a name="119c877c69af3f75_11172c379e2cab09_OpenVP"></a><strong><span>Setting up your Certificate Authority (CA) and generating certificates and keys for an OpenVPN server and multiple clients </span></strong></p>
<p class="MsoNormal"><span>The first step in building an OpenVPN 2.0 configuration is to establish a PKI (public key infrastructure). The PKI consists of:</span></p>
<ul type="disc">
<li class="MsoNormal"><span>A separate certificate (also known as a public      key) and private key for the server and each client, and </span></li>
<li class="MsoNormal"><span>A master Certificate Authority (CA) certificate      and key which is used to sign each of the server and client certificates </span></li>
</ul>
<p class="MsoNormal"><span> Copy the /usr/share/doc/openvpn-2.0.7/easy-rsa/2.0/ directory to /etc/openvpn/easy-rsa</span></p>
<p class="MsoNormal"><span><br />
</span></p>
<blockquote>
<p class="MsoNormal"><span><span>    </span> cp -r /usr/share/doc/openvpn-2.0.7/easy-rsa/2.0/ /etc/openvpn/easy-rsa</span></p>
</blockquote>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><strong><span>Configure easy-rsa</span></strong></p>
<p class="MsoNormal"><span>Now edit the <strong>vars</strong> file  and set the KEY_COUNTRY, KEY_PROVINCE, KEY_CITY, KEY_ORG, and KEY_EMAIL parameters. Don&#8217;t leave any of these parameters blank.</span></p>
<p class="MsoNormal"><span>Next, initialize the PKI. on Linux:</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><span>./vars</span></p>
<p class="MsoNormal"><span>./clean-all</span></p>
<p class="MsoNormal"><span>./build-ca</span></p>
</blockquote>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><span>The final command (build-ca) will build the certificate authority (CA) certificate and key by invoking the interactive openssl command:</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><span>Generating a 1024 bit RSA private key</span></p>
<p class="MsoNormal"><span>&#8230;&#8230;&#8230;&#8230;++++++</span></p>
<p class="MsoNormal"><span>&#8230;&#8230;&#8230;..++++++</span></p>
<p class="MsoNormal"><span>writing new private key to &#8216;ca.key&#8217;</span></p>
<p class="MsoNormal"><span>&#8212;&#8211;</span></p>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><span>You are about to be asked to enter information that will be incorporated</span></p>
<p class="MsoNormal"><span>into your certificate request.</span></p>
<p class="MsoNormal"><span>What you are about to enter is what is called a Distinguished Name or a DN.</span></p>
<p class="MsoNormal"><span>There are quite a few fields but you can leave some blank</span></p>
<p class="MsoNormal"><span>For some fields there will be a default value,</span></p>
<p class="MsoNormal"><span>If you enter &#8216;.&#8217;, the field will be left blank.</span></p>
<p class="MsoNormal"><span>&#8212;&#8211;</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><span>Country Name (2 letter code) [KG]:IN</span></p>
<p class="MsoNormal"><span>State or Province Name (full name) [NA]:KERALA</span></p>
<p class="MsoNormal"><span>Locality Name (eg, city) [BISHKEK]:KOCHI</span></p>
<p class="MsoNormal"><span>Organization Name (eg, company) [OpenVPN-TEST]:company name</p>
<p></span></p>
<p class="MsoNormal"><span>Organizational Unit Name (eg, section) []:company name</p>
<p></span></p>
<p class="MsoNormal"><span>Common Name (eg, your name or your server&#8217;s hostname) []:company name</span></p>
<p class="MsoNormal"><span>Email Address [</span>Riyesh@linuxbuddies.com]</p>
</blockquote>
<p class="MsoNormal"><span>Note that in the above sequence, most queried parameters were defaulted to the values set in the vars or vars.bat files. The only parameter which must be explicitly entered is the Common Name. In the example above.</span></p>
<p class="MsoNormal"><strong><span>Generate certificate &amp; key for server</span></strong><span><br />
Next, we will generate a certificate and private key for the server. On Linux:</span></p>
<p class="MsoNormal"><span><br />
</span></p>
<blockquote>
<p class="MsoNormal"><span>./build-key-server server</span></p>
</blockquote>
<blockquote>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><span>As in the previous step, most parameters can be defaulted. When the Common Name is queried, enter &#8220;server&#8221;. Two other queries require positive responses, &#8220;Sign the certificate? [y/n]&#8221; and &#8220;1 out of 1 certificate requests certified, commit? [y/n]&#8220;. </span></p>
</blockquote>
<p class="MsoNormal"><strong><span>Generate certificates &amp; keys for  clients</span></strong></p>
<p class="MsoNormal"><span>Generating client certificates is very similar to the previous step. On Linux:</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><span>./build-key client1</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>./build-key client2 and so on&#8230;</span></p>
</blockquote>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><span>   <strong><span class="msoIns"><ins> Generate Diffie Hellman parameters</ins></span></strong></span></p>
<p class="MsoNormal"><span>Diffie Hellman parameters must be generated for the OpenVPN server. On Linux:</span></p>
<p class="MsoNormal"><span>./build-dh</span></p>
<blockquote>
<p class="MsoNormal"> ./build-dh</p>
</blockquote>
<blockquote>
<p class="MsoNormal"><span>Generating DH parameters, 1024 bit long safe prime, generator 2</span></p>
<p class="MsoNormal"><span>This is going to take a long time</span></p>
<p class="MsoNormal"><span>&#8230;&#8230;&#8230;&#8230;&#8230;..+&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</span></p>
<p class="MsoNormal"><span>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.+&#8230;&#8230;&#8230;&#8230;.+&#8230;&#8230;&#8230;&#8230;&#8230;..+&#8230;&#8230;&#8230;</span></p>
<p class="MsoNormal"><span>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</span></p>
<p class="MsoNormal"><span><br />
</span></p></blockquote>
<p class="MsoNormal"><strong><span>         </span></strong><span> <strong><span class="msoIns"><ins>Creating TLS Key</ins></span></strong></span></p>
<p class="MsoNormal"><span>The <em>tls-auth</em> directive adds an additional HMAC signature to all SSL/TLS handshake packets for integrity verification. Any UDP packet not bearing the correct HMAC signature can be dropped without further processing. The <em>tls-auth</em> HMAC signature provides an additional level of security above and beyond that provided by SSL/TLS.<br />
Using tls-auth requires that you generate a shared-secret key that is used in addition to the standard RSA certificate/key: </span></p>
<blockquote>
<p class="MsoNormal"><span>openvpn &#8211;genkey &#8211;secret ta.key</span></p>
</blockquote>
<p class="MsoNormal"><span>This command will generate an OpenVPN static key and write it to the file <em>ta.key</em>. This key should be copied over a pre-existing secure channel to the server and all client machines. It can be placed in the same directory as the RSA <em>.key</em> and <em>.crt</em> files.</span></p>
<p class="MsoNormal"><span>In the server configuration, add:</span></p>
<blockquote>
<p class="MsoNormal"><span>tls-auth ta.key 0</span></p>
</blockquote>
<p class="MsoNormal"><span>In the client configuration, add:</span></p>
<blockquote>
<p class="MsoNormal"><span>tls-auth ta.key 1</span></p>
</blockquote>
<p class="MsoNormal"><strong><span>        </span></strong></p>
<p class="MsoNormal"><strong><span>        </span></strong><span>  <strong><span class="msoIns"><ins>Creating configuration files for server and clients</ins></span></strong></span></p>
<blockquote>
<p class="MsoNormal"><strong><span>remote </span><a href="http://ekm1.dyndns.org/" target="_blank"><span>ekm1.dyndns.org</span></a></strong><strong><span> 1194</span></strong></p>
</blockquote>
<p class="MsoNormal"><strong><span>#remote<span>  </span></span><a href="http://ek2.levare.com/" target="_blank"><span>ekm2.linuxbuddies.com</span></a></strong><span> 1194/<strong><em>etc/openvpn/server.conf</em></strong></span></p>
<blockquote>
<p class="MsoNormal"><span>port 1194<span>                               </span>; Port for OpenVpn traffic</span></p>
<p class="MsoNormal"><span>proto tcp<span>                               </span>; TCP protocol</span></p>
<p class="MsoNormal"><span>dev tun<span>                                 </span>; use Tun device</span></p>
<p class="MsoNormal"><span>ca ca.crt<span>                               </span>; Certificate file of signing Authority</span></p>
<p class="MsoNormal"><span>cert server.crt<span>                         </span>; Server certificate</span></p>
<p class="MsoNormal"><span>key server.key<span>                          </span>; Server Key</span></p>
<p class="MsoNormal"><span>dh dh2048.pem<span>                           </span>;Diffie Hellman parameters</span></p>
<p class="MsoNormal"><span>server </span><a href="http://10.2.100.0/" target="_blank"><span>10.2.100.0</span></a><span> </span><a href="http://255.255.255.0/" target="_blank"><span>255.255.255.0</span></a><span><span>         </span>; Openvpn subnet should be different from the local network of server and client</span></p>
<p class="MsoNormal"><span>ifconfig-pool-persist ipp.txt</span></p>
<p class="MsoNormal"><span>push &#8220;route </span><a href="http://10.2.1.0/" target="_blank"><span>10.2.1.0</span></a><span> </span><a href="http://255.255.255.0/" target="_blank"><span>255.255.255.0</span></a><span>&#8220;<span>     </span>; Pushing routes to client</span></p>
<p class="MsoNormal"><span>push &#8220;route </span><a href="http://10.1.1.0/" target="_blank"><span>10.1.1.0</span></a><span> </span><a href="http://255.255.255.0/" target="_blank"><span>255.255.255.0</span></a><span>&#8220;</span></p>
<p class="MsoNormal"><span>client-config-dir ccd</span></p>
<p class="MsoNormal"><span>route </span><a href="http://10.2.100.0/" target="_blank"><span>10.2.100.0</span></a><span> </span><a href="http://255.255.255.0/" target="_blank"><span>255.255.255.0</span></a></p>
<p class="MsoNormal"><span>push &#8220;dhcp-option DNS </span><a href="http://10.2.1.11/" target="_blank"><span>10.2.1.11</span></a><span>&#8220;<span>        </span>; Pushing DNS server to client</span></p>
<p class="MsoNormal"><span>client-to-client<span>                        </span>; Clients can communicate eatch other</span></p>
<p class="MsoNormal"><span>duplicate-cn</span></p>
<p class="MsoNormal"><span>keepalive 10 120</span></p>
<p class="MsoNormal"><span>tls-auth ta.key 0<span>                       </span>; tls key</span></p>
<p class="MsoNormal"><span>comp-lzo<span>                                </span>; Use lzo compression Algo</span></p>
<p class="MsoNormal"><span>max-clients 10</span></p>
<p class="MsoNormal"><span>user nobody<span>                             </span>; Run openvpn as user nobody<span>  </span>-</span></p>
<p class="MsoNormal"><span>group nobody<span>                            </span>; group nobody for security</span></p>
<p class="MsoNormal"><span>persist-key</span></p>
<p class="MsoNormal"><span>persist-tun</span></p>
<p class="MsoNormal"><span>tun-mtu 1500</span></p>
<p class="MsoNormal"><span>status openvpn-status.log</span></p>
<p class="MsoNormal"><span>log-append /var/log/openvpn.log</span></p>
<p class="MsoNormal"><span>verb 6</span></p>
<p class="MsoNormal"><span>mute 20</span></p>
<p class="MsoNormal"><strong><em><span>client.conf</span></em></strong></p>
<p class="MsoNormal"><span>client</span></p>
<p class="MsoNormal"><span>dev tun</span></p>
<p class="MsoNormal"><span>proto tcp</span></p>
</blockquote>
<blockquote>
<p class="MsoNormal"><span>resolv-retry infinite</span></p>
<p class="MsoNormal"><span>nobind</span></p>
<p class="MsoNormal"><span>persist-key</span></p>
<p class="MsoNormal"><span>persist-tun</span></p>
<p class="MsoNormal"><span>ca ca.crt</span></p>
<p class="MsoNormal"><span>cert client.crt</span></p>
<p class="MsoNormal"><span>key client.key</span></p>
<p class="MsoNormal"><span>tls-auth ta.key 1</span></p>
<p class="MsoNormal"><span>comp-lzo</span></p>
<p class="MsoNormal"><span>verb 3</span></p>
<p class="MsoNormal"><span>mute 20</span></p>
<p class="MsoNormal"><span>ns-cert-type server</span></p>
<p class="MsoNormal"><span>auth-user-pass</span></p>
<p class="MsoNormal"><span>pull</span></p>
<p class="MsoNormal"><span>mssfix 1450</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">############</p>
<p class="MsoNormal"> </p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/23/open-vpn-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Linux Remotly</title>
		<link>http://linuxbuddies.com/2008/12/22/installing-linux-remotly/</link>
		<comments>http://linuxbuddies.com/2008/12/22/installing-linux-remotly/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:44:26 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Network installation]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Remote installation]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=84</guid>
		<description><![CDATA[This comes into picture when one Admin doesn’t have physical access to a system in which Linux needs to be installed. Here we need help from one person who is having physical access to that remote machine to get it booted from bootable media and to type the command shown ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-83" title="remoteinstallation" src="http://linuxbuddies.com/wp-content/uploads/2008/12/remoteinstallation-150x150.jpg" alt="remoteinstallation" width="150" height="150" />This comes into picture when one Admin doesn’t have physical access to a system in which Linux needs to be installed. Here we need help from one person who is having physical access to that remote machine to get it booted from bootable media and to type the command shown below command at boot prompt.</p>
<p><a href="http://2.bp.blogspot.com/_h3s55wvQhgU/SSe_YXiHlYI/AAAAAAAAAEE/j7RNQeZtesI/s1600-h/text_telnet_ip.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5271392314215339394" src="http://2.bp.blogspot.com/_h3s55wvQhgU/SSe_YXiHlYI/AAAAAAAAAEE/j7RNQeZtesI/s200/text_telnet_ip.jpg" border="0" alt="" /></a></p>
<p>Now anaconda will start to run and will pause at a particular moment showing the below message<br />
<a href="http://3.bp.blogspot.com/_h3s55wvQhgU/SSe_fPDt_eI/AAAAAAAAAEM/m0HvNPEavrk/s1600-h/waitingForTelnet.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5271392432199433698" src="http://3.bp.blogspot.com/_h3s55wvQhgU/SSe_fPDt_eI/AAAAAAAAAEM/m0HvNPEavrk/s200/waitingForTelnet.jpg" border="0" alt="" /></a></p>
<p>Now try to telnet to this IP from a remote machine and proceed with installation steps as usual as we do as shown below<br />
<a href="http://4.bp.blogspot.com/_h3s55wvQhgU/SSe_limIXJI/AAAAAAAAAEU/wH_Fc7OYRlw/s1600-h/telnet_192_168_241_130.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5271392540523256978" src="http://4.bp.blogspot.com/_h3s55wvQhgU/SSe_limIXJI/AAAAAAAAAEU/wH_Fc7OYRlw/s200/telnet_192_168_241_130.jpg" border="0" alt="" /></a><br />
<a href="http://3.bp.blogspot.com/_h3s55wvQhgU/SSe_rKPVZaI/AAAAAAAAAEc/p5ZcwuDV6Xg/s1600-h/telnetSession.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5271392637064406434" src="http://3.bp.blogspot.com/_h3s55wvQhgU/SSe_rKPVZaI/AAAAAAAAAEc/p5ZcwuDV6Xg/s200/telnetSession.jpg" border="0" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/installing-linux-remotly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable media check for CDROM</title>
		<link>http://linuxbuddies.com/2008/12/22/disable-media-check-for-cdrom/</link>
		<comments>http://linuxbuddies.com/2008/12/22/disable-media-check-for-cdrom/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:40:59 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[CDROM. Media check]]></category>
		<category><![CDATA[Media]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=77</guid>
		<description><![CDATA[Edit /etc/grub.conf
dma=off apci=off apm=off
edit /etc/hdparm.conf
command_line {
hdparm -d1 /dev/cdrom
}
command_line {
hdparm -d1 /dev/cdrom1
}
Edit sysctl.conf
dev.cdrom.check_media = 0
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-78" title="cdrom" src="http://linuxbuddies.com/wp-content/uploads/2008/12/cdrom-150x150.jpg" alt="cdrom" width="150" height="150" />Edit /etc/grub.conf</p>
<blockquote><p>dma=off apci=off apm=off</p></blockquote>
<p>edit /etc/hdparm.conf</p>
<blockquote><p>command_line {<br />
hdparm -d1 /dev/cdrom<br />
}</p>
<p>command_line {<br />
hdparm -d1 /dev/cdrom1<br />
}</p></blockquote>
<p>Edit sysctl.conf</p>
<blockquote><p>dev.cdrom.check_media = 0</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/disable-media-check-for-cdrom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache SSL certificate Creation</title>
		<link>http://linuxbuddies.com/2008/12/22/apache-ssl-certificate-creation/</link>
		<comments>http://linuxbuddies.com/2008/12/22/apache-ssl-certificate-creation/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:39:51 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Certificate Creation]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=74</guid>
		<description><![CDATA[Hi.. Guys
Please follow the steps to install SSL certificate on Apache
# cd /usr/local/apache
# mkdir cert
# cd cert
1. Generate your own Certificate Authority (CA)
# openssl genrsa -out ca.key 4096
# openssl req -new -x509 -days 365 -key ca.key -out ca.crt
2.Generate a server key and request for signing (csr)
# openssl genrsa -out server.key ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-75" title="ssl" src="http://linuxbuddies.com/wp-content/uploads/2008/12/ssl-150x150.jpg" alt="ssl" width="150" height="150" />Hi.. Guys</p>
<p>Please follow the steps to install SSL certificate on Apache</p>
<blockquote><p><span># cd /usr/local/apache</span></p>
<p><span># mkdir cert<br />
# cd cert</span></p></blockquote>
<p>1. Generate your own Certificate Authority (CA)</p>
<blockquote><p><span># openssl genrsa -out ca.key 4096<br />
# openssl req -new -x509 -days 365 -key ca.key -out ca.crt</span></p></blockquote>
<p>2.Generate a server key and request for signing (csr)</p>
<blockquote><p><span># openssl genrsa -out server.key 4096<br />
# openssl req -new -key server.key -out server.csr</span></p></blockquote>
<p>3.Sign the certificate signing request (csr) with the self-created certificate authority (CA) that you made earlier</p>
<blockquote><p><span># openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt</span></p></blockquote>
<p>Edit /usr/local/apache/conf/httpd.conf</p>
<blockquote><p><span>ServerName xxx.xxx.xxx.xxx:443<br />
Listen xxx.xxx.xxx.xxx:443<br />
LoadModule ssl_module modules/mod_ssl.so</span></p>
<p><span>SSLEngine on<br />
SSLCertificateFile /usr/local/apache/cert/server.crt<br />
SSLCertificateKeyFile /usr/local/apache/cert/server.key</span></p></blockquote>
<blockquote><p><span># /usr/local/apache/bin/apachectl restart</span></p></blockquote>
<p>To do the same with a Passphrase follow below</p>
<blockquote><p><span># cd /usr/local/apache<br />
# mkdir cert<br />
# cd cert<br />
# openssl genrsa -des3 -out ca.key 4096<br />
# openssl req -new -x509 -days 365 -key ca.key -out ca.crt<br />
# openssl genrsa -des3 -out server.key 4096<br />
# openssl req -new -key server.key -out server.csr<br />
# openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt</span></p></blockquote>
<p>Rest of the configuration remains same</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/apache-ssl-certificate-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autoresponder Plugin in Squirrelmail</title>
		<link>http://linuxbuddies.com/2008/12/22/autoresponder-plugin-in-squirrelmail/</link>
		<comments>http://linuxbuddies.com/2008/12/22/autoresponder-plugin-in-squirrelmail/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:38:31 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[autoresponder]]></category>
		<category><![CDATA[squirrelmail]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=71</guid>
		<description><![CDATA[1.Download the compatibility plugin and Local Auto Responder plugin from http://squirrelmail.org
2.Extract it to the Squirrelmail &#8211; plugins directory
cd /var/www/html/squirrelmail/plugins
# tar xzf compatibility-2.0.9-1.0.tar.gz
# cd compatibility
3.Patch it to your squirrelmail version
# patch -p0 &#60; patches/compatibility_patch-1.4.11.diff
patching file ../../functions/strings.php
4.Configure the Squirrelmail to include the plugin
# cd ../../config
# ./conf.pl
5.Extract Local Auto Responder Plugin
# cd ../plugins/
# ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-72" title="squirrelmail" src="http://linuxbuddies.com/wp-content/uploads/2008/12/squirrelmail-150x150.jpg" alt="squirrelmail" width="150" height="150" />1.Download the compatibility plugin and Local Auto Responder plugin from http://squirrelmail.org</p>
<p>2.Extract it to the Squirrelmail &#8211; plugins directory</p>
<blockquote><p>cd /var/www/html/squirrelmail/plugins</p>
<p># tar xzf compatibility-2.0.9-1.0.tar.gz<br />
# cd compatibility</p></blockquote>
<p>3.Patch it to your squirrelmail version</p>
<blockquote><p># patch -p0 &lt; patches/compatibility_patch-1.4.11.diff<br />
<span>patching file ../../functions/strings.php</span></p></blockquote>
<p>4.Configure the Squirrelmail to include the plugin</p>
<blockquote><p># cd ../../config<br />
# ./conf.pl</p></blockquote>
<p>5.Extract Local Auto Responder Plugin</p>
<blockquote><p># cd ../plugins/<br />
# tar xzf local_autorespond_forward-3.0-1.4.0.tar.gz<br />
# cd local_autorespond_forward</p></blockquote>
<p>6.Compile suid_backend module</p>
<blockquote><p># cd suid_backend/<br />
# ./configure –enable-webuser=nobody</p></blockquote>
<p>Here my Apache is running as user “nobody”.That user should have the permission to play<br />
with the directories under this.</p>
<blockquote><p># make<br />
# make install</p></blockquote>
<p>7.Copy the sample config.php</p>
<blockquote><p># cd ..<br />
# cp config.sample.php config.php</p></blockquote>
<p>8.Edit the config.php to use “suid” instead of “ftp” for Maildir and “.forward” files</p>
<p>edit <strong>config.php</strong></p>
<blockquote><p>$laf_backend = ’suid’;</p></blockquote>
<p>9.Configure the Squirrelmail to include the plugin</p>
<blockquote><p># cd ../../config<br />
# ./conf.pl</p></blockquote>
<p>10.Verify the Squirrelmail’s ATTACHMENT DIR and DATA DIR. Verify the permission also</p>
<p>edit <strong>/var/www/html/squirrelmail/config/config.php</strong></p>
<blockquote><p><strong><br />
</strong></p></blockquote>
<blockquote><p>$attachment_dir = ‘/var/local/squirrelmail/attach/’;</p></blockquote>
<p>11.Create it if doesn’t exist</p>
<blockquote><p># mkdir /var/local/squirrelmail/attach<br />
# chown nobody.nobody /var/local/squirrelmail/attach<br />
# chmod 755 /var/local/squirrelmail/attach</p></blockquote>
<p>Finish…… you can go now…</p>
<p>Thanks,</p>
<p>Riyesh</p>
<p>Linux buddy</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/autoresponder-plugin-in-squirrelmail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install a Linux Server As A Gateway</title>
		<link>http://linuxbuddies.com/2008/12/22/how-to-install-a-linux-server-as-a-gateway/</link>
		<comments>http://linuxbuddies.com/2008/12/22/how-to-install-a-linux-server-as-a-gateway/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:36:22 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[Iptables]]></category>
		<category><![CDATA[Linux server]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=68</guid>
		<description><![CDATA[Hi guys…
On this documentation… Will help you to setup linux server as a network gateway without installing any proxy softwares….
#!/bin/sh
# The interface conneected to Your LAN
INTIF=”eth1?
# The interface conneected to Internet (ppp0 or eth)
EXTIF=”eth0?
# If you have a static IP (Public IP), Use the following line. Otherwise comment following line ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-69" title="gateway" src="http://linuxbuddies.com/wp-content/uploads/2008/12/gateway-150x150.png" alt="gateway" width="150" height="150" />Hi guys…</p>
<p>On this documentation… Will help you to setup linux server as a network gateway without installing any proxy softwares….</p>
<blockquote><p><span>#!/bin/sh<br />
# The interface conneected to Your LAN</span><br />
INTIF=”eth1?<br />
# The interface conneected to Internet (ppp0 or eth)<br />
EXTIF=”eth0?<br />
<span># If you have a static IP (Public IP), Use the following line. Otherwise comment following line and use the next line</span><br />
EXTIP=”XXX.XXX.XXX.XXX”</p>
<p>EXTIP=”`/sbin/ifconfig ppp0 | grep ‘inet addr’ | awk ‘{print $2}’ | sed -e ’s/.*://’`”</p>
<p>/sbin/depmod -a<br />
/sbin/modprobe ip_tables<br />
/sbin/modprobe ip_conntrack<br />
/sbin/modprobe ip_conntrack_ftp<br />
/sbin/modprobe ip_conntrack_irc<br />
/sbin/modprobe iptable_nat<br />
/sbin/modprobe ip_nat_ftp<br />
echo “1? &gt; /proc/sys/net/ipv4/ip_forward<br />
echo “1? &gt; /proc/sys/net/ipv4/ip_dynaddr<br />
iptables -P INPUT ACCEPT<br />
iptables -F INPUT<br />
iptables -P OUTPUT ACCEPT<br />
iptables -F OUTPUT<br />
iptables -P FORWARD DROP<br />
iptables -F FORWARD<br />
iptables -t nat -F<br />
iptables -A FORWARD -i $EXTIF -o $INTIF -m state –state ESTABLISHED,RELATED -j ACCEPT<br />
iptables -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT<br />
iptables -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE<br />
<span>#End Of file<br />
# execute this script and bring it to the startup of your system.<br />
# Go to a client machine in your LAN, and set the gateway to the Linux server’s internal IP address, that’s all.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/how-to-install-a-linux-server-as-a-gateway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screen command for Remote assistance and Administration</title>
		<link>http://linuxbuddies.com/2008/12/22/screen-command-for-remote-assistance-and-administration/</link>
		<comments>http://linuxbuddies.com/2008/12/22/screen-command-for-remote-assistance-and-administration/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:33:30 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[User administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[remote administration]]></category>
		<category><![CDATA[remote assistance. linux]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=65</guid>
		<description><![CDATA[screen is a UNIX utility for giving remote assistance/administration. Suppose an unskilled colleague of your own is struggling with a server at some remote location with no idea of troubleshooting a problem.
If you are able to solve that with keeping your colleague to watch how you are sorting out the issues ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-66" title="screen" src="http://linuxbuddies.com/wp-content/uploads/2008/12/screen-150x150.png" alt="screen" width="150" height="150" /><a href="http://www.linuxmanpages.com/man1/screen.1.php">screen</a> is a UNIX utility for giving remote assistance/administration. Suppose an unskilled colleague of your own is struggling with a server at some remote location with no idea of troubleshooting a problem.</p>
<p>If you are able to solve that with keeping your colleague to watch how you are sorting out the issues you can use <strong>screen</strong>.</p>
<p>First of all ask your colleague for the username which he used to login into that remote machine. Now you can login to that remote machine as the same user. Imagine username is <strong>engineer</strong> and IP of the remote machine is <strong>192.168.1.1</strong>. Try the below</p>
<blockquote><p><strong># ssh engineer@192.168.1.1</strong></p></blockquote>
<p>Then after getting logged in run the screen command to set a session named myscreen</p>
<blockquote><p><strong>$ screen -S myscreen</strong></p></blockquote>
<p>Now tell your colleague to type the below for attaching his screen to your screen.</p>
<blockquote><p><strong>$ screen -x myscreen</strong></p></blockquote>
<p>Thats it. Now he can watch whatever you type and vice versa.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/screen-command-for-remote-assistance-and-administration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Limit number of Shell logins by a USER or GROUP</title>
		<link>http://linuxbuddies.com/2008/12/22/limit-number-of-shell-logins-by-a-user-or-group/</link>
		<comments>http://linuxbuddies.com/2008/12/22/limit-number-of-shell-logins-by-a-user-or-group/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:31:08 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[User administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[limit user]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=63</guid>
		<description><![CDATA[ltiple Shell login by the same user on a Linux box you have to set a maximum number of logins in /etc/security/limits.conf for a user or a group.
For example:
# groupadd salesgroup
# useradd -G salesgroup salesman1
# useradd -G salesgroup salesmanager
# echo “@salesgroup &#8211; maxlogins 10? &#62;&#62; /etc/security/limits.conf
# echo “salesman1 &#8211; maxlogins 5? &#62;&#62; ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-62" title="useradministration" src="http://linuxbuddies.com/wp-content/uploads/2008/12/useradministration-150x150.gif" alt="useradministration" width="150" height="150" />ltiple Shell login by the same user on a Linux box you have to set a maximum number of logins in <span>/etc/security/limits.conf</span> for a user or a group.</p>
<p>For example:</p>
<blockquote><p><span># groupadd salesgroup<br />
# useradd -G salesgroup salesman1<br />
# useradd -G salesgroup salesmanager<br />
# echo “@salesgroup &#8211; maxlogins 10? &gt;&gt; /etc/security/limits.conf<br />
# echo “salesman1 &#8211; maxlogins 5? &gt;&gt; /etc/security/limits.conf</span></p></blockquote>
<p>Here the group salesgroup can make a maximum of 10 logins at a time.<br />
And the user salesman1 is limited to 5 simultaneous logins.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/limit-number-of-shell-logins-by-a-user-or-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable directory browsing in Apache</title>
		<link>http://linuxbuddies.com/2008/12/22/how-to-disable-directory-browsing-in-apache/</link>
		<comments>http://linuxbuddies.com/2008/12/22/how-to-disable-directory-browsing-in-apache/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:29:38 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[directory browsing]]></category>
		<category><![CDATA[disable]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=60</guid>
		<description><![CDATA[One of the “must do’s” on setting a secure apache webserver environment is to disable directory browsing. As a default Apache will be compiled with this option enabled, but its always a good idea to get rid of this setting unless its really necessary.
If you are on an RPM installation ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-59" title="apache_1" src="http://linuxbuddies.com/wp-content/uploads/2008/12/apache_1-150x150.jpg" alt="apache_1" width="150" height="150" />One of the “must do’s” on setting a secure apache webserver environment is to disable directory browsing. As a default Apache will be compiled with this option enabled, but its always a good idea to get rid of this setting unless its really necessary.</p>
<p>If you are on an RPM installation of Apache you will find the apache configuration file probably here:</p>
<blockquote><p><strong></strong><strong><span>/etc/httpd/conf/httpd.conf</span></strong></p></blockquote>
<p>If you are using apache from the source tar balls probably you will find the configuration file here:</p>
<blockquote><p><span>/usr/local/apache/conf/httpd.conf</span></p></blockquote>
<p>Edit the httpd.conf file and scroll until you find a line like this:</p>
<blockquote><p><span>Options All Indexes FollowSymLinks MultiViews</span></p></blockquote>
<p>To disable directory browsing carefully remove the line that says: Indexes and leave the line like this:</p>
<blockquote><p><span>Options All FollowSymLinks MultiViews</span></p></blockquote>
<p>Restart your apache webserver and thats it</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/how-to-disable-directory-browsing-in-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting X11 VNC in Linux</title>
		<link>http://linuxbuddies.com/2008/12/22/starting-x11-vnc-in-linux/</link>
		<comments>http://linuxbuddies.com/2008/12/22/starting-x11-vnc-in-linux/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:27:05 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Vnc]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=55</guid>
		<description><![CDATA[ 
Create vnc passwd
x11vnc -storepasswd
Use authentication while connecting
x11vnc -rfbauth ~/.vnc/passwd
Keep the VNC Session after each login and logout
x11vnc -forever
Don’t use shm of X if you have problems in display
x11vnc -noshm
So the final command is
x11vnc -noshm -forever -rfbauth ~/.vnc/passwd
Finished
]]></description>
			<content:encoded><![CDATA[<p> </p>
<p><img class="alignnone size-medium wp-image-56" title="vncosxvnc" src="http://linuxbuddies.com/wp-content/uploads/2008/12/vncosxvnc-300x299.jpg" alt="vncosxvnc" width="300" height="299" />Create vnc passwd</p>
<blockquote><p>x11vnc -storepasswd</p></blockquote>
<p>Use authentication while connecting</p>
<blockquote><p>x11vnc -rfbauth ~/.vnc/passwd</p></blockquote>
<p>Keep the VNC Session after each login and logout</p>
<blockquote><p>x11vnc -forever</p></blockquote>
<p>Don’t use shm of X if you have problems in display</p>
<blockquote><p>x11vnc -noshm</p></blockquote>
<p>So the final command is</p>
<blockquote><p>x11vnc -noshm -forever -rfbauth ~/.vnc/passwd</p></blockquote>
<p>Finished</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/starting-x11-vnc-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
